优化分包商评价页面

This commit is contained in:
BianLzhaoMin 2025-08-06 15:54:54 +08:00
parent 56862467ed
commit 55a5411c1c
1 changed files with 7 additions and 4 deletions

View File

@ -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 += '<a lay-event="pass" style="color: #009688;cursor: pointer;font-size: 15px"' +
' id="pass">通过</a>';
text +=