From dcf9c9e0410fe1186239e3f8d6f7bdc789c08010 Mon Sep 17 00:00:00 2001 From: lzhe <lzhe@example.com> Date: 星期三, 05 六月 2024 18:00:39 +0800 Subject: [PATCH] 1 --- src/views/mdc/alarm-statistics.vue | 16 ++++++++++------ 1 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/views/mdc/alarm-statistics.vue b/src/views/mdc/alarm-statistics.vue index 6d41bbd..e37006a 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-05-14 20:40:54 * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/views/mdc/alarm-statistics.vue * 鏁堢巼鍒嗘瀽 --> @@ -26,7 +26,7 @@ </el-main> <el-footer> <el-button @click="query()">鏌ヨ</el-button> - <el-button>瀵煎嚭</el-button> + <!-- <el-button>瀵煎嚭</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