From f74bb3a0d31392a2ea06ac231a854c38df060e65 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期二, 19 一月 2021 11:20:47 +0800
Subject: [PATCH] #

---
 src/main/webapp/static/js/allo/allo.js |   19 ++++++++++++++++---
 1 files changed, 16 insertions(+), 3 deletions(-)

diff --git a/src/main/webapp/static/js/allo/allo.js b/src/main/webapp/static/js/allo/allo.js
index a73c886..f14975b 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,
@@ -24,7 +37,7 @@
             ,{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: '鍏宠仈璺緞鍚�'}
@@ -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