From bb3b85e8bb9304f0afba37063857e691c97f5c21 Mon Sep 17 00:00:00 2001 From: gaoshp <291585735@qq.com> Date: 星期五, 21 六月 2024 00:20:54 +0800 Subject: [PATCH] update --- src/views/mdc/alarm-statistics.vue | 18 +++++++++++------- 1 files changed, 11 insertions(+), 7 deletions(-) diff --git a/src/views/mdc/alarm-statistics.vue b/src/views/mdc/alarm-statistics.vue index 6d41bbd..2993ed3 100644 --- a/src/views/mdc/alarm-statistics.vue +++ b/src/views/mdc/alarm-statistics.vue @@ -1,7 +1,7 @@ <!-- * @Date: 2024-04-09 22:11:21 * @LastEditors: Sneed - * @LastEditTime: 2024-04-21 18:58:16 + * @LastEditTime: 2024-06-20 23:54:23 * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/views/mdc/alarm-statistics.vue * 鏁堢巼鍒嗘瀽 --> @@ -25,8 +25,8 @@ <MYTree v-model="treeChecked" @loaded="query"></MYTree> </el-main> <el-footer> - <el-button @click="query()">鏌ヨ</el-button> - <el-button>瀵煎嚭</el-button> + <el-button type="primary" @click="query()">鏌ヨ</el-button> + <el-button @click="exportExcel">瀵煎嚭</el-button> </el-footer> </el-container> </el-aside> @@ -101,12 +101,16 @@ }, methods: { query(firstWorkKey) { + console.log('------') let workstationId = firstWorkKey ? [firstWorkKey] : [...this.treeChecked] - this.$refs[this.activeName].init({ - endDate: this.time[1], - startDate: this.time[0], - workstationId + this.$nextTick(() => { + this.$refs[this.activeName].init({ + endDate: this.time[1], + startDate: this.time[0], + workstationId + }) }) + } } } -- Gitblit v1.9.3