From d4f5781db27e8fec9108660e51ce99eec997a04c Mon Sep 17 00:00:00 2001 From: pengwei Date: Mon, 27 Oct 2025 10:12:06 +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/enums/JwpyOrgMapping.js | 8 ++++---- src/views/datav/RightsComfort.vue | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/enums/JwpyOrgMapping.js b/src/enums/JwpyOrgMapping.js index 634fa40..9dd78e8 100644 --- a/src/enums/JwpyOrgMapping.js +++ b/src/enums/JwpyOrgMapping.js @@ -34,15 +34,15 @@ export function mapOrgNameMapping(backendData, valueMapping) { const mappedName = orgMapping[item.OrganizeName] || item.OrganizeName; return { ...item, - originalName: item.OrganizeName , // 保留原始名称,就是后端传送的名字 - name: setNameFun(mappedName), + originalName: setNameFun(item.OrganizeName) , // 保留原始名称,就是后端传送的名字 + name: mappedName, value: Number(item[valueMapping] || 0), // 自定义属性 }; }); } -export function setNameFun(name){ - if(name == '湘江新区公安局'){ + function setNameFun(name){ + if(name == '湘江新区公安局 '){ return '湘江新区' } return name; diff --git a/src/views/datav/RightsComfort.vue b/src/views/datav/RightsComfort.vue index 1bdc688..4039c1a 100644 --- a/src/views/datav/RightsComfort.vue +++ b/src/views/datav/RightsComfort.vue @@ -460,8 +460,8 @@ const getMapData = async (timeValue) => { } return { ...item, - originalName: item.name, // 添加原始名称 - name: setNameFun(item.name), + originalName: setNameFun(item.name), // 添加原始名称 + name: item.name, value: item.totalCase, }; }); @@ -645,7 +645,7 @@ const hurtNumOption = ref({ }); function setNameFun(name){ - if(name == '湘江新区公安局'){ + if(name == '湘江新区公安局 '){ return '湘江新区' } return name;