| | |
| | | /* 表格2头工具栏点击事件 */ |
| | | table.on('toolbar(orderTable)', function (obj) { |
| | | if (obj.event === 'add') { // 添加 |
| | | showEditModel2(); |
| | | // showEditModel2(); |
| | | right(); |
| | | } else if (obj.event === 'del') { // 删除 |
| | | var checkRows = table.checkStatus('orderTable'); |
| | | if (checkRows.data.length === 0) { |
| | |
| | | |
| | | }); |
| | | |
| | | function right(){ |
| | | top.popupRight = top.layui.admin.popupRight({ |
| | | id: 'LAY_adminPopupLayerTest' |
| | | , area: '750px' |
| | | , type: 2 |
| | | , content:'order/matQuery.html' |
| | | , success: function(){ |
| | | // $('#'+ this.id).html('<div style="padding: 20px;">放入内容</div>'); |
| | | //admin.view(this.id).render('system/xxx') |
| | | } |
| | | , end: function () { |
| | | $(".layui-laypage-btn")[0].click(); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | // 关闭动作 |
| | | $(document).on('click','#data-detail-close', function () { |
| | | parent.layer.closeAll(); |