Merge branch 'master' of http://101.37.171.70:10101/r/MESWMS-LayUI
| | |
| | | , laydate = layui.laydate |
| | | , element = layui.element; |
| | | |
| | | var fn1 = function (field) { |
| | | return function (data) { |
| | | var value = data[field]; |
| | | return [ |
| | | '<select name="type" lay-filter="type" lay-search="true" value="' + value + '">', |
| | | '<option value="" >è¯·éæ©ç¶æ</option>', |
| | | '<option value="0"' + (value === 0 ? 'selected' : '') + '>å½äº§</option>', |
| | | '<option value="1"' + (value === 1 ? 'selected' : '') + '>è¿å£</option>', |
| | | '</select>' |
| | | ].join(''); |
| | | }; |
| | | }; |
| | | |
| | | |
| | | //常è§ç¨æ³ |
| | | laydate.render({ |
| | |
| | | { type: 'checkbox', fixed: 'left' } |
| | | , { templet: '#xuhao', title: 'åºå·', sort: true, fixed: 'left', event: "qwe", width: 100 } |
| | | , { field: 'HMaterID', title: 'HMaterID', edit: 'text', width: 100, hide: true } |
| | | , { field: 'HMaterCode', title: 'ç©æä»£ç ', edit: 'text', event: 'HMaterCode', width: 100, templet: fn1('HMaterCode') } |
| | | , { field: 'HMaterCode', title: 'ç©æä»£ç ', edit: 'text', event: 'HMaterCode', width: 100 } |
| | | , { field: 'HMaterName', title: 'ç©æåç§°', edit: 'text', width: 100 } |
| | | , { field: 'HMaterSpec', title: 'è§æ ¼åå·', edit: 'text', width: 100 } |
| | | , { field: 'HUnitID', title: 'HUnitID', edit: 'text', width: 100, hide: true } |