Browse Source

fix:优化大屏

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

2
src/views/datav/AuditSuper.vue

@ -186,7 +186,7 @@ let gobalTempMapVoList = [
changed: 137, changed: 137,
}, },
{ {
name: "岳麓分局", name: "湘江新区",
reviewOrg: 0, reviewOrg: 0,
checkPro: 11, checkPro: 11,
rushPro: 0, rushPro: 0,

5
src/views/datav/CaseVerif.vue

@ -543,6 +543,11 @@ 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)=>{
if(s.name == '湘江新区公安局'){
s.name = '湘江新区'
}
})
const maxItem = mappedData.reduce((max, item) => (Number(item.value) > Number(max.value) ? item : max), mappedData[0]); const maxItem = mappedData.reduce((max, item) => (Number(item.value) > Number(max.value) ? item : max), mappedData[0]);
const range60Percent = maxItem.value * 0.6 // const range60Percent = maxItem.value * 0.6 //
const range80Percent = maxItem.value * 0.8 // const range80Percent = maxItem.value * 0.8 //

5
src/views/datav/MailVisits.vue

@ -847,6 +847,11 @@ 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)=>{
if(s.name == '湘江新区公安局'){
s.name = '湘江新区'
}
})
mailMapIconList.value = mappedData; mailMapIconList.value = mappedData;
console.log('-------执行2') console.log('-------执行2')
console.log(mailMapIconList) console.log(mailMapIconList)

5
src/views/datav/RightsComfort.vue

@ -464,6 +464,11 @@ const getMapData = async (timeValue) => {
value: item.totalCase, value: item.totalCase,
}; };
}); });
mappedData.forEach((s)=>{
if(s.name == '湘江新区公安局'){
s.name = '湘江新区'
}
})
globalTempMapVoList.value = mappedData globalTempMapVoList.value = mappedData
const total = mappedData.reduce((sum, item) => sum + (Number(item.rightsNumber) || 0), 0); const total = mappedData.reduce((sum, item) => sum + (Number(item.rightsNumber) || 0), 0);

7
src/views/datav/SceneInsp.vue

@ -808,7 +808,7 @@ const option = ref({
if (dataItem) { if (dataItem) {
return ` return `
<div class="tooltip"> <div class="tooltip">
<div class="tooltip-title">${dataItem.originalName}</div> <div class="tooltip-title">${dataItem.originalName }</div>
<div class="tooltip-content"> <div class="tooltip-content">
<ul class="tooltip-ul" > <ul class="tooltip-ul" >
<li>通报问题数 <span>${dataItem.totalPro}</span></li> <li>通报问题数 <span>${dataItem.totalPro}</span></li>
@ -1001,6 +1001,11 @@ const getSupervisionNotifyMapData = async () => {
color: "#D34343", color: "#D34343",
}, },
]; ];
mappedData.forEach((s)=>{
if(s.name == '湘江新区公安局'){
s.name = '湘江新区'
}
})
superviseTempMapVoList.value = mappedData; superviseTempMapVoList.value = mappedData;
console.log('mappedData',mappedData) console.log('mappedData',mappedData)
option.value.series[0].data = mappedData; option.value.series[0].data = mappedData;

5
src/views/datav/VideoInsp.vue

@ -485,6 +485,11 @@ 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)=>{
if(s.name == '湘江新区公安局'){
s.name = '湘江新区'
}
})
mapIconList.value = mappedData; mapIconList.value = mappedData;
option.value.series[0].data = mappedData; option.value.series[0].data = mappedData;
option.value.visualMap.pieces = [ option.value.visualMap.pieces = [

Loading…
Cancel
Save