| | |
| | | height: 'full-120', |
| | | cols: [[ |
| | | {type: 'checkbox'} |
| | | ,{field: 'id', align: 'center',title: '#'} |
| | | // ,{field: 'id', align: 'center',title: '#'} |
| | | ,{field: 'lev', align: 'center',title: '层数'} |
| | | ,{field: 'data', align: 'center',title: '实时数据'} |
| | | ,{field: 'createTime$', align: 'center',title: '创建时间'} |
| | | ,{field: 'updateTime$', align: 'center',title: '更新时间'} |
| | | ,{field: 'lastData', align: 'center',title: '最近数据'} |
| | | ,{field: 'lev', align: 'center',title: '层数'} |
| | | ,{field: 'originData', align: 'center',title: '原始地图'} |
| | | ,{field: 'baseRow', align: 'center',title: '基准排'} |
| | | ,{field: 'baseRowCode', align: 'center',title: '基准排-code'} |
| | | ,{field: 'baseBay', align: 'center',title: '基准列'} |
| | | ,{field: 'baseBayCode', align: 'center',title: '基准列-code'} |
| | | |
| | | ,{fixed: 'right', title:'操作', align: 'center', toolbar: '#operate', width:120} |
| | | ,{fixed: 'right', title:'操作', align: 'center', toolbar: '#operate', width:240} |
| | | ]], |
| | | request: { |
| | | pageName: 'curr', |
| | |
| | | case "del": |
| | | del([data.id]); |
| | | break; |
| | | case "initLocMast": |
| | | initLocMast(data); |
| | | break; |
| | | } |
| | | }); |
| | | |
| | | function initLocMast(data) { |
| | | layer.confirm('确定初始化库位数据吗?', { |
| | | skin: 'layui-layer-admin', |
| | | shade: .1 |
| | | }, function (i) { |
| | | layer.close(i); |
| | | var loadIndex = layer.load(2); |
| | | $.ajax({ |
| | | url: baseUrl+"/locMast/init", |
| | | headers: {'token': localStorage.getItem('token')}, |
| | | data: { |
| | | lev: data.lev |
| | | }, |
| | | method: 'POST', |
| | | success: function (res) { |
| | | layer.close(loadIndex); |
| | | if (res.code === 200){ |
| | | layer.msg(res.msg, {icon: 1}); |
| | | tableReload(); |
| | | } else if (res.code === 403){ |
| | | top.location.href = baseUrl+"/"; |
| | | } else { |
| | | layer.msg(res.msg, {icon: 2}); |
| | | } |
| | | } |
| | | }) |
| | | }); |
| | | } |
| | | |
| | | /* 弹窗 - 新增、修改 */ |
| | | function showEditModel(mData) { |
| | | admin.open({ |