From d80dd0abcb56aacf30bc32e424ff398f7ccce730 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期五, 26 三月 2021 13:17:00 +0800
Subject: [PATCH] #
---
src/main/webapp/views/allo/allo_detail.html | 29 +++++++++++++++++++++++++++++
1 files changed, 29 insertions(+), 0 deletions(-)
diff --git a/src/main/webapp/views/allo/allo_detail.html b/src/main/webapp/views/allo/allo_detail.html
index b48d5cd..4ebabaa 100644
--- a/src/main/webapp/views/allo/allo_detail.html
+++ b/src/main/webapp/views/allo/allo_detail.html
@@ -185,5 +185,34 @@
<option value="{{this.key}}">{{this.val}}</option>
{{/each}}
</script>
+<script>
+ layui.use(['form'], function(){
+ var form = layui.form;
+ getParentNode();
+ function getParentNode(el) {
+ $.ajax({
+ url: baseUrl+"/parent/node/group",
+ headers: {'token': localStorage.getItem('token')},
+ data: {type: 2},
+ method: 'POST',
+ success: function (res) {
+ if (res.code === 200){
+ if (res.data != null) {
+ var tpl = $("#parentNodeGroup").html();
+ var template = Handlebars.compile(tpl);
+ var html = template(res);
+ $('#parentId').append(html);
+ layui.form.render('select');
+ }
+ } else if (res.code === 403){
+ top.location.href = baseUrl+"/";
+ } else {
+ layer.msg(res.msg)
+ }
+ }
+ })
+ }
+ })
+</script>
</html>
--
Gitblit v1.9.1