From 2907c71775baab81abdae694d65a6cb8bd86c721 Mon Sep 17 00:00:00 2001
From: Lou <luzhiping@qqyjz.com>
Date: Sat, 13 Apr 2024 17:27:16 +0800
Subject: [PATCH] Merge branch 'master' of http://s16s652780.51mypc.cn:49896/r/jczz_web

---
 src/util/util.js |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/src/util/util.js b/src/util/util.js
index 83cd2f7..7510d0a 100644
--- a/src/util/util.js
+++ b/src/util/util.js
@@ -458,3 +458,18 @@
 
   return null; // 如果找不到目标id,返回null
 };
+
+//转换标签颜色
+export const setLabelColor = (color) => {
+  let obj = {
+    red: "#EA1F1F",
+    yellow: "#FFB42B",
+    green: "#30D17C",
+  };
+
+  for (let i in obj) {
+    if (color == i) {
+      return obj[i];
+    }
+  }
+};

--
Gitblit v1.9.3