From ee695cb13f2306500eaf6799e8a9d2b78408a2a5 Mon Sep 17 00:00:00 2001
From: zhongrj <646384940@qq.com>
Date: Wed, 15 May 2024 14:44:28 +0800
Subject: [PATCH] Merge branch 'master' of http://139.196.74.78:10010/r/jczz_web

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

diff --git a/src/util/util.js b/src/util/util.js
index 83cd2f7..ccf5261 100644
--- a/src/util/util.js
+++ b/src/util/util.js
@@ -458,3 +458,34 @@
 
   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];
+    }
+  }
+};
+
+
+//转换房屋标签颜色
+export const setHouseLabelColor = (color) => {
+  let obj = {
+    blue: "#4397F7",
+    yellow: "#FFB42B",
+    green: "#30D17C",
+  };
+
+  for (let i in obj) {
+    if (color == i) {
+      return obj[i];
+    }
+  }
+};

--
Gitblit v1.9.3