From 052d0e8bd9c1d8e0d243a166bedf761fc5a7a891 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Wed, 14 Jan 2026 16:38:00 +0800
Subject: [PATCH] feat:通用弹窗样式调整

---
 packages/utils/common/index.js |   14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)

diff --git a/packages/utils/common/index.js b/packages/utils/common/index.js
index 0c1f904..f2dafc9 100644
--- a/packages/utils/common/index.js
+++ b/packages/utils/common/index.js
@@ -14,7 +14,7 @@
 
 
 export function getDictLabel(value, dictList) {
-	return dictList.find(item => item.dictKey === value)?.dictValue || value || '-'
+	return dictList.find(item => item.dictKey === String(value))?.dictValue || value || ''
 }
 
 export function blobDownload(res) {
@@ -30,3 +30,15 @@
 	elink.click()
 	document.body.removeChild(elink)
 }
+
+export function geomAnalysis(str) {
+	if (!str) return []
+	return str
+		.replace('POLYGON((', '')
+		.replace('))', '')
+		.split(',')
+		.map(pair => {
+			const [longitude, latitude] = pair.trim().split(' ').map(Number)
+			return { longitude, latitude }
+		})
+}

--
Gitblit v1.9.3