From 19c74dc7fc321baa85ab9fc7c9bb1244dcc2005a Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期一, 23 九月 2024 13:00:22 +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..b3ee583 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.deepPurple[500]; + case '宸插垎閰�': + return Colors.lightBlue[600]; + case '杩涜涓�': + return Colors.teal[700]; + case '宸插畬鎴�': + return Colors.blueGrey[500]; + default: + return Colors.amber[500]; + } +} \ No newline at end of file -- Gitblit v1.9.1