Browse Source

fix:优化大屏

master
pengwei 1 month ago
parent
commit
d4f5781db2
  1. 6
      src/enums/JwpyOrgMapping.js
  2. 4
      src/views/datav/RightsComfort.vue

6
src/enums/JwpyOrgMapping.js

@ -34,14 +34,14 @@ export function mapOrgNameMapping(backendData, valueMapping) {
const mappedName = orgMapping[item.OrganizeName] || item.OrganizeName; const mappedName = orgMapping[item.OrganizeName] || item.OrganizeName;
return { return {
...item, ...item,
originalName: item.OrganizeName , // 保留原始名称,就是后端传送的名字 originalName: setNameFun(item.OrganizeName) , // 保留原始名称,就是后端传送的名字
name: setNameFun(mappedName), name: mappedName,
value: Number(item[valueMapping] || 0), // 自定义属性 value: Number(item[valueMapping] || 0), // 自定义属性
}; };
}); });
} }
export function setNameFun(name){ function setNameFun(name){
if(name == '湘江新区公安局 '){ if(name == '湘江新区公安局 '){
return '湘江新区' return '湘江新区'
} }

4
src/views/datav/RightsComfort.vue

@ -460,8 +460,8 @@ const getMapData = async (timeValue) => {
} }
return { return {
...item, ...item,
originalName: item.name, // originalName: setNameFun(item.name), //
name: setNameFun(item.name), name: item.name,
value: item.totalCase, value: item.totalCase,
}; };
}); });

Loading…
Cancel
Save