let objParam; let form, table, tableIns, layer; let oneList = [], twoList = [], threeList = []; function setParams(params) { objParam = JSON.parse(params); layui.use(["form", 'layer'], function () { form = layui.form; layer = layui.layer; getAuditConfig(); }); } // 获取详情 function getAuditConfig() { let params = { encryptedData: JSON.stringify({ id: objParam.id }) }; let url = dataUrl + 'sys/auditConfig/getAuditConfig'; ajaxRequest(url, "POST", params, true, function () { }, function (result) { console.error(result); if (result.code === 200) { setAuditUserData(result.data); } }, function (xhr, status, error) { errorFn(xhr, status, error) }, null); // 各审核节点审核人员赋值 function setAuditUserData(obj) { let one = obj.one; let two = obj.two; let three = obj.three; oneList = one, twoList = two, threeList = three; setData(one, 'one'); setData(two, 'two'); setData(three, 'three'); } function setData(list, name) { let html = ''; $.each(list, function (idx, item) { html += '