| | |
| | | var pageCurr; |
| | | |
| | | getParentNode(); |
| | | function getParentNode(el) { |
| | | http.post(baseUrl + "/parent/node/group", {type: 2}, function (res) { |
| | | if (res.data != null) { |
| | | var tpl = $("#parentNodeGroup").html(); |
| | | var template = Handlebars.compile(tpl); |
| | | var html = template(res); |
| | | $('#parentId').append(html); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | layui.use(['table','laydate', 'form'], function(){ |
| | | var table = layui.table; |
| | | var $ = layui.jquery; |
| | |
| | | headers: {token: localStorage.getItem('token')}, |
| | | url: baseUrl+'/node/list/auth', |
| | | page: true, |
| | | where: {type: 2}, |
| | | where: {type: 3}, |
| | | limit: 16, |
| | | limits: [16, 30, 50, 100, 200, 500], |
| | | even: true, |
| | |
| | | ,{field: 'uuid', align: 'center',title: '编号'} |
| | | ,{field: 'name', align: 'center',title: '仓库名称'} |
| | | // ,{field: 'parentId', align: 'center',title: '父级'} |
| | | // ,{field: 'parentName', align: 'center',title: '父级名称'} |
| | | ,{field: 'parentName', align: 'center',title: '所属库区'} |
| | | // ,{field: 'type$', align: 'center',title: '类型'} |
| | | // ,{field: 'path', align: 'center',title: '关联路径'} |
| | | // ,{field: 'namePath', align: 'center',title: '关联路径名'} |
| | |
| | | layer.open({ |
| | | type: 2, |
| | | title: '新增', |
| | | maxmin: true, |
| | | area: [top.detailWidth, top.detailHeight], |
| | | area: ['30%', top.detailHeight], |
| | | content: 'allo_detail.html', |
| | | success: function(layero, index){ |
| | | layer.getChildFrame('#data-detail-submit-edit', index).hide(); |
| | |
| | | layer.open({ |
| | | type: 2, |
| | | title: '修改', |
| | | maxmin: true, |
| | | area: [top.detailWidth, top.detailHeight], |
| | | area: ['30%', top.detailHeight], |
| | | content: 'allo_detail.html', |
| | | success: function(layero, index){ |
| | | layer.getChildFrame('#data-detail-submit-save', index).hide(); |
| | |
| | | type: 3, |
| | | path: $('#path').val(), |
| | | namePath: $('#namePath').val(), |
| | | level: 3, |
| | | level: $('#level').val(), |
| | | leading: $('#leading').val(), |
| | | sort: $('#sort').val(), |
| | | barcode: $('#barcode').val(), |