Commit bf72cf6b by ningjihai

查看结果的进入方式传入不同的值

parent 2373db28
...@@ -105,7 +105,7 @@ const handleCatResult = () => { ...@@ -105,7 +105,7 @@ const handleCatResult = () => {
] ]
}); });
emit('page','discoverResult', { listItem: props.listItem}) emit('page','discoverResult', { listItem: props.listItem,type: 'process'})
} }
onMounted(() =>{ onMounted(() =>{
......
...@@ -36,6 +36,10 @@ const props = defineProps({ ...@@ -36,6 +36,10 @@ const props = defineProps({
listItem: { listItem: {
type: Object, type: Object,
default: () => ({}) default: () => ({})
},
type: {
type: String,
default: ''
} }
}) })
...@@ -336,7 +340,13 @@ const tableColumns= ref([ ...@@ -336,7 +340,13 @@ const tableColumns= ref([
function pageProjectManage() { function pageProjectManage() {
emit('page', 'discoverProcess', { listItem: props.listItem}) if(props.type === 'process'){
emit('page', 'discoverProcess', { listItem: props.listItem})
}
if(props.type === 'list'){
emit('page', 'list', { listItem: null})
}
} }
// 折叠面板激活项 // 折叠面板激活项
const activeNames = ref('gen_table') const activeNames = ref('gen_table')
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论