| | |
| | | },width:80} |
| | | ,{field: 'modiUser$', align: 'center',title: '修改人员'} |
| | | ,{field: 'modiTime$', align: 'center',title: '修改时间', width: 180} |
| | | ,{ fixed: 'right', title:'操作', align: 'center', toolbar: '#operate'} |
| | | ,{ fixed: 'right', title:'操作', align: 'center', toolbar: '#operate', width: 300} |
| | | ]], |
| | | request: { |
| | | pageName: 'curr', |
| | |
| | | } |
| | | locDetlToLayer(data.locNo); |
| | | break; |
| | | // 查看图片 |
| | | case 'showPic': |
| | | let imgHtml = '<div style="height:100%;display: flex;justify-content: space-around;align-items: center;">'; |
| | | $.ajax({ |
| | | url: baseUrl+"/locMast/picUrl", |
| | | headers: {'token': localStorage.getItem('token')}, |
| | | data: { |
| | | locNo: data.locNo |
| | | }, |
| | | method: 'GET', |
| | | traditional:true, |
| | | success: function (res) { |
| | | if (res.code === 200){ |
| | | res.data.forEach((item) => { |
| | | let tmp = '<img width="600" src="' + item + '" />\''; |
| | | imgHtml += tmp; |
| | | }) |
| | | imgHtml += "</div>"; |
| | | |
| | | layer.open({ |
| | | type: 1, |
| | | title: '查看图片', |
| | | area: [top.detailWidth, top.detailHeight], |
| | | shadeClose: true, |
| | | content: imgHtml, |
| | | success: function(layero, index){ |
| | | } |
| | | }); |
| | | |
| | | } else if (res.code === 403){ |
| | | top.location.href = baseUrl+"/"; |
| | | } else { |
| | | layer.msg(res.msg) |
| | | } |
| | | } |
| | | }); |
| | | break; |
| | | } |
| | | }); |
| | | |