From 2f93ee17481ca54255cc6220a8e169d05724b588 Mon Sep 17 00:00:00 2001 From: duan Date: Fri, 12 Aug 2022 14:31:36 +0800 Subject: [PATCH] =?UTF-8?q?feat(src/views/reagent/mainoverview):=20?= =?UTF-8?q?=E7=BB=99=E7=8E=AF=E5=A2=83=E7=9B=91=E6=8E=A7=E5=9B=BE=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0loading=E6=95=88=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/reagent/mainoverview/index.vue | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/views/reagent/mainoverview/index.vue b/src/views/reagent/mainoverview/index.vue index 5695168..7d5ff3d 100644 --- a/src/views/reagent/mainoverview/index.vue +++ b/src/views/reagent/mainoverview/index.vue @@ -37,7 +37,12 @@ -
+
@@ -368,7 +373,8 @@ export default { rloading: false, client_id: null, client_date: 1, - linechartData: [] + linechartData: [], + loadingLineData: true } }, async created() { @@ -410,11 +416,12 @@ export default { time_type: this.client_date, obj_type: this.radio1 } + this.loadingLineData = true get_monitoring_info(stringify(data)).then( res => { this.linechartData = res.data } - ) + ).finally(() => { this.loadingLineData = false }) }, remainingPageChange(page) { this.rpage = page