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

@@ -121,11 +121,11 @@ const tableConfig = reactive({
align: 'center',
showOverflowTooltip: false,
currentRender: ({row, index}) => {
let btn = [{label: '详情', func: () => handleDetail(row), type: 'primary'},{label: '编辑', func: () => handleEdit(row), type: 'primary'},{label: '上报', func: () => handleAdd(row), type: 'primary'}]
let btn = [{label: '详情', func: () => handleDetail(row), type: 'primary'}]
// if (row.state === '3') {
// btn.push({label: '编辑', func: () => handleEdit(row), type: 'primary'})
btn.push({label: '编辑', func: () => handleEdit(row), type: 'primary'})
// } else if (row.state === '0') {
// btn.push({label: '上报', func: () => handleAdd(row), type: 'primary'})
btn.push({label: '上报', func: () => handleAdd(row), type: 'primary'})
// }
return (
<div style={{width: '100%'}}>
@@ -169,7 +169,6 @@ const handleAdd = (row) => {
router.push({
name: 'Summary/add',
query: {
isAdd: 1,
id:row.requirementId
}
})