Browse Source

fix:优化大屏

master
pengwei 1 month ago
parent
commit
1ee233a235
  1. 2
      src/views/datav/CaseVerif.vue
  2. 5
      src/views/datav/Global.vue
  3. 2
      src/views/datav/MailVisits.vue
  4. 2
      src/views/datav/RightsComfort.vue
  5. 2
      src/views/datav/SceneInsp.vue
  6. 2
      src/views/datav/VideoInsp.vue

2
src/views/datav/CaseVerif.vue

@ -543,7 +543,7 @@ const getCaseVerificationCountData = async (timeValue) => {
const getCaseVerificationMapData = async (timeValue) => { const getCaseVerificationMapData = async (timeValue) => {
const res = await getCaseVerificationMap(timeValue); const res = await getCaseVerificationMap(timeValue);
const mappedData = mapOrgNameMapping(res.caseVerificationMapList, "total"); const mappedData = mapOrgNameMapping(res.caseVerificationMapList, "total");
mappedData.forEach((s)=>{ mappedData.map((s)=>{
if(s.name == '湘江新区公安局'){ if(s.name == '湘江新区公安局'){
s.name = '湘江新区' s.name = '湘江新区'
} }

5
src/views/datav/Global.vue

@ -464,6 +464,11 @@ const getAllGlobalCountData = async (timeValue = time.value) => {
const getGlobalMapData = async (timeValue = time.value) => { const getGlobalMapData = async (timeValue = time.value) => {
const res = await getGlobalMap(timeValue); const res = await getGlobalMap(timeValue);
const mappedData = mapOrgNameMapping(res.globalTempMapVoList, "totalPro"); const mappedData = mapOrgNameMapping(res.globalTempMapVoList, "totalPro");
mappedData.map((s)=>{
if(s.name == '湘江新区公安局'){
s.name = '湘江新区'
}
})
console.log('mappedData',mappedData) console.log('mappedData',mappedData)
// //
const maxItem = mappedData.reduce( const maxItem = mappedData.reduce(

2
src/views/datav/MailVisits.vue

@ -847,7 +847,7 @@ const getMailMapIconData = async (timeValue = time.value) => {
console.log('-------执行') console.log('-------执行')
const res = await getMailMapIcon(timeValue); const res = await getMailMapIcon(timeValue);
const mappedData = mapOrgNameMapping(res.mailMapIconList, "total"); const mappedData = mapOrgNameMapping(res.mailMapIconList, "total");
mappedData.forEach((s)=>{ mappedData.map((s)=>{
if(s.name == '湘江新区公安局'){ if(s.name == '湘江新区公安局'){
s.name = '湘江新区' s.name = '湘江新区'
} }

2
src/views/datav/RightsComfort.vue

@ -464,7 +464,7 @@ const getMapData = async (timeValue) => {
value: item.totalCase, value: item.totalCase,
}; };
}); });
mappedData.forEach((s)=>{ mappedData.map((s)=>{
if(s.name == '湘江新区公安局'){ if(s.name == '湘江新区公安局'){
s.name = '湘江新区' s.name = '湘江新区'
} }

2
src/views/datav/SceneInsp.vue

@ -1001,7 +1001,7 @@ const getSupervisionNotifyMapData = async () => {
color: "#D34343", color: "#D34343",
}, },
]; ];
mappedData.forEach((s)=>{ mappedData.map((s)=>{
if(s.name == '湘江新区公安局'){ if(s.name == '湘江新区公安局'){
s.name = '湘江新区' s.name = '湘江新区'
} }

2
src/views/datav/VideoInsp.vue

@ -485,7 +485,7 @@ const getVideoSuperviseMapData = async (timeValue) => {
); );
const range60Percent = maxItem.value * 0.6; // const range60Percent = maxItem.value * 0.6; //
const range80Percent = maxItem.value * 0.8; // const range80Percent = maxItem.value * 0.8; //
mappedData.forEach((s)=>{ mappedData.map((s)=>{
if(s.name == '湘江新区公安局'){ if(s.name == '湘江新区公安局'){
s.name = '湘江新区' s.name = '湘江新区'
} }

Loading…
Cancel
Save