feat : 表单权限处理

This commit is contained in:
clay
2024-06-01 22:18:57 +08:00
parent dd5d24768b
commit 495e39c802
4 changed files with 110 additions and 14 deletions

View File

@@ -96,17 +96,41 @@ const tableConfig = reactive({
{ {
prop: 'projectType', prop: 'projectType',
label: '项目类型', label: '项目类型',
align: 'center' align: 'center',
showOverflowTooltip: false,
currentRender: ({row, index}) => {
if (row.state !== null) {
return (<Tag dictType={'project_type'} value={row.projectType}/>)
} else {
return '--'
}
}
}, },
{ {
prop: 'rdSubject', prop: 'rdSubject',
label: '研发主体', label: '研发主体',
align: 'center' align: 'center',
showOverflowTooltip: false,
currentRender: ({row, index}) => {
if (row.state !== null) {
return (<Tag dictType={'rd_subject'} value={row.rdSubject}/>)
} else {
return '--'
}
}
}, },
{ {
prop: 'projectImpact', prop: 'projectImpact',
label: '项目影响', label: '项目影响',
align: 'center' align: 'center',
showOverflowTooltip: false,
currentRender: ({row, index}) => {
if (row.state !== null) {
return (<Tag dictType={'project_impact'} value={row.projectImpact}/>)
} else {
return '--'
}
}
}, },
{ {
prop: 'startTime', prop: 'startTime',

View File

@@ -153,17 +153,41 @@ const tableConfig = reactive({
{ {
prop: 'projectType', prop: 'projectType',
label: '项目类型', label: '项目类型',
align: 'center' align: 'center',
showOverflowTooltip: false,
currentRender: ({row, index}) => {
if (row.state !== null) {
return (<Tag dictType={'project_type'} value={row.projectType}/>)
} else {
return '--'
}
}
}, },
{ {
prop: 'rdSubject', prop: 'rdSubject',
label: '研发主体', label: '研发主体',
align: 'center' align: 'center',
showOverflowTooltip: false,
currentRender: ({row, index}) => {
if (row.state !== null) {
return (<Tag dictType={'rd_subject'} value={row.rdSubject}/>)
} else {
return '--'
}
}
}, },
{ {
prop: 'projectImpact', prop: 'projectImpact',
label: '项目影响', label: '项目影响',
align: 'center' align: 'center',
showOverflowTooltip: false,
currentRender: ({row, index}) => {
if (row.state !== null) {
return (<Tag dictType={'project_impact'} value={row.projectImpact}/>)
} else {
return '--'
}
}
}, },
{ {
prop: 'economicEstimate', prop: 'economicEstimate',

View File

@@ -158,17 +158,41 @@ const tableConfig = reactive({
{ {
prop: 'projectType', prop: 'projectType',
label: '项目类型', label: '项目类型',
align: 'center' align: 'center',
showOverflowTooltip: false,
currentRender: ({row, index}) => {
if (row.state !== null) {
return (<Tag dictType={'project_type'} value={row.projectType}/>)
} else {
return '--'
}
}
}, },
{ {
prop: 'rdSubject', prop: 'rdSubject',
label: '研发主体', label: '研发主体',
align: 'center' align: 'center',
showOverflowTooltip: false,
currentRender: ({row, index}) => {
if (row.state !== null) {
return (<Tag dictType={'rd_subject'} value={row.rdSubject}/>)
} else {
return '--'
}
}
}, },
{ {
prop: 'projectImpact', prop: 'projectImpact',
label: '项目影响', label: '项目影响',
align: 'center' align: 'center',
showOverflowTooltip: false,
currentRender: ({row, index}) => {
if (row.state !== null) {
return (<Tag dictType={'project_impact'} value={row.projectImpact}/>)
} else {
return '--'
}
}
}, },
{ {
prop: 'economicEstimate', prop: 'economicEstimate',

View File

@@ -152,17 +152,41 @@ const tableConfig = reactive({
{ {
prop: 'projectType', prop: 'projectType',
label: '项目类型', label: '项目类型',
align: 'center' align: 'center',
showOverflowTooltip: false,
currentRender: ({row, index}) => {
if (row.state !== null) {
return (<Tag dictType={'project_type'} value={row.projectType}/>)
} else {
return '--'
}
}
}, },
{ {
prop: 'rdSubject', prop: 'rdSubject',
label: '研发主体', label: '研发主体',
align: 'center' align: 'center',
showOverflowTooltip: false,
currentRender: ({row, index}) => {
if (row.state !== null) {
return (<Tag dictType={'rd_subject'} value={row.rdSubject}/>)
} else {
return '--'
}
}
}, },
{ {
prop: 'projectImpact', prop: 'projectImpact',
label: '项目影响', label: '项目影响',
align: 'center' align: 'center',
showOverflowTooltip: false,
currentRender: ({row, index}) => {
if (row.state !== null) {
return (<Tag dictType={'project_impact'} value={row.projectImpact}/>)
} else {
return '--'
}
}
}, },
{ {
prop: 'economicEstimate', prop: 'economicEstimate',