From a70ffbecae992d51819b4b54c403c67772d9f4af Mon Sep 17 00:00:00 2001 From: weicw <594098497@qq.com> Date: Thu, 19 Aug 2021 17:14:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=A3=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/sound/road/collect/index.vue | 7 +- src/views/sound/road/statistic/compare.vue | 470 +++++++++++++-------- src/views/sound/road/statistic/index.vue | 5 +- 3 files changed, 297 insertions(+), 185 deletions(-) diff --git a/src/views/sound/road/collect/index.vue b/src/views/sound/road/collect/index.vue index 3e9ad64..18754f1 100644 --- a/src/views/sound/road/collect/index.vue +++ b/src/views/sound/road/collect/index.vue @@ -46,6 +46,7 @@ methods: { /* 导入本地excel文件 */ importFile(file) { + const hide = this.$message.loading('导入中..', 0); try { let reader = new FileReader(); reader.onload = (e) => { @@ -105,8 +106,10 @@ // 上传到服务器 Promise.all(tasks).then(() => { - this.$refs.noise.reload() - this.$refs.place.reload() + this.$refs.noise&&this.$refs.noise.reload() + this.$refs.place&&this.$refs.place.reload() + }).finally(()=>{ + hide(); }) // console.log(billData); diff --git a/src/views/sound/road/statistic/compare.vue b/src/views/sound/road/statistic/compare.vue index a587f23..730415b 100644 --- a/src/views/sound/road/statistic/compare.vue +++ b/src/views/sound/road/statistic/compare.vue @@ -1,5 +1,80 @@