diff --git a/src/components/ClickableTag/index.vue b/src/components/ClickableTag/index.vue index 1961923..a40bce9 100644 --- a/src/components/ClickableTag/index.vue +++ b/src/components/ClickableTag/index.vue @@ -2,25 +2,21 @@ - - + + + - - - + + + @@ -36,26 +32,32 @@ - \ No newline at end of file diff --git a/src/views/professional/professionalteacherhonor/index.vue b/src/views/professional/professionalteacherhonor/index.vue index 21cfbd5..736b523 100755 --- a/src/views/professional/professionalteacherhonor/index.vue +++ b/src/views/professional/professionalteacherhonor/index.vue @@ -83,9 +83,45 @@ > - + @@ -114,8 +150,6 @@ - - @@ -199,10 +232,12 @@ import { examObj, delObj } from '/@/api/professional/professionaluser/professionalteacherhonor' -import { PROFESSIONAL_AUDIT_STATE_OPTIONS } from '/@/config/global' +import { PROFESSIONAL_AUDIT_STATE_OPTIONS, getStatusConfig } from '/@/config/global' import { defineAsyncComponent } from 'vue' const TeacherNameNo = defineAsyncComponent(() => import('/@/components/TeacherNameNo/index.vue')) const AuditState = defineAsyncComponent(() => import('/@/components/AuditState/index.vue')) +const ClickableTag = defineAsyncComponent(() => import('/@/components/ClickableTag/index.vue')) +const DetailPopover = defineAsyncComponent(() => import('/@/components/DetailPopover/index.vue')) const ProfessionalBackResaon = defineAsyncComponent(() => import('/@/views/professional/common/professional-back-resaon.vue')) const DataForm = defineAsyncComponent(() => import('./form.vue')) const previewFile = defineAsyncComponent(() => import('/@/components/tools/preview-file.vue')) @@ -217,6 +252,13 @@ const { professional_state: professionalState } = useDict('professional_state') // 审核状态选项 const auditStateOptions = PROFESSIONAL_AUDIT_STATE_OPTIONS +// 审核状态转 ClickableTag 配置(用 options 的 icon 字符串,与 AuditState 一致为实心) +const getAuditStateTagConfig = (state: string | number) => { + const opt = getStatusConfig(auditStateOptions, state) + if (!opt) return null + return { type: opt.type, label: opt.label, leftIcon: opt.icon, effect: opt.effect || 'dark' } +} + // 无权限即无节点 const { hasAuth } = useAuth() @@ -369,4 +411,29 @@ const handleDownLoadWord = async () => { diff --git a/src/views/professional/professionaltitlerelation/index.vue b/src/views/professional/professionaltitlerelation/index.vue index dcbaf10..2ba74ec 100755 --- a/src/views/professional/professionaltitlerelation/index.vue +++ b/src/views/professional/professionaltitlerelation/index.vue @@ -1,41 +1,9 @@