From d39ea3270eb9b9ddf2f21440c3254c4974442ccd Mon Sep 17 00:00:00 2001 From: qsh <> Date: Mon, 23 Dec 2024 15:05:40 +0800 Subject: [PATCH] sc --- src/api/kpi/index.js | 42 +++++++ .../Appraise/Components/DialogAppraise.vue | 103 +++++++++++------- src/views/Kpi/Appraise/index.vue | 56 ++++------ src/views/Kpi/Score/index.vue | 28 ++--- .../Pers/Employee/Comp/DialogEmployee.vue | 8 +- src/views/Pers/Employee/index.vue | 2 +- 6 files changed, 146 insertions(+), 93 deletions(-) create mode 100644 src/api/kpi/index.js diff --git a/src/api/kpi/index.js b/src/api/kpi/index.js new file mode 100644 index 0000000..da7d95f --- /dev/null +++ b/src/api/kpi/index.js @@ -0,0 +1,42 @@ +import request from '@/config/axios' + +// 创建 +export const createKpi = (data) => { + return request.post({ + url: '/admin-api/oa/examine-configuration/create', + data, + isSubmitForm: true + }) +} + +// 修改 +export const updateKpi = (data) => { + return request.put({ url: '/admin-api/oa/examine-configuration/update', data }) +} + +// 修改状态 +export const updateKpiStatus = (data) => { + return request.put({ url: '/admin-api/oa/examine-configuration/status/update', data }) +} + +// 分页 +export const getKpiPage = (params) => { + return request.get({ url: '/admin-api/oa/examine-configuration/page', params }) +} + +// 详情 +export const getKpiDetail = (id) => { + return request.get({ url: '/admin-api/oa/examine-configuration/get', params: { id } }) +} + +// 删除 +export const deleteKpi = (id) => { + return request.delete({ url: '/admin-api/oa/examine-configuration/delete', params: { id } }) +} + +// +export const getKpiEmployees = () => { + return request.get({ + url: '/admin-api/oa/employee/examinedEmployees' + }) +} diff --git a/src/views/Kpi/Appraise/Components/DialogAppraise.vue b/src/views/Kpi/Appraise/Components/DialogAppraise.vue index a93f750..58b9863 100644 --- a/src/views/Kpi/Appraise/Components/DialogAppraise.vue +++ b/src/views/Kpi/Appraise/Components/DialogAppraise.vue @@ -1,31 +1,55 @@