From f7a68273c9ae23eb81e90eb0349c8314ccd8927c Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期二, 12 十一月 2024 09:15:04 +0800 Subject: [PATCH] # --- zy-acs-flow/src/utils/color-util.js | 22 ++++++++++++++++++++++ 1 files changed, 22 insertions(+), 0 deletions(-) diff --git a/zy-acs-flow/src/utils/color-util.js b/zy-acs-flow/src/utils/color-util.js index 3eaad52..47ecf12 100644 --- a/zy-acs-flow/src/utils/color-util.js +++ b/zy-acs-flow/src/utils/color-util.js @@ -18,6 +18,28 @@ } } +export const getTaskStsChipColor = (taskStatus) => { + if (!taskStatus) { + return 'default'; + } + switch (taskStatus) { + case '鍒濆鍖�': + return 'info'; + case '绛夊緟涓�': + return 'warning'; + case '宸插垎閰�': + return 'success'; + case '杩涜涓�': + return 'primary'; + case '宸插畬鎴�': + return 'default'; + case '宸插彇娑�': + return 'error'; + default: + return 'default'; + } +} + export const getBusStsColor = (busStatus) => { if (!busStatus) { return 'default'; -- Gitblit v1.9.1