diff --git a/src/main/resources/static/js/samples/samplesMge.js b/src/main/resources/static/js/samples/samplesMge.js index 58ff5e5..0f6c2d2 100644 --- a/src/main/resources/static/js/samples/samplesMge.js +++ b/src/main/resources/static/js/samples/samplesMge.js @@ -91,41 +91,48 @@ function initTable(dataList, limit, page) { fixed: 'left', align: "center" }, - //表头 + // 表头 {title: "序号", width: 80, unresize: true, align: "center", templet: function (d) { return (page - 1) * limit + d.LAY_INDEX; } }, - {field: "customName", width:260,title: "送样单位", unresize: true, align: "center"}, - {field: "sampleUser", width:150,title: "送样人", unresize: true, align: "center"}, - {field: "sampleTime", width:210,title: "送样时间", unresize: true, align: "center"}, - {field: "sampleTools", width:280,title: "送样设备", unresize: true, align: "center"}, - {field: "collectSamplesUser", width:140,title: "收样人", unresize: true, align: "center"}, - {field: "collectSamplesTime", width:210,title: "收样时间", unresize: true, align: "center"}, + {field: "customName", width:260,title: "送样单位", unresize: true, align: "center", templet: function (d) { + return `
`; + }}, + {field: "sampleUser", width:150,title: "送样人", unresize: true, align: "center", templet: function (d) { + return ``; + }}, + {field: "sampleTime", width:210,title: "送样时间", unresize: true, align: "center", templet: function (d) { + return ``; + }}, + {field: "sampleTools", width:280,title: "送样设备", unresize: true, align: "center", templet: function (d) { + return ``; + }}, + {field: "collectSamplesUser", width:140,title: "收样人", unresize: true, align: "center", templet: function (d) { + return ``; + }}, + {field: "collectSamplesTime", width:210,title: "收样时间", unresize: true, align: "center", templet: function (d) { + return ``; + }}, { field: "teamName", width:210,title: "试验班组", unresize: true, align: "center", templet: function (d) { - let html = ''; - let view =''; + let view = ''; if (d.teamName == null) { - view="未派工"; + view = "未派工"; } else { - view="" + d.teamName + ""; + view = `${d.teamName}`; } - html=view; - return html; + return view; } }, {title: "操作", unresize: true, width: 80, align: "center", templet: function (d) { - - let html = ''; - let view="详情"; - html=view; - if(d.delFlag==1){ + let view = `详情`; + if(d.delFlag == 1){ return ''; } - return html; + return view; } }, ], @@ -135,13 +142,13 @@ function initTable(dataList, limit, page) { table.resize("table_data"); 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"); - var suborders_data_arr=res.data; + var suborders_data_arr = res.data; for (let suborders_key in suborders_data_arr) { - if (suborders_data_arr[suborders_key]['teamName']!=null&&suborders_data_arr[suborders_key]['teamName']!="") { + if (suborders_data_arr[suborders_key]['teamName'] != null && suborders_data_arr[suborders_key]['teamName'] != "") { let index = suborders_data_arr[suborders_key]['LAY_TABLE_INDEX']; - $('tr[data-index=' + index + '] input[type="checkbox"]').prop('disabled', true).attr("name","layTableCheckboxDisabled"); // 禁止部分选择 + $('tr[data-index=' + index + '] input[type="checkbox"]').prop('disabled', true).attr("name", "layTableCheckboxDisabled"); // 禁止部分选择 } - }; + } form.render('checkbox'); }, }); diff --git a/src/main/resources/static/js/system/child/sysOrgFormAjax.js b/src/main/resources/static/js/system/child/sysOrgFormAjax.js index c66c97e..a9e773b 100644 --- a/src/main/resources/static/js/system/child/sysOrgFormAjax.js +++ b/src/main/resources/static/js/system/child/sysOrgFormAjax.js @@ -68,7 +68,6 @@ function saveData(data) { if (!selectNodeId) { return layer.msg('请选择上级组织', {icon: 7}); } - alert(data.field.phone) console.log(data.field) if (data.field.phone != "" && data.field.phone != '') { if (!(/^1[3456789]\d{9}$/.test(data.field.phone))) { diff --git a/src/main/resources/static/js/system/role.js b/src/main/resources/static/js/system/role.js index 5bafae7..c861647 100644 --- a/src/main/resources/static/js/system/role.js +++ b/src/main/resources/static/js/system/role.js @@ -87,7 +87,6 @@ function initTable(dataList, limit, page) { limit: limit, cols: [ [ - //表头 { title: "序号", width: '10%', @@ -101,25 +100,37 @@ function initTable(dataList, limit, page) { field: "name", title: "角色名称", unresize: true, - align: "center" + align: "center", + templet: function(d) { + return '