fix : 修复项目立项页面

This commit is contained in:
2024-05-19 16:40:05 +08:00
parent 5421145583
commit 1fc0ae6ac0

View File

@@ -93,12 +93,16 @@ const tableIns = ref()
const tableConfig = reactive({
columns: [
{
prop: 'name',
prop: 'requirementName',
label: '名称',
align: 'center'
},
{
prop: 'company',
prop: 'undertaker',
label: '承办单位',
align: 'center'
}, {
prop: 'affiliatedCompanyId',
label: '所属公司',
align: 'center'
},
@@ -108,12 +112,12 @@ const tableConfig = reactive({
align: 'center'
},
{
prop: 'productMainBody',
prop: 'rdSubject',
label: '研发主体',
align: 'center'
},
{
prop: 'projectEffect',
prop: 'projectImpact',
label: '项目影响',
align: 'center'
},
@@ -123,16 +127,16 @@ const tableConfig = reactive({
align: 'center'
},
{
prop: 'time',
label: '起时间',
prop: 'startTime',
label: '起时间',
align: 'center'
},
{
prop: 'status',
prop: 'state',
label: '状态',
align: 'center',
showOverflowTooltip: false,
currentRender: ({row, index}) => (<Tag dictType={'process_state'} value={row.state}/>)
currentRender: ({row, index}) => (<Tag dictType={'project_initiation'} value={row.state}/>)
},
{
prop: 'oper',
@@ -141,10 +145,11 @@ const tableConfig = reactive({
showOverflowTooltip: false,
currentRender: ({row, index}) => {
let btn = [{label: '详情', func: () => handleDetail(row), type: 'primary'}]
if (row.state === '3') {
if (row.state === '4') {
btn.push({label: '编辑', func: () => handleEdit(row), type: 'primary'})
} else if (row.state === '4') {
btn.push({label: '申请', func: () => handleApply(row), type: 'primary'})
} else if (row.state === '4') {
}
return (
<div style={{width: '100%'}}>
@@ -165,7 +170,7 @@ const tableConfig = reactive({
}
}
],
api: '/workflow/mosr/requirement',
api: '/workflow/mosr/project/approval',
params: {},
})