From 55a5411c1c415a0f037c91da82d0757f1b28cc1c Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Wed, 6 Aug 2025 15:54:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=88=86=E5=8C=85=E5=95=86?= =?UTF-8?q?=E8=AF=84=E4=BB=B7=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../evaluate/outsourceAudit/outsourceAuditForm.html | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/main/resources/static/pages/evaluate/outsourceAudit/outsourceAuditForm.html b/src/main/resources/static/pages/evaluate/outsourceAudit/outsourceAuditForm.html index ddec160..cdf5bb3 100644 --- a/src/main/resources/static/pages/evaluate/outsourceAudit/outsourceAuditForm.html +++ b/src/main/resources/static/pages/evaluate/outsourceAudit/outsourceAuditForm.html @@ -98,9 +98,10 @@ } } const isAllNull = keyList.every(item => item != '') - if (isAllNull) { - tableListNew.push(item) - } + tableListNew.push({ + ...item, + isAllNull: !isAllNull + }) }) tableRowList = tableListNew //重新加载表格 清空之前的表头和内容 @@ -140,6 +141,8 @@ } if (cellData.field === 'examineAndApprove') { cellData.templet = function (d) { + + console.log("d***---***", d) //如果d.isApprove == 1 去除当前行的编辑功能 let text = ""; console.log("======") @@ -147,7 +150,7 @@ console.log("======", d.isApprove) if (getUrlParam("type") == '1') { - if (d.isApprove == 0) { + if (d.isApprove == 0 && !d.isAllNull) { text += '通过'; text +=