diff --git a/src/views/datav/CaseVerif.vue b/src/views/datav/CaseVerif.vue index c283553..3ad01ca 100644 --- a/src/views/datav/CaseVerif.vue +++ b/src/views/datav/CaseVerif.vue @@ -578,15 +578,17 @@ const getCaseSourceRateAndDealSituationData = async (timeValue) => { // } async function getData() { - await getCaseVerificationRankData(time.value); - // getCaseProblemPropertyData(time.value) - await getCaseVerificationCountData(time.value); - await getCaseVerificationMapData(time.value); - await getCaseVerificationTrendData(selectedYear.value); - await getCaseSourceRateAndDealSituationData(time.value); - // getConfinementAndPauseData(time.value); - await getCaseTypeFun(time.value) - await getConfinementBarFun(time.value) + Promise.all([ + getCaseVerificationRankData(time.value), + // getCaseProblemPropertyData(time.value) + getCaseVerificationCountData(time.value), + getCaseVerificationMapData(time.value), + getCaseVerificationTrendData(selectedYear.value), + getCaseSourceRateAndDealSituationData(time.value), + // getConfinementAndPauseData(time.value); + getCaseTypeFun(time.value), + getConfinementBarFun(time.value) + ]) } // endregion diff --git a/src/views/datav/SceneInsp.vue b/src/views/datav/SceneInsp.vue index 591aab6..9970401 100644 --- a/src/views/datav/SceneInsp.vue +++ b/src/views/datav/SceneInsp.vue @@ -1030,13 +1030,15 @@ const getWorkDynamicsData = async () => { }; const getData =async () => { - await getChangedRankData(), - await getSupervisionNotifyMapData(), - await getProblemTypeRateData(), - await getSupervisionNotifyCountData(), - await getSupervisionTrendData(), - await getYellowBetDrugData(), - await getWorkDynamicsData() + Promise.all([ + getChangedRankData(), + getSupervisionNotifyMapData(), + getProblemTypeRateData(), + getSupervisionNotifyCountData(), + getSupervisionTrendData(), + getYellowBetDrugData(), + getWorkDynamicsData() + ]) }; // endregion diff --git a/src/views/datav/VideoInsp.vue b/src/views/datav/VideoInsp.vue index d755fe5..c7178dc 100644 --- a/src/views/datav/VideoInsp.vue +++ b/src/views/datav/VideoInsp.vue @@ -518,11 +518,13 @@ const getVideoSuperviseProblemTypeRateData = async (timeValue) => { }; const getData = async () => { - await getVideoSuperviseProblemRankData(time.value), - await getAllVideoSuperviseCountData(time.value), - await getVideoSuperviseMapData(time.value), - await getVideoSuperviseTrendData(selectedYear.value), - await getVideoSuperviseProblemTypeRateData(time.value) + Promise.all([ + getVideoSuperviseProblemRankData(time.value), + getAllVideoSuperviseCountData(time.value), + getVideoSuperviseMapData(time.value), + getVideoSuperviseTrendData(selectedYear.value), + getVideoSuperviseProblemTypeRateData(time.value) + ]) }; // endregion