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/dataMonitoring/historyDataTrend/index.vue | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/zhitan-vue/src/views/dataMonitoring/historyDataTrend/index.vue b/zhitan-vue/src/views/dataMonitoring/historyDataTrend/index.vue index 2686774..d471ba5 100644 --- a/zhitan-vue/src/views/dataMonitoring/historyDataTrend/index.vue +++ b/zhitan-vue/src/views/dataMonitoring/historyDataTrend/index.vue @@ -44,10 +44,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> @@ -132,6 +132,13 @@ queryParams.value.dataTime = proxy.dayjs(new Date()).format("YYYY-MM-DD HH:00:00") getElectricityMeter({ modelId: 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