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()