From 625d8183d3fe964f545c19c2101f73e91fd467da Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期六, 21 九月 2024 16:39:39 +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