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 +=