专责审批代码调试

This commit is contained in:
BianLzhaoMin 2025-02-19 15:44:36 +08:00
parent 855785c873
commit bedfe05015
4 changed files with 8 additions and 5 deletions

View File

@ -1,3 +1,4 @@
// 专责审批 js文件
let layer, laydate, table, form;
$(function () {
layui.use(["layer", "laydate", "table", "form"], function () {
@ -27,7 +28,7 @@ function search(type) {
form.render("select");
}
table.reload("baseTable", {
url: ctxPath + "/backstage/evaluate/evalSummaryList",
url: ctxPath + "/backstage/evaluate/dedicatedEvalSummaryList",
page: {
curr: 1,
},
@ -47,7 +48,7 @@ function initTable() {
//渲染表格
table.render({
elem: "#baseTable",
url: ctxPath + "/backstage/evaluate/evalSummaryList", //数据接口
url: ctxPath + "/backstage/evaluate/dedicatedEvalSummaryList", //数据接口
method: "get", //方式默认是get
toolbar: "default", //开启工具栏,此处显示默认图标,可以自定义模板,详见文档
where: {

View File

@ -2,6 +2,7 @@
<html lang="en">
<head>
<!-- 专责审批 页面 -->
<meta charset="UTF-8">
<title>汇总审核</title>
<link rel="stylesheet" href="../../../layui/css/layui.css" />

View File

@ -8,6 +8,7 @@
</head>
<body>
<div style="padding: 10px;">
<table class="layui-table" id="baseTable" lay-filter="test"></table>
</div>

View File

@ -127,17 +127,17 @@
console.log("ddddd:", d)
//如果d.isApprove == 1 去除当前行的编辑功能
let text = "";
if (d.isTwoApprove == 1 && d.isApprove == 1) {
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) {
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.isTwoApprove == 2 && d.isApprove == 1) {
} else if (d.isThreeApprove == 2 && d.isTwoApprove == 1) {
text += '<a style="color: #a59e9e;cursor: pointer;font-size: 15px"' +
' id="reject">已驳回</a>';
} else {