|
|
|
|
@ -216,6 +216,7 @@ import vCharts from "vue-echarts";
|
|
|
|
|
import changshaMap from "@/assets/data/changsha.json"; |
|
|
|
|
import * as echarts from "echarts/core"; |
|
|
|
|
import moment from "moment"; |
|
|
|
|
import {setNameFun} from "@/enums/orgMapping.js"; |
|
|
|
|
import { |
|
|
|
|
getALlComfortCount, |
|
|
|
|
getPunishmentSituation, |
|
|
|
|
@ -459,16 +460,11 @@ const getMapData = async (timeValue) => {
|
|
|
|
|
} |
|
|
|
|
return { |
|
|
|
|
...item, |
|
|
|
|
originalName: item.name, // 添加原始名称 |
|
|
|
|
name: name, |
|
|
|
|
originalName: setNameFun(item.name), // 添加原始名称 |
|
|
|
|
name: setNameFun(item.name), |
|
|
|
|
value: item.totalCase, |
|
|
|
|
}; |
|
|
|
|
}); |
|
|
|
|
mappedData.map((s)=>{ |
|
|
|
|
if(s.name == '湘江新区公安局'){ |
|
|
|
|
s.name = '湘江新区' |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
globalTempMapVoList.value = mappedData |
|
|
|
|
|
|
|
|
|
const total = mappedData.reduce((sum, item) => sum + (Number(item.rightsNumber) || 0), 0); |
|
|
|
|
|