审核状态显示出错bug修改

This commit is contained in:
liang.chao 2025-02-26 16:52:31 +08:00
parent a17ee9951b
commit 251f9d1758
1 changed files with 19 additions and 11 deletions

View File

@ -64,16 +64,24 @@ function initTable() {
, {field: 'evaluateMonth', align: 'center', title: '评价年月'}
, {field: 'projectNum', align: 'center', title: '项目数量'}
, {field: 'outsourcerNum', align: 'center', title: '外包商数量'}
, {field: 'isApprove', align: 'center', title: '评价状态', templet: d =>{
, {
field: 'isApprove', align: 'center', title: '评价状态', templet: d => {
if (d.rejectReason) {
return '评价驳回'
} else {
return Number(d.isApprove) === 0 ? '待评价' : (Number(d.isApprove) === 1 ? '已评价' : '')
}
// Number(d.isApprove) === 0 ? '待评价' : (Number(d.isApprove) === 1 ? '已评价' : '')
}}
, {field: 'status', align: 'center', title: '审核状态', templet: d =>
Number(d.status) === 0 ? '待审核' : (Number(d.status) === 1 ? '已审核' : '审核中')
}
}
, {
field: 'status', align: 'center', title: '审核状态', templet: d => {
if (d.rejectReason) {
return '审核驳回'
} else {
return Number(d.status) === 0 ? '待审核' : (Number(d.status) === 1 ? '已审核' : '审核中')
}
}
}
, {field: 'rejectReason', align: 'center', title: '驳回原因'}
, {