代码调试
This commit is contained in:
parent
8ecddbf4bf
commit
412b502027
|
|
@ -159,20 +159,40 @@
|
||||||
if (cellData.field === 'examineAndApprove') {
|
if (cellData.field === 'examineAndApprove') {
|
||||||
cellData.templet = function (d) {
|
cellData.templet = function (d) {
|
||||||
//如果d.isApprove == 1 去除当前行的编辑功能
|
//如果d.isApprove == 1 去除当前行的编辑功能
|
||||||
let text = "";
|
// let text = "";
|
||||||
if (d.isTwoApprove == 1) {
|
// if (d.isTwoApprove == 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>';
|
||||||
}
|
// }
|
||||||
if (d.isTwoApprove == 2) {
|
// 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>';
|
||||||
}
|
// }
|
||||||
// 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 +=
|
||||||
// '<a lay-event="reject" style="color: #a59e9e;cursor: pointer;font-size: 15px;margin-left: 10px"' +
|
// '<a lay-event="reject" style="color: #a59e9e;cursor: pointer;font-size: 15px;margin-left: 10px"' +
|
||||||
// ' id="reject">驳回</a>';
|
// ' id="reject">驳回</a>';
|
||||||
|
|
||||||
|
let text = "";
|
||||||
|
if (d.isTwoApprove == 1 && d.isApprove == 1 && d.isThreeApprove == 0) {
|
||||||
|
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"' +
|
||||||
|
' id="pass">已通过</a>';
|
||||||
|
} else if (d.isThreeApprove == 2 && d.isTwoApprove == 1) {
|
||||||
|
text += '<a style="color: #a59e9e;cursor: pointer;font-size: 15px"' +
|
||||||
|
' id="reject">已驳回</a>';
|
||||||
|
} else {
|
||||||
|
noMessage++
|
||||||
|
return ''
|
||||||
|
}
|
||||||
|
}
|
||||||
return text;
|
return text;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue