fix : 修复页面
This commit is contained in:
@@ -93,15 +93,11 @@ const tableIns = ref()
|
||||
const tableConfig = reactive({
|
||||
columns: [
|
||||
{
|
||||
prop: 'requirementName',
|
||||
prop: 'projectName',
|
||||
label: '名称',
|
||||
align: 'center'
|
||||
},
|
||||
{
|
||||
prop: 'undertaker',
|
||||
label: '承办单位',
|
||||
align: 'center'
|
||||
}, {
|
||||
prop: 'affiliatedCompanyId',
|
||||
label: '所属公司',
|
||||
align: 'center'
|
||||
@@ -121,14 +117,9 @@ const tableConfig = reactive({
|
||||
label: '项目影响',
|
||||
align: 'center'
|
||||
},
|
||||
{
|
||||
prop: 'survey',
|
||||
label: '经营概况',
|
||||
align: 'center'
|
||||
},
|
||||
{
|
||||
prop: 'startTime',
|
||||
label: '起始时间',
|
||||
label: '起止时间',
|
||||
align: 'center'
|
||||
},
|
||||
{
|
||||
@@ -136,7 +127,13 @@ const tableConfig = reactive({
|
||||
label: '状态',
|
||||
align: 'center',
|
||||
showOverflowTooltip: false,
|
||||
currentRender: ({row, index}) => (<Tag dictType={'project_initiation'} value={row.state}/>)
|
||||
currentRender: ({row, index}) =>{
|
||||
if (row.state !== null) {
|
||||
return (<Tag dictType={'project_initiation'} value={row.state}/>)
|
||||
} else {
|
||||
return '--'
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
prop: 'oper',
|
||||
@@ -145,11 +142,10 @@ const tableConfig = reactive({
|
||||
showOverflowTooltip: false,
|
||||
currentRender: ({row, index}) => {
|
||||
let btn = [{label: '详情', func: () => handleDetail(row), type: 'primary'}]
|
||||
if (row.state === '4') {
|
||||
if (row.state === '3') {
|
||||
btn.push({label: '编辑', func: () => handleEdit(row), type: 'primary'})
|
||||
} else if (row.state === '20') {
|
||||
btn.push({label: '申请', func: () => handleApply(row), type: 'primary'})
|
||||
} else if (row.state === '4') {
|
||||
|
||||
}
|
||||
return (
|
||||
<div style={{width: '100%'}}>
|
||||
|
||||
Reference in New Issue
Block a user