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

61 lines
1.7 KiB
Vue
Raw Normal View History

2024-03-06 16:14:09 +08:00
<template>
<div class='default-main'>
<el-tabs v-model='activeName' type='border-card'>
<el-tab-pane label='技术监督计划管理' name='1'>
<plan-manage :id='id' v-if="activeName == '1'" />
</el-tab-pane>
<el-tab-pane label='技术监督测试管理' name='2'>
<test-manage :id='id' :businessKey='key' v-if="activeName == '2'" />
</el-tab-pane>
</el-tabs>
</div>
2024-03-06 16:14:09 +08:00
</template>
2024-05-31 08:44:45 +08:00
<script setup lang='ts'>
import { ref } from 'vue'
2024-03-06 16:14:09 +08:00
import planManage from './components/planManage.vue'
2024-05-31 08:44:45 +08:00
import testManage from './components/testManage.vue'
import { mainHeight } from '@/utils/layout'
import { useDictData } from '@/stores/dictData'
import { useRoute } from 'vue-router'
2024-06-05 14:34:23 +08:00
const route = useRoute()
2024-06-05 14:34:23 +08:00
const dictData = useDictData()
const statusSelect = dictData.statusSelect()
const id = ref('')
const key = ref('')
2024-03-06 16:14:09 +08:00
defineOptions({
name: 'supervision/harmonicmanagement'
2024-03-06 16:14:09 +08:00
})
const activeName = ref('1')
const layout = mainHeight(63) as any
watch(() => route.query.t, async (newValue, oldValue) => {
if (route.fullPath.includes('supervision/harmonicmanagement')) {
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 {
activeName.value = '2'
}
id.value = (route.query.id as string) || 'null'
id.value = id.value + '@' + route.query.t
key.value = (route.query.key as string) || 'null'
}
}, { deep: true, immediate: true })
2024-03-06 16:14:09 +08:00
</script>
2024-05-31 08:44:45 +08:00
<style lang='scss' scoped>
2024-03-06 16:14:09 +08:00
.bars_w {
width: 100%;
height: 500px;
2024-03-06 16:14:09 +08:00
}
2024-05-31 08:44:45 +08:00
2024-03-18 19:43:55 +08:00
:deep(.el-tabs__content) {
height: v-bind('layout.height');
overflow-y: auto;
2024-03-06 16:14:09 +08:00
}
</style>