| | |
| | | |
| | | var insTb = table.render({ |
| | | elem: '#originTable', |
| | | url: baseUrl + '/item/list/auth', |
| | | url: baseUrl + '/host/list/auth', |
| | | height: 'full-100', |
| | | headers: {token: localStorage.getItem('token')}, |
| | | request: { |
| | |
| | | /* 表格搜索 */ |
| | | form.on('submit(originTbReset)', function (data) { |
| | | insTb.reload(); |
| | | insTb2.reload({where: {item_id: null}, page: {curr: 1}}); |
| | | insTb2.reload({where: {host_id: null}, page: {curr: 1}}); |
| | | return false; |
| | | }); |
| | | |
| | |
| | | table.on('row(originTable)', function (obj) { |
| | | selObj = obj; |
| | | obj.tr.addClass('layui-table-click').siblings().removeClass('layui-table-click'); |
| | | insTb2.reload({where: {item_id: obj.data.id}, page: {curr: 1}}); |
| | | insTb2.reload({where: {host_id: obj.data.id}, page: {curr: 1}}); |
| | | }); |
| | | |
| | | /* 显示表单弹窗 */ |