fix : 修复路由跳转

This commit is contained in:
2024-05-27 21:16:14 +08:00
parent 7ebd897d57
commit e71c142ea9
9 changed files with 55 additions and 14 deletions

View File

@@ -115,7 +115,7 @@ const tableConfig = reactive({
align: 'center',
showOverflowTooltip: false,
currentRender: ({row, index}) => {
if(row.targetState!==null){
if(row.targetState!==null||row.targetState!==undefined){
return (<Tag dictType={'todo_type'} value={row.targetState}/>)
}else {
return '--'
@@ -153,8 +153,7 @@ const tableConfig = reactive({
params: {},
})
const handleView = (row) => {
console.log('row', row)
if(row.targetState=='00'&&row.targetId){
if (row.targetState == '00' && row.targetId) {
router.push({
name: 'Requirement/detail',
query: {
@@ -162,6 +161,43 @@ const handleView = (row) => {
}
})
}
else if(row.targetState=='10'&&row.targetId){
router.push({
name: 'Summary/detail',
query: {
id: row.targetId,
projectId: row.projectId,
state: row.state
}
})
}else if(row.targetState=='20'&&row.targetId){
router.push({
name: 'Initiation/detail',
query: {
id: row.targetId,
projectId: row.projectId,
state: row.state
}
})
}else if(row.targetState=='40'&&row.targetId){
router.push({
name: 'Implementation/detail',
query: {
id: row.targetId,
projectId: row.projectId,
state: row.state
}
})
}else if(row.targetState=='50'&&row.targetId){
router.push({
name: 'Filing/detail',
query: {
id: row.targetId,
projectId: row.projectId,
state: row.state
}
})
}
}
</script>