From 42a908a0a60b27d016231d062bac08be1b64d3e3 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期五, 12 三月 2021 09:49:35 +0800
Subject: [PATCH] #

---
 src/main/webapp/views/allo/allo.html |   20 +++++++++++++++++++-
 1 files changed, 19 insertions(+), 1 deletions(-)

diff --git a/src/main/webapp/views/allo/allo.html b/src/main/webapp/views/allo/allo.html
index 1519a40..b8e718a 100644
--- a/src/main/webapp/views/allo/allo.html
+++ b/src/main/webapp/views/allo/allo.html
@@ -63,6 +63,24 @@
 <iframe id="detail-iframe" scrolling="auto" style="display:none;"></iframe>
 
 </body>
-
+<script type="text/template" id="parentNodeGroup">
+    <option value="">閫夋嫨搴撳尯</option>
+    {{#each data}}
+    <option value="{{this.key}}">{{this.val}}</option>
+    {{/each}}
+</script>
+<script type="text/javascript">
+    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);
+            }
+        });
+    }
+</script>
 </html>
 

--
Gitblit v1.9.1