From 251f9d17580d21fcde4ec547cad8454c8746d60b Mon Sep 17 00:00:00 2001 From: "liang.chao" <1360241448@qq.com> Date: Wed, 26 Feb 2025 16:52:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A1=E6=A0=B8=E7=8A=B6=E6=80=81=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E5=87=BA=E9=94=99bug=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../js/evaluate/summaryAudit/summaryAudit.js | 30 ++++++++++++------- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/src/main/resources/static/js/evaluate/summaryAudit/summaryAudit.js b/src/main/resources/static/js/evaluate/summaryAudit/summaryAudit.js index 2d76da8..0a73281 100644 --- a/src/main/resources/static/js/evaluate/summaryAudit/summaryAudit.js +++ b/src/main/resources/static/js/evaluate/summaryAudit/summaryAudit.js @@ -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: '驳回原因'} , {