From 0dd24ca8ed10ed9cf94bcc4e73389958bc86f932 Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期六, 06 三月 2021 13:29:29 +0800 Subject: [PATCH] # --- src/main/webapp/static/js/allo/allo.js | 21 +++++++++++++++++---- 1 files changed, 17 insertions(+), 4 deletions(-) diff --git a/src/main/webapp/static/js/allo/allo.js b/src/main/webapp/static/js/allo/allo.js index a73c886..b5c27ea 100644 --- a/src/main/webapp/static/js/allo/allo.js +++ b/src/main/webapp/static/js/allo/allo.js @@ -1,4 +1,17 @@ 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; @@ -12,7 +25,7 @@ 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, @@ -22,9 +35,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: '鍏宠仈璺緞鍚�'} @@ -234,7 +247,7 @@ type: 3, path: $('#path').val(), namePath: $('#namePath').val(), - level: 3, + level: $('#level').val(), leading: $('#leading').val(), sort: $('#sort').val(), barcode: $('#barcode').val(), -- Gitblit v1.9.1