审核状态显示出错bug修改
This commit is contained in:
parent
a17ee9951b
commit
251f9d1758
|
|
@ -33,7 +33,7 @@ function search(type) {
|
|||
curr: 1
|
||||
},
|
||||
where: {
|
||||
type:'audit',
|
||||
type: 'audit',
|
||||
keyWord: $("#keyWord").val(),
|
||||
evaluateDeptId: $("#evaluateDeptId").val(),
|
||||
evStatus: $("#evStatus").val(),
|
||||
|
|
@ -52,7 +52,7 @@ function initTable() {
|
|||
, method: 'get' //方式默认是get
|
||||
, toolbar: 'default' //开启工具栏,此处显示默认图标,可以自定义模板,详见文档
|
||||
, where: {
|
||||
type:'audit',
|
||||
type: 'audit',
|
||||
} //post请求必须加where ,post请求需要的参数
|
||||
, cellMinWidth: 80
|
||||
, cols: [[ //表头
|
||||
|
|
@ -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 =>{
|
||||
if (d.rejectReason){
|
||||
return '评价驳回'
|
||||
}else {
|
||||
return Number(d.isApprove) === 0 ? '待评价' : (Number(d.isApprove) === 1 ? '已评价' : '')
|
||||
}
|
||||
, {
|
||||
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: '驳回原因'}
|
||||
, {
|
||||
|
|
|
|||
Loading…
Reference in New Issue