fix : 修复首页查看跳转

This commit is contained in:
2024-05-27 23:10:34 +08:00
parent e3222e906d
commit 554c7d2be7
2 changed files with 4 additions and 30 deletions

View File

@@ -165,41 +165,14 @@ const handleView = (row) => {
id: row.targetId id: row.targetId
} }
}) })
} } else{
else if(row.targetState=='10'&&row.targetId){
router.push({
name: 'Summary/detail',
query: {
id: row.targetId,
projectId: row.targetId,
state: row.state
}
})
}else if(row.targetState=='20'&&row.targetId){
router.push({
name: 'Initiation/detail',
query: {
id: row.targetId,
projectId: row.targetId,
state: row.state
}
})
}else if(row.targetState=='40'&&row.targetId){
router.push({ router.push({
name: 'Implementation/detail', name: 'Implementation/detail',
query: { query: {
id: row.targetId, id: row.targetId,
projectId: row.targetId, projectId: row.targetId,
state: row.state state: row.state,
} step: row.targetState
})
}else if(row.targetState=='50'&&row.targetId){
router.push({
name: 'Filing/detail',
query: {
id: row.targetId,
projectId: row.targetId,
state: row.state
} }
}) })
} }

View File

@@ -50,6 +50,7 @@ const summaryProcessViewer = ref(true)
const processStore = useProcessStore() const processStore = useProcessStore()
const companyOption = ref([]) const companyOption = ref([])
const cuurentStep = ref() const cuurentStep = ref()
route.query.step == '10' && (cuurentStep.value = 1)
route.query.step == '20' && (cuurentStep.value = 2) route.query.step == '20' && (cuurentStep.value = 2)
route.query.step == '40' && (cuurentStep.value = 3) route.query.step == '40' && (cuurentStep.value = 3)
route.query.step == '50' && (cuurentStep.value = 4) route.query.step == '50' && (cuurentStep.value = 4)