From f9120beb19444328b34a25280c60080b2fd22b30 Mon Sep 17 00:00:00 2001 From: pengwei Date: Sun, 26 Oct 2025 18:00:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BC=98=E5=8C=96=E5=A4=A7=E5=B1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/datav/AuditSuper.vue | 2 +- src/views/datav/CaseVerif.vue | 5 +++++ src/views/datav/MailVisits.vue | 5 +++++ src/views/datav/RightsComfort.vue | 5 +++++ src/views/datav/SceneInsp.vue | 7 ++++++- src/views/datav/VideoInsp.vue | 5 +++++ 6 files changed, 27 insertions(+), 2 deletions(-) diff --git a/src/views/datav/AuditSuper.vue b/src/views/datav/AuditSuper.vue index 6e3e5a7..c4a17dd 100644 --- a/src/views/datav/AuditSuper.vue +++ b/src/views/datav/AuditSuper.vue @@ -186,7 +186,7 @@ let gobalTempMapVoList = [ changed: 137, }, { - name: "岳麓分局", + name: "湘江新区", reviewOrg: 0, checkPro: 11, rushPro: 0, diff --git a/src/views/datav/CaseVerif.vue b/src/views/datav/CaseVerif.vue index 058bce2..557fce5 100644 --- a/src/views/datav/CaseVerif.vue +++ b/src/views/datav/CaseVerif.vue @@ -543,6 +543,11 @@ const getCaseVerificationCountData = async (timeValue) => { const getCaseVerificationMapData = async (timeValue) => { const res = await getCaseVerificationMap(timeValue); const mappedData = mapOrgNameMapping(res.caseVerificationMapList, "total"); + mappedData.forEach((s)=>{ + if(s.name == '湘江新区公安局'){ + s.name = '湘江新区' + } + }) const maxItem = mappedData.reduce((max, item) => (Number(item.value) > Number(max.value) ? item : max), mappedData[0]); const range60Percent = maxItem.value * 0.6 // 不用取整,小数也可以 const range80Percent = maxItem.value * 0.8 // 不用取整,小数也可以 diff --git a/src/views/datav/MailVisits.vue b/src/views/datav/MailVisits.vue index 256ffc6..dc03df7 100644 --- a/src/views/datav/MailVisits.vue +++ b/src/views/datav/MailVisits.vue @@ -847,6 +847,11 @@ const getMailMapIconData = async (timeValue = time.value) => { console.log('-------执行') const res = await getMailMapIcon(timeValue); const mappedData = mapOrgNameMapping(res.mailMapIconList, "total"); + mappedData.forEach((s)=>{ + if(s.name == '湘江新区公安局'){ + s.name = '湘江新区' + } + }) mailMapIconList.value = mappedData; console.log('-------执行2') console.log(mailMapIconList) diff --git a/src/views/datav/RightsComfort.vue b/src/views/datav/RightsComfort.vue index c2638e4..ac25c24 100644 --- a/src/views/datav/RightsComfort.vue +++ b/src/views/datav/RightsComfort.vue @@ -464,6 +464,11 @@ const getMapData = async (timeValue) => { value: item.totalCase, }; }); + mappedData.forEach((s)=>{ + if(s.name == '湘江新区公安局'){ + s.name = '湘江新区' + } + }) globalTempMapVoList.value = mappedData const total = mappedData.reduce((sum, item) => sum + (Number(item.rightsNumber) || 0), 0); diff --git a/src/views/datav/SceneInsp.vue b/src/views/datav/SceneInsp.vue index 654ce9a..e6927a7 100644 --- a/src/views/datav/SceneInsp.vue +++ b/src/views/datav/SceneInsp.vue @@ -808,7 +808,7 @@ const option = ref({ if (dataItem) { return `
-
${dataItem.originalName}
+
${dataItem.originalName }
  • 通报问题数 ${dataItem.totalPro}
  • @@ -1001,6 +1001,11 @@ const getSupervisionNotifyMapData = async () => { color: "#D34343", }, ]; + mappedData.forEach((s)=>{ + if(s.name == '湘江新区公安局'){ + s.name = '湘江新区' + } + }) superviseTempMapVoList.value = mappedData; console.log('mappedData',mappedData) option.value.series[0].data = mappedData; diff --git a/src/views/datav/VideoInsp.vue b/src/views/datav/VideoInsp.vue index c7178dc..e9659aa 100644 --- a/src/views/datav/VideoInsp.vue +++ b/src/views/datav/VideoInsp.vue @@ -485,6 +485,11 @@ const getVideoSuperviseMapData = async (timeValue) => { ); const range60Percent = maxItem.value * 0.6; // 不用取整,小数也可以 const range80Percent = maxItem.value * 0.8; // 不用取整,小数也可以 + mappedData.forEach((s)=>{ + if(s.name == '湘江新区公安局'){ + s.name = '湘江新区' + } + }) mapIconList.value = mappedData; option.value.series[0].data = mappedData; option.value.visualMap.pieces = [