diff --git a/src/views/pqs/supervise/electricalEnergy/components1/complaints.vue b/src/views/pqs/supervise/electricalEnergy/components1/complaints.vue index d8c0a713..46f85eed 100644 --- a/src/views/pqs/supervise/electricalEnergy/components1/complaints.vue +++ b/src/views/pqs/supervise/electricalEnergy/components1/complaints.vue @@ -116,7 +116,10 @@ const tableStore = new TableStore({ }, click: row => { router.push({ - name: 'supervision/supervision/manage' + name: 'supervision/supervision/manage', + state:{ + type:1 + } }) } } diff --git a/src/views/pqs/supervise/electricalEnergy/components1/testQuestions.vue b/src/views/pqs/supervise/electricalEnergy/components1/testQuestions.vue index 9e996aac..7d940b6d 100644 --- a/src/views/pqs/supervise/electricalEnergy/components1/testQuestions.vue +++ b/src/views/pqs/supervise/electricalEnergy/components1/testQuestions.vue @@ -92,7 +92,10 @@ const tableStore = new TableStore({ }, click: row => { router.push({ - name: 'supervision/supervision/manage' + name: 'supervision/supervision/manage', + state:{ + type:1 + } }) } } diff --git a/src/views/pqs/supervise/plan/index.vue b/src/views/pqs/supervise/plan/index.vue index 9fd516af..7b0e4e32 100644 --- a/src/views/pqs/supervise/plan/index.vue +++ b/src/views/pqs/supervise/plan/index.vue @@ -267,7 +267,10 @@ const tableStore = new TableStore({ }, click: row => { router.push({ - name: 'supervision/supervision/manage' + name: 'supervision/supervision/manage', + state:{ + type:1 + } }) } } diff --git a/src/views/pqs/supervise/technology/index.vue b/src/views/pqs/supervise/technology/index.vue index c24d1786..683fd98d 100644 --- a/src/views/pqs/supervise/technology/index.vue +++ b/src/views/pqs/supervise/technology/index.vue @@ -20,12 +20,19 @@ import technology from './components/technology.vue' import earlyWarn from './components/earlyWarn.vue' import alarm from './components/alarm.vue' import { onMounted, reactive, ref, provide } from 'vue' - +import { useRoute } from 'vue-router' import { mainHeight } from '@/utils/layout' defineOptions({ name: 'supervision/supervision/manage' }) -const activeName = ref('3') +const states = history.state +const activeName: any = ref(null) +//查看告警单 +if (states.type == 1) { + activeName.value = '4' +} else { + activeName.value = '3' +} const Statistics = ref() const compatibility = ref()