|  |  |  | 
|---|
|  |  |  | <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> | 
|---|
|  |  |  |  | 
|---|