Browse Source

重置刷新表格树

RuoYi 5 năm trước cách đây
mục cha
commit
18e0a2a27d
1 tập tin đã thay đổi với 6 bổ sung0 xóa
  1. 6 0
      ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js

+ 6 - 0
ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js

@@ -585,6 +585,12 @@ var table = {
                 	} else{
                 	    $("#" + tableId).bootstrapTable('refresh');
                 	}
+            	} else if (table.options.type == table_type.bootstrapTreeTable) {
+            		if($.common.isEmpty(tableId)){
+            	    	$("#" + table.options.id).bootstrapTreeTable('refresh', []);
+                	} else{
+                	    $("#" + tableId).bootstrapTreeTable('refresh', []);
+                	}
             	}
             },
             // 获取选中复选框项