Files
admin-sjzx/src/views/pqs/supervise/terminalNetworkDetection/index.vue

72 lines
2.0 KiB
Vue
Raw Normal View History

<template>
<div class="default-main">
<el-tabs v-model="activeName" type="border-card">
<el-tab-pane label="终端入网检测" name="1">
2024-10-30 09:29:39 +08:00
<terminal :id="id" v-if="activeName == '1'" />
</el-tab-pane>
<el-tab-pane label="监测点台账录入" name="2">
2024-10-30 09:29:39 +08:00
<monitorpoint :id="id" v-if="activeName == '2'" />
</el-tab-pane>
<el-tab-pane label="监测点联调列表" name="3">
2024-10-30 09:29:39 +08:00
<jointDebugList :id="id" v-if="activeName == '3'" />
</el-tab-pane>
<el-tab-pane label="终端周期检测" name="4">
2024-10-30 09:29:39 +08:00
<cycleDetection :id="id" :businessKey='key' v-if="activeName == '4'" />
</el-tab-pane>
</el-tabs>
</div>
</template>
<script setup lang="ts">
2024-10-30 09:29:39 +08:00
import { ref } from 'vue'
import { mainHeight } from '@/utils/layout'
import terminal from './components/terminainal/index.vue'
import monitorpoint from './components/monitorpoint/index.vue'
2024-05-20 10:50:24 +08:00
import jointDebugList from './components/jointDebugList/index.vue'
2024-06-13 18:41:01 +08:00
import cycleDetection from './components/cycleDetection/index.vue'
2024-10-30 09:29:39 +08:00
import { useRoute } from "vue-router";
defineOptions({
name: 'terminalNetwotk'
})
const activeName = ref('1')
const route = useRoute()
const id = ref('')
2024-09-14 10:20:49 +08:00
const key = ref('')
watch(() => route.query.t, async (newValue, oldValue) => {
if (route.fullPath.includes('terminalNetwotk')) {
let type = (route.query.type as string) || 'null'
2024-10-30 09:29:39 +08:00
if (type == 'null') { }
else if (type == '1') {
activeName.value = '1'
} else if (type == '2') {
activeName.value = '2'
} else if (type == '3') {
activeName.value = '3'
} else {
activeName.value = '4'
}
id.value = (route.query.id as string) || 'null'
2024-09-14 10:20:49 +08:00
key.value = (route.query.key as string) || 'null'
id.value = id.value + '@' + route.query.t
}
2024-10-30 09:29:39 +08:00
}, { deep: true, immediate: true })
const layout = mainHeight(63) as any
</script>
<style lang="scss" scoped>
.bars_w {
width: 100%;
height: 500px;
}
:deep(.el-tabs__content) {
height: v-bind('layout.height');
overflow-y: auto;
}
</style>