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

@@ -147,11 +147,11 @@ const tableConfig = reactive({
showOverflowTooltip: false,
currentRender: ({row, index}) => {
let btn = [{label: '详情', func: () => handleDetail(row), type: 'primary'}]
if (row.state === '3') {
// if (row.state === '3') {
btn.push({label: '编辑', func: () => handleEdit(row), type: 'primary'})
} else if (row.state === '0') {
// } else if (row.state === '0') {
btn.push({label: '申请', func: () => handleApply(row), type: 'primary'})
}
// }
return (
<div style={{width: '100%'}}>
{
@@ -193,7 +193,8 @@ const handleEdit = (row) => {
router.push({
name:'Initiation/edit',
query: {
id: row.requirementId
id: row.requirementId,
projectId: row.projectId
}
})
}
@@ -201,7 +202,6 @@ const handleApply = (row) => {
router.push({
name:'Initiation/apply',
query: {
isAdd: 1,
id: row.requirementId,
projectId: row.projectId
}