From 1ee233a235223c3f5f958007bdc5905ba364f1c1 Mon Sep 17 00:00:00 2001 From: pengwei Date: Sun, 26 Oct 2025 18:26:03 +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/CaseVerif.vue | 2 +- src/views/datav/Global.vue | 5 +++++ src/views/datav/MailVisits.vue | 2 +- src/views/datav/RightsComfort.vue | 2 +- src/views/datav/SceneInsp.vue | 2 +- src/views/datav/VideoInsp.vue | 2 +- 6 files changed, 10 insertions(+), 5 deletions(-) diff --git a/src/views/datav/CaseVerif.vue b/src/views/datav/CaseVerif.vue index 557fce5..59b1448 100644 --- a/src/views/datav/CaseVerif.vue +++ b/src/views/datav/CaseVerif.vue @@ -543,7 +543,7 @@ const getCaseVerificationCountData = async (timeValue) => { const getCaseVerificationMapData = async (timeValue) => { const res = await getCaseVerificationMap(timeValue); const mappedData = mapOrgNameMapping(res.caseVerificationMapList, "total"); - mappedData.forEach((s)=>{ + mappedData.map((s)=>{ if(s.name == '湘江新区公安局'){ s.name = '湘江新区' } diff --git a/src/views/datav/Global.vue b/src/views/datav/Global.vue index 5849a1e..2871a6c 100644 --- a/src/views/datav/Global.vue +++ b/src/views/datav/Global.vue @@ -464,6 +464,11 @@ const getAllGlobalCountData = async (timeValue = time.value) => { const getGlobalMapData = async (timeValue = time.value) => { const res = await getGlobalMap(timeValue); const mappedData = mapOrgNameMapping(res.globalTempMapVoList, "totalPro"); + mappedData.map((s)=>{ + if(s.name == '湘江新区公安局'){ + s.name = '湘江新区' + } + }) console.log('mappedData',mappedData) // 所有问题总数 const maxItem = mappedData.reduce( diff --git a/src/views/datav/MailVisits.vue b/src/views/datav/MailVisits.vue index dc03df7..7356786 100644 --- a/src/views/datav/MailVisits.vue +++ b/src/views/datav/MailVisits.vue @@ -847,7 +847,7 @@ const getMailMapIconData = async (timeValue = time.value) => { console.log('-------执行') const res = await getMailMapIcon(timeValue); const mappedData = mapOrgNameMapping(res.mailMapIconList, "total"); - mappedData.forEach((s)=>{ + mappedData.map((s)=>{ if(s.name == '湘江新区公安局'){ s.name = '湘江新区' } diff --git a/src/views/datav/RightsComfort.vue b/src/views/datav/RightsComfort.vue index ac25c24..14654ad 100644 --- a/src/views/datav/RightsComfort.vue +++ b/src/views/datav/RightsComfort.vue @@ -464,7 +464,7 @@ const getMapData = async (timeValue) => { value: item.totalCase, }; }); - mappedData.forEach((s)=>{ + mappedData.map((s)=>{ if(s.name == '湘江新区公安局'){ s.name = '湘江新区' } diff --git a/src/views/datav/SceneInsp.vue b/src/views/datav/SceneInsp.vue index e6927a7..abd9bb2 100644 --- a/src/views/datav/SceneInsp.vue +++ b/src/views/datav/SceneInsp.vue @@ -1001,7 +1001,7 @@ const getSupervisionNotifyMapData = async () => { color: "#D34343", }, ]; - mappedData.forEach((s)=>{ + mappedData.map((s)=>{ if(s.name == '湘江新区公安局'){ s.name = '湘江新区' } diff --git a/src/views/datav/VideoInsp.vue b/src/views/datav/VideoInsp.vue index e9659aa..f42f3ca 100644 --- a/src/views/datav/VideoInsp.vue +++ b/src/views/datav/VideoInsp.vue @@ -485,7 +485,7 @@ const getVideoSuperviseMapData = async (timeValue) => { ); const range60Percent = maxItem.value * 0.6; // 不用取整,小数也可以 const range80Percent = maxItem.value * 0.8; // 不用取整,小数也可以 - mappedData.forEach((s)=>{ + mappedData.map((s)=>{ if(s.name == '湘江新区公安局'){ s.name = '湘江新区' }