From 24e65b1e9c6aa65f7784ff5b4cb3a47d6d73af89 Mon Sep 17 00:00:00 2001 From: letsgocoding <sdxt_0802@163.com> Date: 星期三, 12 三月 2025 17:39:14 +0800 Subject: [PATCH] !108 !107 网关标识 Merge pull request !108 from letsgocoding/develop1.0 --- zhitan-vue/src/views/powerquality/load/index.vue | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/zhitan-vue/src/views/powerquality/load/index.vue b/zhitan-vue/src/views/powerquality/load/index.vue index a386abe..108cbf6 100644 --- a/zhitan-vue/src/views/powerquality/load/index.vue +++ b/zhitan-vue/src/views/powerquality/load/index.vue @@ -57,10 +57,10 @@ </el-form> </div> <div class="display-buttons"> - <div class="display-btn" @click="activeKey = 1" :class="{ 'active-display-btn': activeKey === 1 }"> + <div class="display-btn" @click="switchBtnType(1)" :class="{ 'active-display-btn': activeKey === 1 }"> 鍥惧舰 </div> - <div class="display-btn" @click="activeKey = 2" :class="{ 'active-display-btn': activeKey === 2 }"> + <div class="display-btn" @click="switchBtnType(2)" :class="{ 'active-display-btn': activeKey === 2 }"> 鏁版嵁 </div> </div> @@ -168,6 +168,14 @@ queryParams.value.dataTime = proxy.dayjs(new Date()).format("YYYY-MM-DD") getElectricityMeter({ nodeId: queryParams.value.nodeId }) } + +function switchBtnType(e) { + activeKey.value = e + if (e === 1) { + getList() + } +} + const LineChartRef = ref() function getList() { loading.value = true -- Gitblit v1.9.3