From 0453a0bc5329d3bd4ff6d731d4bbd64890f722b3 Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期六, 21 九月 2024 14:52:36 +0800 Subject: [PATCH] # --- zy-acs-flow/src/utils/common.js | 21 ++++++++++++++++++++- 1 files changed, 20 insertions(+), 1 deletions(-) diff --git a/zy-acs-flow/src/utils/common.js b/zy-acs-flow/src/utils/common.js index a3a8fce..790d6e3 100644 --- a/zy-acs-flow/src/utils/common.js +++ b/zy-acs-flow/src/utils/common.js @@ -1,3 +1,4 @@ +import * as Colors from '@mui/material/colors'; export const extractNavMenus = (data) => { if (!data) { @@ -49,4 +50,22 @@ } }); return result; -}; \ No newline at end of file +}; + +export const getTaskStsColor = (taskStatus) => { + if (!taskStatus) { + return Colors.grey[500]; + } + switch (taskStatus) { + case '绛夊緟涓�': + return Colors.amber[500]; + case '宸插垎閰�': + return Colors.blue[500]; + case '杩涜涓�': + return Colors.green[500]; + case '宸插畬鎴�': + return Colors.blueGrey[500]; + default: + return Colors.amber[500]; + } +} \ No newline at end of file -- Gitblit v1.9.1