From b519f5e42f64c06c857b0ea349bf8f5d55e70a54 Mon Sep 17 00:00:00 2001 From: weibl Date: Tue, 24 Feb 2026 15:43:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=20statusMapFun?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/common/statusDot/statusMap.ts | 18 ++++------------- src/views/simulation/reportLib/index.vue | 4 ++-- .../components/pushReportDialog.vue | 20 +++++++++---------- 3 files changed, 16 insertions(+), 26 deletions(-) diff --git a/src/components/common/statusDot/statusMap.ts b/src/components/common/statusDot/statusMap.ts index 54eaffc7..8a714a66 100644 --- a/src/components/common/statusDot/statusMap.ts +++ b/src/components/common/statusDot/statusMap.ts @@ -87,7 +87,7 @@ export const getTaskExeStyleClass = (status: string) => { * @param status * @returns */ -export const getApproveStyleClass = (status: number) => { +export const getApproveStyleClass = (status: number, type?: string) => { const numberStatus = Number(status); switch (numberStatus) { case FLOW_APPROVE_STATUS_ENUM.APPROVED: @@ -95,6 +95,9 @@ export const getApproveStyleClass = (status: number) => { case FLOW_APPROVE_STATUS_ENUM.APPROVING: return 'warning'; case FLOW_APPROVE_STATUS_ENUM.NOT_APPROVED: + if (type === 'reportLib' || type === 'processLib') { + return 'primary'; + } return 'info'; case FLOW_APPROVE_STATUS_ENUM.NOT_APPROVED_REJECT: return 'error'; @@ -144,19 +147,6 @@ export const statusMapFun3 = (type: any) => { } }; -export const statusMapFun4 = (type: any) => { - switch (type) { - case FLOW_APPROVE_STATUS_ENUM.NOT_APPROVED: - return 'primary'; - case FLOW_APPROVE_STATUS_ENUM.APPROVING: - return 'warning'; - case FLOW_APPROVE_STATUS_ENUM.APPROVED: - return 'success'; - default: - return 'error'; - } -}; - export const statusMapFun5 = (status: string) => { switch (status) { case '0': diff --git a/src/views/simulation/reportLib/index.vue b/src/views/simulation/reportLib/index.vue index 96cb1043..75cc6cfd 100644 --- a/src/views/simulation/reportLib/index.vue +++ b/src/views/simulation/reportLib/index.vue @@ -146,7 +146,7 @@ {{ DISCIPLINE_TYPE.O[row.templateType] }}