修改冀北现场反馈问题

This commit is contained in:
GGJ
2025-12-15 09:33:34 +08:00
parent d30b8247cf
commit 9f5b2ecc46
28 changed files with 700 additions and 468 deletions

View File

@@ -12,7 +12,7 @@
<regionalAssessment v-if="activeTab == '3'" />
</el-tab-pane>
<el-tab-pane label="敏感及重要用户评估" name="4">
<userEvaluation v-if="activeTab == '4'" />
<userEvaluation ref="userEvaluationRef" v-if="activeTab == '4'" />
</el-tab-pane>
</el-tabs>
</div>
@@ -33,7 +33,7 @@ defineOptions({
const activeTab = ref('pollutionReport')
const monitoringPointTabRef = ref()
const substationTabRef = ref()
const userEvaluationRef = ref()
const handleTabChange = (tabName: string) => {
if (tabName === 'pollutionReport' && monitoringPointTabRef.value) {
monitoringPointTabRef.value.refresh()
@@ -47,11 +47,21 @@ watch(
if (route.fullPath.includes('harmonic-boot/qydetailedAnalysis/pollutionReport')) {
let type = (route.query.type as string) || 'null'
if (type == 'null') {
} else if (type == '1') {
activeTab.value = 'pollutionReport'
setTimeout(() => {
monitoringPointTabRef.value.refresh((route.query.name as string) || 'null')
}, 500)
} else if (type == '2') {
activeTab.value = 'anotherReport'
substationTabRef.value.refresh((route.query.statisticalType as string) || 'null')
setTimeout(() => {
substationTabRef.value.refresh((route.query.statisticalType as string) || 'null')
}, 500)
} else if (type == '4') {
activeTab.value = '4'
setTimeout(() => {
userEvaluationRef.value.setSearchValue((route.query.name as string) || '')
}, 500)
}
}
},