From 3cbedf9fce0c34ef6f2abedc34632ad21268930c Mon Sep 17 00:00:00 2001 From: zhitan-cloud <394600+ustcyc@user.noreply.gitee.com> Date: 星期四, 06 三月 2025 17:32:20 +0800 Subject: [PATCH] !107 网关标识 Merge pull request !107 from Alioo/develop_alioo --- 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