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 @@