Pārlūkot izejas kodu

切换提供部门清空已选择的列表

wangzhe 2 gadi atpakaļ
vecāks
revīzija
d5609e739b

+ 2 - 0
mybusiness/src/main/resources/templates/apply/record/add.html

@@ -230,6 +230,8 @@
     }
 
     function doSubmit(index, layero){
+        //清空下方已选择的接口列表
+        $("#accordion").html("");
         var tree = layero.find("iframe")[0].contentWindow.$._tree;
         // if ($.tree.notAllowParents(tree)) {
         if (true) {//不能选择根节点

+ 2 - 0
mybusiness/src/main/resources/templates/apply/record/edit.html

@@ -302,6 +302,8 @@
 
     /**选择部门树回调方法**/
     function doSubmit(index, layero){
+        //清空下方已选择的接口列表
+        $("#accordion").html("");
         var tree = layero.find("iframe")[0].contentWindow.$._tree;
         if ($.tree.notAllowParents(tree)) {
             var body = layer.getChildFrame('body', index);

+ 2 - 0
mybusiness/src/main/resources/templates/applyData/record/add.html

@@ -262,6 +262,8 @@
     }
 
     function doSubmit(index, layero){
+        //清空下方已选择的接口列表
+        $("#accordion").html("");
         var tree = layero.find("iframe")[0].contentWindow.$._tree;
         // if ($.tree.notAllowParents(tree)) {
         if (true) {//不能选择根节点

+ 2 - 0
mybusiness/src/main/resources/templates/applyData/record/edit.html

@@ -309,6 +309,8 @@
 
     /**选择部门树回调方法**/
     function doSubmit(index, layero){
+        //清空下方已选择的接口列表
+        $("#accordion").html("");
         var tree = layero.find("iframe")[0].contentWindow.$._tree;
         if ($.tree.notAllowParents(tree)) {
             var body = layer.getChildFrame('body', index);