fix : 修复项目实施台账字典问题

This commit is contained in:
2024-06-14 14:01:41 +08:00
parent f240016e44
commit 58cbceb747
2 changed files with 7 additions and 3 deletions

View File

@@ -104,7 +104,7 @@ const tableConfig = reactive({
align: 'center',
showOverflowTooltip: false,
currentRender: ({row, index}) => {
if (row.projectCost !== null) {
if (row.projectCost !== null&&row.projectCost !== null&&row.projectCost!==undefined) {
return (<Tag dictType={'project_cost'} value={row.projectCost}/>)
} else {
return '--'

View File

@@ -122,8 +122,12 @@ const tableConfig = reactive({
label: '项目费用',
align: 'center',
currentRender: ({row, index}) => {
if (row.projectCost !== null) {
return (<Tag dictType={'project_cost'} value={row.projectCost}/>)
if (row.projectCost !== null&&row.projectCost !== null&&row.projectCost!==undefined) {
if(typeof Number(row.projectCost) === 'number'){
return '--'
}else {
return (<Tag dictType={'project_cost'} value={row.projectCost}/>)
}
} else {
return '--'
}