From e33fcba99ab3525e509ae47d80dcb38d8dfb79ce Mon Sep 17 00:00:00 2001 From: ym1026 <1539963735@qq.com> Date: Tue, 16 Sep 2025 14:42:05 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E5=A4=87=E7=BB=9F=E8=AE=A1=E5=88=86?= =?UTF-8?q?=E6=9E=90=E9=A1=B5=E9=9D=A2=E8=A1=A8=E6=A0=BC=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/components/TreeTable.vue | 1 + web/src/views/statisticalAnalysis.vue | 288 +++++++++++--------------- 2 files changed, 127 insertions(+), 162 deletions(-) diff --git a/web/src/components/TreeTable.vue b/web/src/components/TreeTable.vue index dbc4a82..be54e18 100644 --- a/web/src/components/TreeTable.vue +++ b/web/src/components/TreeTable.vue @@ -2,6 +2,7 @@
{ - this.$nextTick(() => { - this.getStatCharts() - }) - } - ) + Promise.all([ + this.getStationList(), + this.getEchartsListForActiveKey(), + this.getTableListForActiveKey() + ]).then(() => { + this.$nextTick(() => { + this.getStatCharts() + }) + }) }, immediate: true // 添加立即执行 } @@ -593,7 +560,7 @@ export default { } try { - const res = await getReq('/queryStatDayList', query) + const res = await getReq('/queryStatDetailList', query) if (res.errcode === 0) { this.tableList[this.activeKey].tableData = res.data.list || res.data this.tableList[this.activeKey].pageOption.count = res.data.count || 0 @@ -660,7 +627,6 @@ export default { this.getStatCharts() }, - async getStatCharts() { const currentInfo = this.echartsInfo[this.activeKey] const query = { @@ -684,8 +650,6 @@ export default { } } } - - } }