From d439734ebd359cdb7c9e0214bfbaaddfbd0a1b14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=BB=E7=8F=AE=E5=AE=87?= Date: Sat, 28 Oct 2023 11:58:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=87=E6=8D=A2=E9=A1=B5=E9=9D=A2=E6=98=AF?= =?UTF-8?q?=EF=BC=8C=E5=85=B3=E9=97=AD=E5=AE=9A=E6=97=B6=E5=99=A8=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=20=E5=A6=82=E6=9E=9C=E6=8E=A5=E5=8F=A3=E6=8A=A5?= =?UTF-8?q?=E9=94=99=EF=BC=8C=E5=B0=9D=E8=AF=95=E5=AD=A3=E6=B5=8B=E8=8B=A5?= =?UTF-8?q?=E4=B8=8D=E6=88=90=E5=8A=9F=EF=BC=8C=E8=BD=BD=E5=85=B3=E9=97=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/stationOperation/index.vue | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/views/stationOperation/index.vue b/src/views/stationOperation/index.vue index b4ef162..e8ab8c7 100644 --- a/src/views/stationOperation/index.vue +++ b/src/views/stationOperation/index.vue @@ -228,6 +228,7 @@ export default { timer: null, updataFilterType: [], updataFilterDataQuality: [], + httpNum: 0, } }, created() { @@ -268,6 +269,7 @@ export default { // 查询台站数据提供率及有效率 async getDataProvisionEfficiency(arr, str) { + this.httpNum++ if (str && this.$route.path == '/station-operation') { this.$message.loading({ content: 'Loading station data, please wait...', key, duration: 0 }) } @@ -325,10 +327,15 @@ export default { } else if (arrA.length == 0 || arrB.length == 0 || arrC.length == 0) { this.upDateStationList = [] } - setTimeout(() => { + this.timer = setTimeout(() => { this.getDataProvisionEfficiency(this.markerList_clone) }, 10000) } else { + if (this.httpNum <= 5) { + setTimeout(() => { + this.getDataProvisionEfficiency(this.markerList_clone) + }, 5000) + } this.$message.warning('This operation fails. Contact your system administrator') } })