Browse Source

fix:优化大屏

master
pengwei 1 month ago
parent
commit
de83d1b4cb
  1. 16
      src/views/datav/CaseVerif.vue
  2. 34
      src/views/datav/Lmgz.vue
  3. 31
      src/views/datav/SceneInsp.vue
  4. 12
      src/views/datav/VideoInsp.vue

16
src/views/datav/CaseVerif.vue

@ -577,16 +577,16 @@ const getCaseSourceRateAndDealSituationData = async (timeValue) => {
// tzcloption.value.series[0].data = res.dzclList; // tzcloption.value.series[0].data = res.dzclList;
// } // }
function getData() { async function getData() {
getCaseVerificationRankData(time.value); await getCaseVerificationRankData(time.value);
// getCaseProblemPropertyData(time.value) // getCaseProblemPropertyData(time.value)
getCaseVerificationCountData(time.value); await getCaseVerificationCountData(time.value);
getCaseVerificationMapData(time.value); await getCaseVerificationMapData(time.value);
getCaseVerificationTrendData(selectedYear.value); await getCaseVerificationTrendData(selectedYear.value);
getCaseSourceRateAndDealSituationData(time.value); await getCaseSourceRateAndDealSituationData(time.value);
// getConfinementAndPauseData(time.value); // getConfinementAndPauseData(time.value);
getCaseTypeFun(time.value) await getCaseTypeFun(time.value)
getConfinementBarFun(time.value) await getConfinementBarFun(time.value)
} }
// endregion // endregion

34
src/views/datav/Lmgz.vue

@ -424,22 +424,24 @@ watch(time, () => {
},{deep:true}); },{deep:true});
onMounted(() => { onMounted(() => {
getTotalData();// /total/statistics Promise.all([
getAreaRiskData(selectedMetric.value); // getTotalData(),// /total/statistics
getAreaNegativeData(selectedMetric.value);// /area/negative/statistics getAreaRiskData(selectedMetric.value),//
getAreaRateData(selectedMetric.value);// /area/rate/statistics getAreaNegativeData(selectedMetric.value),// /area/negative/statistics
getPCSRiskData(selectedMetricPCS.value);// /risk/org/statistics getAreaRateData(selectedMetric.value),// /area/rate/statistics
getOrgNegativeData(selectedMetricPCS.value);// /org/negative/statistics getPCSRiskData(selectedMetricPCS.value),// /risk/org/statistics
getOrgRateData(selectedMetricPCS.value);// /org/rate/statistics getOrgNegativeData(selectedMetricPCS.value),// /org/negative/statistics
getCarRiskData(selectedMetricJJDD.value);// getOrgRateData(selectedMetricPCS.value),// /org/rate/statistics
getCarOrgNegativeData(selectedMetricJJDD.value);// /org/car/negative/statistics getCarRiskData(selectedMetricJJDD.value),//
getCarOrgRateData(selectedMetricJJDD.value);// /org/car/rate/statistics getCarOrgNegativeData(selectedMetricJJDD.value),// /org/car/negative/statistics
getLeaderNegativeData(selectedMetricLD.value);// getCarOrgRateData(selectedMetricJJDD.value),// /org/car/rate/statistics
getLeaderRiskData(selectedMetricLD.value);// getLeaderNegativeData(selectedMetricLD.value),//
getPoliceANegativeData(selectedMetricMJ.value);// getLeaderRiskData(selectedMetricLD.value),//
getPoliceARiskData(selectedMetricMJ.value);// getPoliceANegativeData(selectedMetricMJ.value),//
getPoliceBNegativeData(selectedMetricXFJ.value);/// getPoliceARiskData(selectedMetricMJ.value),//
getPoliceBRiskData(selectedMetricXFJ.value);/// getPoliceBNegativeData(selectedMetricXFJ.value),///
getPoliceBRiskData(selectedMetricXFJ.value)///
])
}); });
const getTotalData = async () => { const getTotalData = async () => {

31
src/views/datav/SceneInsp.vue

@ -1029,16 +1029,14 @@ const getWorkDynamicsData = async () => {
messages.value = colorNewsVoList; messages.value = colorNewsVoList;
}; };
const getData = () => { const getData =async () => {
new Promise.all([ await getChangedRankData(),
getChangedRankData(), await getSupervisionNotifyMapData(),
getProblemTypeRateData(), await getProblemTypeRateData(),
getSupervisionNotifyCountData(), await getSupervisionNotifyCountData(),
getSupervisionNotifyMapData(), await getSupervisionTrendData(),
getSupervisionTrendData(), await getYellowBetDrugData(),
getYellowBetDrugData(), await getWorkDynamicsData()
getWorkDynamicsData()
])
}; };
// endregion // endregion
@ -1111,15 +1109,17 @@ const sceneInspTrendAnimation = () => {
sceneInspTrendIntervalId = setInterval(sceneInspTrendAnimation, 2000); sceneInspTrendIntervalId = setInterval(sceneInspTrendAnimation, 2000);
// //
const sceneInspZxdxRankAnimation = () => { const sceneInspZxdxRankAnimation = () => {
const dictItem = dictData.find( if(dictData.value){
const dictItem = dictData.value.find(
(item) => (item.dictValue === zxdcProRankTab.value) (item) => (item.dictValue === zxdcProRankTab.value)
); );
if (dictItem) { if (dictItem) {
const index = dictData.indexOf(dictItem); const index = dictData.value.indexOf(dictItem);
if (index === dictData.length - 1) { if (index === dictData.value.length - 1) {
zxdcProRankTab.value = dictData[0].dictValue; zxdcProRankTab.value = dictData[0]?.dictValue;
} else { } else {
zxdcProRankTab.value = dictData[index + 1].dictValue; zxdcProRankTab.value = dictData[index + 1]?.dictValue;
}
} }
} }
}; };
@ -1148,6 +1148,7 @@ sceneWorkDynamicsIntervalId = setInterval(sceneWorkDynamicsAnimation, 50);
// region // region
watch(time, () => { watch(time, () => {
getData(); getData();
}); });
onMounted(() => { onMounted(() => {

12
src/views/datav/VideoInsp.vue

@ -518,13 +518,11 @@ const getVideoSuperviseProblemTypeRateData = async (timeValue) => {
}; };
const getData = async () => { const getData = async () => {
await Promise.all([ await getVideoSuperviseProblemRankData(time.value),
getVideoSuperviseProblemRankData(time.value), await getAllVideoSuperviseCountData(time.value),
getAllVideoSuperviseCountData(time.value), await getVideoSuperviseMapData(time.value),
getVideoSuperviseMapData(time.value), await getVideoSuperviseTrendData(selectedYear.value),
getVideoSuperviseTrendData(selectedYear.value), await getVideoSuperviseProblemTypeRateData(time.value)
getVideoSuperviseProblemTypeRateData(time.value),
])
}; };
// endregion // endregion

Loading…
Cancel
Save