2024-03-06 16:14:09 +08:00
|
|
|
<template>
|
2024-03-12 11:16:54 +08:00
|
|
|
<div class="default-main">
|
|
|
|
|
<el-tabs v-model="activeName" type="border-card">
|
2024-05-15 21:33:54 +08:00
|
|
|
<!-- <el-tab-pane label="概览" name="1"><overview v-if="activeName == '1'"/></el-tab-pane>
|
|
|
|
|
<el-tab-pane label="技术监督管理" name="2"><technology v-if="activeName == '2'"/></el-tab-pane> -->
|
2024-05-16 14:00:49 +08:00
|
|
|
|
2024-05-15 21:33:54 +08:00
|
|
|
<el-tab-pane label="预警单列表" name="3">
|
2024-05-16 14:00:49 +08:00
|
|
|
<earlyWarn v-if="activeName == '3'" />
|
2024-03-12 11:16:54 +08:00
|
|
|
</el-tab-pane>
|
2024-06-04 16:54:33 +08:00
|
|
|
<el-tab-pane label="告警单列表" name="4">
|
|
|
|
|
<alarm v-if="activeName == '4'" />
|
|
|
|
|
</el-tab-pane>
|
2024-03-12 11:16:54 +08:00
|
|
|
</el-tabs>
|
2024-03-06 16:14:09 +08:00
|
|
|
</div>
|
|
|
|
|
</template>
|
2024-03-12 11:16:54 +08:00
|
|
|
|
|
|
|
|
<script setup lang="ts">
|
2024-03-13 20:33:01 +08:00
|
|
|
import overview from './components/overview.vue'
|
2024-03-12 11:16:54 +08:00
|
|
|
import technology from './components/technology.vue'
|
2024-05-16 14:00:49 +08:00
|
|
|
import earlyWarn from './components/earlyWarn.vue'
|
2024-05-15 21:33:54 +08:00
|
|
|
import alarm from './components/alarm.vue'
|
2024-03-12 11:16:54 +08:00
|
|
|
import { onMounted, reactive, ref, provide } from 'vue'
|
2024-06-07 14:24:44 +08:00
|
|
|
import { useRoute } from 'vue-router'
|
2024-03-12 11:16:54 +08:00
|
|
|
import { mainHeight } from '@/utils/layout'
|
|
|
|
|
defineOptions({
|
2024-05-16 14:00:49 +08:00
|
|
|
name: 'supervision/supervision/manage'
|
2024-03-12 11:16:54 +08:00
|
|
|
})
|
2024-06-07 14:24:44 +08:00
|
|
|
const states = history.state
|
|
|
|
|
const activeName: any = ref(null)
|
|
|
|
|
//查看告警单
|
|
|
|
|
if (states.type == 1) {
|
|
|
|
|
activeName.value = '4'
|
|
|
|
|
} else {
|
|
|
|
|
activeName.value = '3'
|
|
|
|
|
}
|
2024-03-12 11:16:54 +08:00
|
|
|
const Statistics = ref()
|
|
|
|
|
const compatibility = ref()
|
|
|
|
|
|
|
|
|
|
const layout = mainHeight(63) as any
|
2024-03-06 16:14:09 +08:00
|
|
|
</script>
|
|
|
|
|
|
2024-03-12 11:16:54 +08:00
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
.bars_w {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 500px;
|
|
|
|
|
}
|
2024-03-18 19:43:55 +08:00
|
|
|
:deep(.el-tabs__content) {
|
2024-03-12 11:16:54 +08:00
|
|
|
height: v-bind('layout.height');
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
}
|
2024-03-06 16:14:09 +08:00
|
|
|
</style>
|