fix : 修复页面细节

This commit is contained in:
2024-05-23 15:36:57 +08:00
parent e9e5a0c785
commit bcdafbc7cd
3 changed files with 28 additions and 4 deletions

View File

@@ -148,7 +148,7 @@ const tableConfig = reactive({
currentRender: ({row, index}) => {
let btn = [{label: '详情', func: () => handleDetail(row), type: 'primary'}]
// if (row.state === '3') {
btn.push({label: '附件', func: () => handleCheck(row), type: 'primary'})
btn.push({label: '附件', func: () => handleAttachment(row), type: 'primary'})
// } else if (row.state === '4') {
btn.push({label: '结项', func: () => handleConclusion(row), type: 'primary'})
btn.push({label: '编辑', func: () => handleEdit(row), type: 'primary'})
@@ -189,6 +189,15 @@ const handleDetail = (row) => {
}
})
}
const handleAttachment = (row) => {
router.push({
name:'Filing/attachment',
query: {
id: row.requirementId,
projectId: row.projectId
}
})
}
const handleConclusion = (row) => {
router.push({
name:'Filing/conclusion',