代码调整

This commit is contained in:
BianLzhaoMin 2025-02-19 16:31:57 +08:00
parent b553334baa
commit 8ecddbf4bf
1 changed files with 7 additions and 36 deletions

View File

@ -157,46 +157,17 @@
} }
} else { } else {
if (cellData.field === 'examineAndApprove') { if (cellData.field === 'examineAndApprove') {
cellData.templet = function (d) { cellData.templet = function (d) {
//如果d.isApprove == 1 去除当前行的编辑功能 //如果d.isApprove == 1 去除当前行的编辑功能
// let text = "";
// if (d.isTwoApprove == 1) {
// text += '<a style="color: #009688;cursor: pointer;font-size: 15px"' +
// ' id="pass">已通过</a>';
// }
// if (d.isTwoApprove == 2) {
// text += '<a style="color: #a59e9e;cursor: pointer;font-size: 15px"' +
// ' id="reject">已驳回</a>';
// }
// // text += '<a lay-event="pass" style="color: #009688;cursor: pointer;font-size: 15px"' +
// // ' id="pass">通过</a>';
// // text +=
// // '<a lay-event="reject" style="color: #a59e9e;cursor: pointer;font-size: 15px;margin-left: 10px"' +
// // ' id="reject">驳回</a>';
// return text;
let text = ""; let text = "";
if (d.isTwoApprove == 1 && d.isApprove == 1 && d.isThreeApprove == 0) { if (d.isTwoApprove == 1) {
text += '<a lay-event="pass" style="color: #009688;cursor: pointer;font-size: 15px"' +
' id="pass">通过</a>';
text +=
'<a lay-event="reject" style="color: #a59e9e;cursor: pointer;font-size: 15px;margin-left: 10px"' +
' id="reject">驳回</a>';
} else {
if (d.isTwoApprove == 1 && d.isApprove == 1 && d.isThreeApprove == 1) {
text += '<a style="color: #009688;cursor: pointer;font-size: 15px"' + text += '<a style="color: #009688;cursor: pointer;font-size: 15px"' +
' id="pass">已通过</a>'; ' id="pass">已通过</a>';
} else if (d.isThreeApprove == 2 && d.isTwoApprove == 1) { }
if (d.isTwoApprove == 2) {
text += '<a style="color: #a59e9e;cursor: pointer;font-size: 15px"' + text += '<a style="color: #a59e9e;cursor: pointer;font-size: 15px"' +
' id="reject">已驳回</a>'; ' id="reject">已驳回</a>';
} else {
noMessage++
return ''
} }
}
// text += '<a lay-event="pass" style="color: #009688;cursor: pointer;font-size: 15px"' + // text += '<a lay-event="pass" style="color: #009688;cursor: pointer;font-size: 15px"' +
// ' id="pass">通过</a>'; // ' id="pass">通过</a>';
// text += // text +=