From 1f9d980368d43b8b5a6c2478c5c12efcb34d2ef4 Mon Sep 17 00:00:00 2001 From: pengwei Date: Sun, 26 Oct 2025 11:04:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BC=98=E5=8C=96=E5=A4=A7=E5=B1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/datav/CaseVerif.vue | 20 +++++++++++--------- src/views/datav/SceneInsp.vue | 16 +++++++++------- src/views/datav/VideoInsp.vue | 12 +++++++----- 3 files changed, 27 insertions(+), 21 deletions(-) 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