Files
admin-sjzx/src/views/pqs/harmonicMonitoring/detailed/pollutionReport/index.vue

50 lines
1.2 KiB
Vue
Raw Normal View History

2025-09-11 08:46:12 +08:00
<template>
2025-09-11 14:32:50 +08:00
<div class="default-main">
2025-11-12 13:23:15 +08:00
<el-tabs v-model="activeTab" type="border-card" @tab-change="handleTabChange">
<el-tab-pane label="监测点评估" name="pollutionReport">
<MonitoringPointTab
ref="monitoringPointTabRef"
:active="activeTab === 'pollutionReport'"
2025-11-14 08:42:07 +08:00
2025-11-12 13:23:15 +08:00
/>
</el-tab-pane>
2025-09-11 08:46:12 +08:00
2025-11-12 13:23:15 +08:00
<el-tab-pane label="场站级评估" name="anotherReport">
<SubstationTab
ref="substationTabRef"
:active="activeTab === 'anotherReport'"
2025-11-14 08:42:07 +08:00
2025-11-12 13:23:15 +08:00
/>
</el-tab-pane>
</el-tabs>
</div>
2025-09-11 08:46:12 +08:00
</template>
<script setup lang="ts">
2025-11-12 13:23:15 +08:00
import { ref } from 'vue'
import MonitoringPointTab from './MonitoringPointTab.vue'
import SubstationTab from './SubstationTab.vue'
2025-11-14 08:42:07 +08:00
defineOptions({
name: 'harmonic-boot/qydetailedAnalysis/pollutionReport'
})
2025-11-12 13:23:15 +08:00
const activeTab = ref('pollutionReport')
const monitoringPointTabRef = ref()
const substationTabRef = ref()
2025-11-14 08:42:07 +08:00
2025-09-11 08:46:12 +08:00
2025-11-12 13:23:15 +08:00
const handleTabChange = (tabName: string) => {
if (tabName === 'pollutionReport' && monitoringPointTabRef.value) {
2025-11-14 08:42:07 +08:00
2025-11-12 13:23:15 +08:00
monitoringPointTabRef.value.refresh()
} else if (tabName === 'anotherReport' && substationTabRef.value) {
substationTabRef.value.refresh()
2025-09-11 08:46:12 +08:00
}
2025-11-14 08:42:07 +08:00
2025-09-11 08:46:12 +08:00
}
2025-11-14 08:42:07 +08:00
2025-09-11 08:46:12 +08:00
</script>
2025-09-11 13:14:36 +08:00