From c0269c0f03ccfb8ae2d177efa7d5041659c439b9 Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Wed, 19 Feb 2025 16:19:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../summaryAudit/proEvaluateAuditForm.html | 44 +- .../summaryAudit/summaryAuditView.html | 543 +++++++++--------- 2 files changed, 310 insertions(+), 277 deletions(-) diff --git a/src/main/resources/static/pages/evaluate/summaryAudit/proEvaluateAuditForm.html b/src/main/resources/static/pages/evaluate/summaryAudit/proEvaluateAuditForm.html index 35a7ca2..757391b 100644 --- a/src/main/resources/static/pages/evaluate/summaryAudit/proEvaluateAuditForm.html +++ b/src/main/resources/static/pages/evaluate/summaryAudit/proEvaluateAuditForm.html @@ -157,17 +157,47 @@ } } else { if (cellData.field === 'examineAndApprove') { + + cellData.templet = function (d) { //如果d.isApprove == 1 去除当前行的编辑功能 + // let text = ""; + // if (d.isTwoApprove == 1) { + // text += '已通过'; + // } + // if (d.isTwoApprove == 2) { + // text += '已驳回'; + // } + // text += '通过'; + // text += + // '驳回'; + // return text; + let text = ""; - if (d.isTwoApprove == 1) { - text += '已通过'; - } - if (d.isTwoApprove == 2) { - text += '已驳回'; + if (d.isTwoApprove == 1 && d.isApprove == 1 && d.isThreeApprove == 0) { + text += '通过'; + text += + '驳回'; + } else { + if (d.isTwoApprove == 1 && d.isApprove == 1 && d.isThreeApprove == 1) { + text += '已通过'; + } else if (d.isThreeApprove == 2 && d.isTwoApprove == 1) { + text += '已驳回'; + } else { + noMessage++ + return '' + } } + + // text += '通过'; // text += diff --git a/src/main/resources/static/pages/evaluate/summaryAudit/summaryAuditView.html b/src/main/resources/static/pages/evaluate/summaryAudit/summaryAuditView.html index f0bf0b8..b07aca7 100644 --- a/src/main/resources/static/pages/evaluate/summaryAudit/summaryAuditView.html +++ b/src/main/resources/static/pages/evaluate/summaryAudit/summaryAuditView.html @@ -1,152 +1,154 @@ + 汇总审核查看审批 - + + -
-
+
+
+
+
-
-
- - - - - - - - + + + + + + + + + + function bindToolbarEvents() { + table.on('toolbar(test)', function (obj) { + var id = obj.config.id; + switch (obj.event) { + case 'getCheckData': + //获取带按钮的名称 + const title = $(this).text(); + const layerIndex = layer.open({ + type: 2, + title: title, + shade: 0.3, + area: ['80%', '90%'], + scrollbar: true, + move: true, + anim: 2, + shadeClose: false, + content: './reviewPage.html', + }); + break; + case 'getData': + var getData = table.getData(id); + layer.alert(layui.util.escape(JSON.stringify(getData))); + break; + } + }); + } + + function openPage(id, name, type) { + let url = './otherEvaluateAuditForm.html?deptId=' + id + '&evaluateId=' + getUrlParam('evaluateId') + + '&templateId=' + getUrlParam('templateId') + '&type=' + type; + if (id == '0') { + url = './proEvaluateAuditForm.html?deptId=' + id + '&evaluateId=' + getUrlParam('evaluateId') + + '&templateId=' + getUrlParam('templateId') + '&type=' + type; + } + const layerIndex = layer.open({ + type: 2, + title: name + "评价审批", + shade: 0.3, + area: ['98%', '98%'], + scrollbar: true, + move: true, + anim: 2, + shadeClose: false, + content: url, + }); + } + - + + \ No newline at end of file