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