From 7c353b4e08ecb134535f142a24ca6b2b6a97e523 Mon Sep 17 00:00:00 2001 From: "YOHO\\20373" <2037305722@qq.com> Date: Sun, 18 May 2025 00:01:29 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=96=B0=E5=A2=9E=E3=80=91=E9=A2=98?= =?UTF-8?q?=E5=9E=8B=E5=88=A4=E5=88=86=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/exam/specialty/index.ts | 7 ++ src/utils/constants.ts | 8 ++ src/utils/dict.ts | 2 + src/views/exam/specialty/index.vue | 81 ++++++++++++++++++- src/views/paper/question/index.vue | 4 +- .../steps/step2/components/step-look.vue | 2 +- .../steps/step2/components/step-look.vue | 2 +- .../steps/step2/components/step-look.vue | 2 +- .../steps/step2/components/step-look.vue | 2 +- .../steps/step2/components/step-look.vue | 2 +- .../steps/step2/components/step-look.vue | 2 +- .../steps/step2/components/step-look.vue | 2 +- 12 files changed, 106 insertions(+), 10 deletions(-) diff --git a/src/api/exam/specialty/index.ts b/src/api/exam/specialty/index.ts index ece0ff1..12b25a5 100644 --- a/src/api/exam/specialty/index.ts +++ b/src/api/exam/specialty/index.ts @@ -41,3 +41,10 @@ export const updateSpecialty = async (params: any) => { export const deleteSpecialty = async (id: number) => { return await request.delete({ url: '/exam/specialty/' + id }) } + +export const getSpecialtyRole = async (id: number) => { + return await request.get({ url: '/exam/specialty/getRole/' + id }) +} +export const setSpecialtyRole = async (data) => { + return await request.post({ url: '/exam/specialty/setRole', data:data }) +} \ No newline at end of file diff --git a/src/utils/constants.ts b/src/utils/constants.ts index 1022df5..6d90d64 100644 --- a/src/utils/constants.ts +++ b/src/utils/constants.ts @@ -463,3 +463,11 @@ export const BpmAutoApproveType = { APPROVE_ALL: 1, // 仅审批一次,后续重复的审批节点均自动通过 APPROVE_SEQUENT: 2 // 仅针对连续审批的节点自动通过 } + + +export const SCORE_ROLES = { + NONE: 0, // 不自动通过 + APPROVE_ALL: 1, // 仅审批一次,后续重复的审批节点均自动通过 + APPROVE_SEQUENT: 2 // 仅针对连续审批的节点自动通过 +} + diff --git a/src/utils/dict.ts b/src/utils/dict.ts index b2c1bb2..4940a25 100644 --- a/src/utils/dict.ts +++ b/src/utils/dict.ts @@ -122,6 +122,8 @@ QUESTION_SOURCE="question_source", EXAM_QUE_DIFF="exam_que_difficulty",//题型难度 SYS_YES_NO="sys_yes_no", EXAM_STATUS="exam_status", +SCORE_ROLES="score_roles", + // ========== SYSTEM 模块 ========== SYSTEM_USER_SEX = 'system_user_sex', SYSTEM_MENU_TYPE = 'system_menu_type', diff --git a/src/views/exam/specialty/index.vue b/src/views/exam/specialty/index.vue index 20c6b89..3f07e1b 100644 --- a/src/views/exam/specialty/index.vue +++ b/src/views/exam/specialty/index.vue @@ -1,5 +1,34 @@