#
luxiaotao1123
2021-04-10 b2623f99d7aa231eff76ef52665813df3ee6939b
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>