很服气,现在是抽着干活的时间出来写的,为什么要写呢?其实layui单元格合并并不是什么难得东西,网上也能找到很多.之前做上一个项目得时候做了一个很复杂得表中表合并,当时忘了记录,现在我又用到了,唉,很烦,又花了一会的时间重新写合并.而且这次的需求没有上次那么变态,只是简单的加了一点内容.服了,如果以后再遇到那种合并中嵌套合并,修改完了再来补充.服就服在,之前写了一个很厉害的合并,花了我好几天时间没有记录,现在这种不是很通用,如果需求变更还需要再改.废话牢骚一大推该上代码了
table.render({
elem : '#td'
,url : '../largeScreenListAction/findList'
//,toolbar : '#toolbar'
,title: '机构表'
,sort:true
,cols : [[
{type : 'checkbox',width: '5%',align:'center'}
,{field: 'testBatch', title: '考试批次',align:'center',width: '8%'}
,{field: 'station', title: '工位',align:'center',width: '7%'}
,{field: 'welderName', title: '姓名',align:'center',width: '7%'}
,{field: 'steelSealNumber', title: '钢印号',align:'center',width: '6%'}
,{field: 'qualificationCode', title: '项目资格代号',align:'center',width: '21%'}
,{field: 'testCondition', title: '考试状态',align:'center',width: '8%',templet:function (d) {