fix : 重新提交页面初始化

This commit is contained in:
2024-05-20 17:56:38 +08:00
parent a663b84fab
commit e648faba69
8 changed files with 270 additions and 60 deletions

View File

@@ -146,12 +146,13 @@ const tableConfig = reactive({
align: 'center',
showOverflowTooltip: false,
currentRender: ({row, index}) => {
let btn = [{label: '详情', func: () => handleDetail(row), type: 'primary'},{label: '结项', func: () => handleConclusion(row), type: 'primary'}]
if (row.state === '3') {
let btn = [{label: '详情', func: () => handleDetail(row), type: 'primary'}]
// if (row.state === '3') {
btn.push({label: '附件', func: () => handleCheck(row), type: 'primary'})
} else if (row.state === '4') {
// } else if (row.state === '4') {
btn.push({label: '结项', func: () => handleConclusion(row), type: 'primary'})
}
btn.push({label: '编辑', func: () => handleEdit(row), type: 'primary'})
// }
return (
<div style={{width: '100%'}}>
{
@@ -197,4 +198,13 @@ const handleConclusion = (row) => {
}
})
}
const handleEdit = (row) => {
router.push({
name:'Filing/edit',
query: {
id: row.requirementId,
projectId: row.projectId
}
})
}
</script>