#
luxiaotao1123
2021-01-20 ff1302cb41fd6567a863c6faaa878a99ce102235
src/main/webapp/static/js/area/area.js
@@ -1,4 +1,18 @@
var pageCurr;
var tableIns;
getParentNode();
function getParentNode(el) {
    http.post(baseUrl + "/parent/node/group", {type: 1}, 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;
@@ -22,9 +36,9 @@
            {type: 'checkbox'}
            // ,{field: 'id', align: 'center',title: 'ID'}
            ,{field: 'uuid', align: 'center',title: '编号'}
            ,{field: 'name', 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: '关联路径名'}
@@ -302,9 +316,10 @@
        type: 'datetime'
    });
});
// 关闭动作
$(document).on('click','#data-detail-close', function () {
    parent.layer.closeAll();