浏览代码

数据筛选demo,提交遗漏

MaiXinRong 4 年之前
父节点
当前提交
21d996dde5
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      app/public/js/path_tree.js

+ 6 - 0
app/public/js/path_tree.js

@@ -1407,6 +1407,12 @@ const createNewPathTree = function (type, setting) {
     }
 
     class FilterTree extends BaseTree {
+        clearDatas() {
+            this.items = {};
+            this.nodes = [];
+            this.datas = [];
+            this.children = [];
+        }
         addData(data, fields) {
             const item = {};
             for (const prop in data) {