From a7afb1992515e7754d1872befa757edfbe8b0739 Mon Sep 17 00:00:00 2001 From: zmj <1493694146@qq.com> Date: Wed, 5 Jun 2024 11:17:47 +0800 Subject: [PATCH] add --- src/api/oaSelfExamine.ts | 36 ++ .../dialogTable/dialogTableConfig.ts | 25 ++ src/layout/default/components/header/msg.vue | 6 +- src/views/allAssessments/edit.vue | 355 ------------------ src/views/allAssessments/index.vue | 97 ++--- .../edit.vue | 87 +++-- .../index.vue | 82 ++-- 7 files changed, 188 insertions(+), 500 deletions(-) create mode 100644 src/api/oaSelfExamine.ts delete mode 100644 src/views/allAssessments/edit.vue rename src/views/{selfEvaluation => oa_self_examine}/edit.vue (66%) rename src/views/{selfEvaluation => oa_self_examine}/index.vue (60%) diff --git a/src/api/oaSelfExamine.ts b/src/api/oaSelfExamine.ts new file mode 100644 index 0000000..dd9e272 --- /dev/null +++ b/src/api/oaSelfExamine.ts @@ -0,0 +1,36 @@ +import request from "@/utils/request"; + +// 自评记录列表 +export function apiOaSelfExamineLists(params: any) { + return request.get({ url: "/jxgl.oa_self_examine/lists", params }); +} + +// 添加自评记录 +export function apiOaSelfExamineAdd(params: any) { + return request.post({ url: "/jxgl.oa_self_examine/add", params }); +} + +// 编辑自评记录 +export function apiOaSelfExamineEdit(params: any) { + return request.post({ url: "/jxgl.oa_self_examine/edit", params }); +} + +// 删除自评记录 +export function apiOaSelfExamineDelete(params: any) { + return request.post({ url: "/jxgl.oa_self_examine/delete", params }); +} + +// 自评记录详情 +export function apiOaSelfExamineDetail(params: any) { + return request.get({ url: "/jxgl.oa_self_examine/detail", params }); +} + +// 删除自评记录 +export function apidelete_detail(params: any) { + return request.post({ url: "/jxgl.oa_self_examine/delete_detail", params }); +} + +// 自评记录列表 +export function apioa_examine_allLists(params: any) { + return request.get({ url: "/jxgl.oa_examine_all/lists", params }); +} diff --git a/src/components/dialogTable/dialogTableConfig.ts b/src/components/dialogTable/dialogTableConfig.ts index ba6d864..ae21919 100644 --- a/src/components/dialogTable/dialogTableConfig.ts +++ b/src/components/dialogTable/dialogTableConfig.ts @@ -1077,3 +1077,28 @@ export const oa_flow_type: Iconfig = { { department_names: "应用部门" }, ], }; + +import { apiOaExamineTempLists } from "@/api/oa_examine_temp_item"; + +export const oa_examine_temp_item: Iconfig = { + fetchFn: apiOaExamineTempLists, + dictData: "jxgl_check_type", + serchList: [ + { + label: "模板名称", + value: "temp_name", + }, + { + label: "考核类别", + value: "examine_type", + select: "jxgl_check_type", + }, + ], + tableList: [ + { examine_type_text: "考核类别" }, + { temp_name: "模版名称" }, + { total_score: "考核总分" }, + { create_user: "创建人" }, + { create_time: "创建时间" }, + ], +}; diff --git a/src/layout/default/components/header/msg.vue b/src/layout/default/components/header/msg.vue index f538a68..d06c87a 100644 --- a/src/layout/default/components/header/msg.vue +++ b/src/layout/default/components/header/msg.vue @@ -33,9 +33,9 @@ const getNums = async () => { } -setInterval(() => { - getNums() -}, 10000); +// setInterval(() => { +// getNums() +// }, 10000); getNums() diff --git a/src/views/allAssessments/edit.vue b/src/views/allAssessments/edit.vue deleted file mode 100644 index 3658b9f..0000000 --- a/src/views/allAssessments/edit.vue +++ /dev/null @@ -1,355 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/views/allAssessments/index.vue b/src/views/allAssessments/index.vue index 1165007..86f1bfb 100644 --- a/src/views/allAssessments/index.vue +++ b/src/views/allAssessments/index.vue @@ -4,23 +4,29 @@ - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + 查询 @@ -32,79 +38,50 @@ - + - - - - - - - - - - - + + + + + + + + + - - diff --git a/src/views/selfEvaluation/edit.vue b/src/views/oa_self_examine/edit.vue similarity index 66% rename from src/views/selfEvaluation/edit.vue rename to src/views/oa_self_examine/edit.vue index d556c26..03a2085 100644 --- a/src/views/selfEvaluation/edit.vue +++ b/src/views/oa_self_examine/edit.vue @@ -4,14 +4,9 @@ - - - - - - + @@ -19,13 +14,13 @@ - + - @@ -41,28 +36,29 @@ - + - + - + - + - + + - - + - @@ -71,13 +67,18 @@ - { formData.org_name } + {{ formData.total_score }} - { formData.org_name } + {{ formData.total_self_score }} + + + + @@ -85,12 +86,11 @@