fix : 修复阶段变更/详情/编辑功能

This commit is contained in:
2024-06-04 18:23:42 +08:00
parent 8f1cc442ac
commit b9d33bd6e4
9 changed files with 228 additions and 42 deletions

View File

@@ -107,7 +107,7 @@ const searchConfig = reactive([
props: {
placeholder: '请选择状态',
clearable: true,
cacheKey: 'project_initiation'
cacheKey: 'project_implementation'
}
},
// {
@@ -232,7 +232,7 @@ const tableConfig = reactive({
showOverflowTooltip: false,
currentRender: ({row, index}) => {
if (row.state !== null) {
return (<Tag dictType={'project_initiation'} value={row.state}/>)
return (<Tag dictType={'project_implementation'} value={row.state}/>)
} else {
return '--'
}
@@ -265,7 +265,13 @@ const tableConfig = reactive({
btn.push({label: '查看分摊', prem: ['mosr:requirement:info'], func: () => handleShare(row), type: 'primary'})
}
if (buttons.has("phaseChange")) {
btn.push({label: '阶段变更', prem: ['mosr:requirement:info'], func: () => handlePhaseChange(row), type: 'primary'})
btn.push({label: '阶段变更', prem: ['mosr:phase:change'], func: () => handlePhaseChange(row), type: 'primary'})
}
if (buttons.has("phaseChangeInfo")) {
btn.push({label: '阶段变更详情', prem: ['mosr:phase:info'], func: () => handlePhaseChangeDetail(row), type: 'primary'})
}
if (buttons.has("phaseChangeEdit")) {
btn.push({label: '阶段变更编辑', prem: ['mosr:phase:resubmit'], func: () => handlePhaseChangeEdit(row), type: 'primary'})
}
return (
<div style={{width: '100%'}}>
@@ -362,8 +368,27 @@ const handlePhaseChange = (row) => {
router.push({
name: 'Phase/change',
query: {
id: row.requirementId
id: row.requirementId,
projectId:row.projectId
}
})
}
const handlePhaseChangeDetail = (row) => {
router.push({
name: 'Phase/detail',
query: {
projectId:row.projectId
}
})
}
const handlePhaseChangeEdit = (row) => {
router.push({
name: 'Phase/edit',
query: {
projectId:row.projectId
}
})
}
</script>