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. 35
      src/views/datav/SceneInsp.vue
  4. 14
      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;
// }
function getData() {
getCaseVerificationRankData(time.value);
async function getData() {
await getCaseVerificationRankData(time.value);
// getCaseProblemPropertyData(time.value)
getCaseVerificationCountData(time.value);
getCaseVerificationMapData(time.value);
getCaseVerificationTrendData(selectedYear.value);
getCaseSourceRateAndDealSituationData(time.value);
await getCaseVerificationCountData(time.value);
await getCaseVerificationMapData(time.value);
await getCaseVerificationTrendData(selectedYear.value);
await getCaseSourceRateAndDealSituationData(time.value);
// getConfinementAndPauseData(time.value);
getCaseTypeFun(time.value)
getConfinementBarFun(time.value)
await getCaseTypeFun(time.value)
await getConfinementBarFun(time.value)
}
// endregion

34
src/views/datav/Lmgz.vue

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

35
src/views/datav/SceneInsp.vue

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

14
src/views/datav/VideoInsp.vue

@ -517,14 +517,12 @@ const getVideoSuperviseProblemTypeRateData = async (timeValue) => {
res.videoSuperviseProblemTypeRate;
};
const getData =async () => {
await Promise.all([
getVideoSuperviseProblemRankData(time.value),
getAllVideoSuperviseCountData(time.value),
getVideoSuperviseMapData(time.value),
getVideoSuperviseTrendData(selectedYear.value),
getVideoSuperviseProblemTypeRateData(time.value),
])
const getData = async () => {
await getVideoSuperviseProblemRankData(time.value),
await getAllVideoSuperviseCountData(time.value),
await getVideoSuperviseMapData(time.value),
await getVideoSuperviseTrendData(selectedYear.value),
await getVideoSuperviseProblemTypeRateData(time.value)
};
// endregion

Loading…
Cancel
Save