流程审核不通过,在我的待办中直接跳转
This commit is contained in:
@@ -1,42 +1,57 @@
|
||||
<template>
|
||||
<div class='default-main'>
|
||||
<el-tabs v-model='activeName' type='border-card'>
|
||||
<el-tab-pane label='技术监督计划管理' name='1'>
|
||||
<plan-manage v-if="activeName == '1'" />
|
||||
</el-tab-pane>
|
||||
<el-tab-pane label='技术监督测试管理' name='2'>
|
||||
<test-manage v-if="activeName == '2'" />
|
||||
</el-tab-pane>
|
||||
</el-tabs>
|
||||
</div>
|
||||
<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" v-if="activeName == '2'"/>
|
||||
</el-tab-pane>
|
||||
</el-tabs>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang='ts'>
|
||||
import { onMounted, reactive, ref, provide } from 'vue'
|
||||
import {ref} from 'vue'
|
||||
import planManage from './components/planManage.vue'
|
||||
import testManage from './components/testManage.vue'
|
||||
import { mainHeight } from '@/utils/layout'
|
||||
import {mainHeight} from '@/utils/layout'
|
||||
import {useDictData} from '@/stores/dictData'
|
||||
import {useRoute} from "vue-router";
|
||||
|
||||
import { useDictData } from '@/stores/dictData'
|
||||
const route = useRoute()
|
||||
const dictData = useDictData()
|
||||
const statusSelect = dictData.statusSelect()
|
||||
|
||||
const id = ref('')
|
||||
defineOptions({
|
||||
name: 'supervision/harmonicmanagement'
|
||||
name: 'supervision/harmonicmanagement'
|
||||
})
|
||||
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'
|
||||
if (type == 'null' || type == '1') {
|
||||
activeName.value = '1'
|
||||
} else {
|
||||
activeName.value = '2'
|
||||
}
|
||||
id.value = (route.query.id as string) || 'null'
|
||||
id.value = id.value + '@' + route.query.t
|
||||
}
|
||||
}, {deep: true, immediate: true})
|
||||
</script>
|
||||
|
||||
<style lang='scss' scoped>
|
||||
.bars_w {
|
||||
width: 100%;
|
||||
height: 500px;
|
||||
width: 100%;
|
||||
height: 500px;
|
||||
}
|
||||
|
||||
:deep(.el-tabs__content) {
|
||||
height: v-bind('layout.height');
|
||||
overflow-y: auto;
|
||||
height: v-bind('layout.height');
|
||||
overflow-y: auto;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user