From c520761c0ec8dda108ec659ef255d7dad1e5cbdd Mon Sep 17 00:00:00 2001
From: sjl <1716605279@qq.com>
Date: Thu, 11 Sep 2025 13:43:39 +0800
Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E8=B0=83?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../detailed/pollutionReport/index.vue | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/src/views/pqs/harmonicMonitoring/detailed/pollutionReport/index.vue b/src/views/pqs/harmonicMonitoring/detailed/pollutionReport/index.vue
index dbbdf2d1..9be12d82 100644
--- a/src/views/pqs/harmonicMonitoring/detailed/pollutionReport/index.vue
+++ b/src/views/pqs/harmonicMonitoring/detailed/pollutionReport/index.vue
@@ -89,7 +89,7 @@
-
+
@@ -133,7 +133,8 @@ const selectedArea = ref()
const areOptions:any = dictData.state.area
const allData = ref([])
const TableHeaderRef = ref()
-
+// 添加响应式标题变量
+const harmonicValueTitle = ref('谐波电压污染值')
const cascaderProps = {
label: 'name',
value: 'id',
@@ -309,8 +310,13 @@ tableStore.table.params.type = 1
// 监听统计类型变化,同步更新ids
const handleStatisticalTypeChange = (newVal: { id: any }) => {
+ console.log("统计类型变化", newVal)
if (newVal) {
tableStore.table.params.ids = [newVal.id]
+ // 根据统计类型动态更新标题
+ if (newVal.name) {
+ harmonicValueTitle.value = newVal.name + '污染值'
+ }
}
// 重新调用接口
tableStore.index()