+
+
+
+
+
+
+ diff --git a/bns/html/supplement/risk_cost_list.html b/bns/html/supplement/risk_cost_list.html new file mode 100644 index 0000000..81ef3ec --- /dev/null +++ b/bns/html/supplement/risk_cost_list.html @@ -0,0 +1,72 @@ + + + +
+ + + + + + + + + + + + +' + transformNull(d.workManager) + '
' + transformNull(d.workManagerPhone) + '
'; + } + }, + { + field: "workSite", + title: "作业部分", + width: '20%', + unresize: true, + align: "center", + templet: function (d) { + if (d.workSite) { + if (d.workSite.length > 60) { + return '' + d.workSite.substring(0, 60) + '...' + } else { + return '' + d.workSite + '' + } + } else { + return ''; + } + } + }, + { + field: "gx", + title: "工序", + width: '20%', + unresize: true, + align: "center", + templet: function (d) { + if (d.gx) { + if (d.gx.length > 60) { + return '' + d.gx.substring(0, 60) + '...' + } else { + return '' + d.gx + '' + } + } else { + return ''; + } + } + } + ], + ], + done: function (res, curr, count) { + layer.close(loadingMsg); + table.resize("currTable"); + count || this.elem.next(".layui-table-view").find(".layui-table-header").css("display", "inline-block"); + count || this.elem.next(".layui-table-view").find(".layui-table-box").css("overflow", "auto"); + }, + }); +} + +// 获取参数 +function getReqParams(page, limit, type) { + let obj = {}; + if (!type) { + obj = { + page: page + "", + limit: limit + "", + proName: $('#proName').val(), + riskLevel: $('#riskLevel').val(), + currentUserId: user.userId + '', + isSup: user.isSup, + currentUserOrgId: user.orgId + }; + } else { + obj = { + page: '1', + limit: '10', + proName: '', + riskLevel:'', + currentUserId: user.userId + '', + isSup: user.isSup, + currentUserOrgId: user.orgId + }; + } + return obj; +} + +// 查询/重置 +function queryTable(type) { + if (type === 2) { + $('#proName').val(''); + $('#riskLevel').val(''); + layui.form.render(); + } + let pattern = new RegExp("[%_<>]"); + if (pattern.test($("#proName").val())) { + $("#proName").val(''); + return layer.msg('工程名称查询包含特殊字符,请重新输入', { + icon: 2, + time: 2000 //2秒关闭(如果不配置,默认是3秒) + }); + } + pageNum = 1; + pages(1, limitSize) +} + +// 整改详情 +function rectDetail(obj) { + openIframeByParamObj("rectDetail", "整改详情", "../supplement/child/risk_rect_detail.html", "62%", "85%", obj); +} diff --git a/bns/js/supplement/risk_time_list.js b/bns/js/supplement/risk_time_list.js index 8742282..787c53b 100644 --- a/bns/js/supplement/risk_time_list.js +++ b/bns/js/supplement/risk_time_list.js @@ -19,7 +19,7 @@ layui.use(['form', 'layer', 'table', 'laydate'], function () { /* 加载表格 */ function pages(pageNum, pageSize, typeNum) { let params = getReqParams(pageNum, pageSize, typeNum); - let url = dataUrl + "proteam/pot/riskTime/getRiskRectList"; + let url = dataUrl + "proteam/pot/riskTime/getRiskTimeList"; ajaxRequest(url, "POST", params, true, function () { }, function (result) { if (result.code === 200) {