瀏覽代碼

树结构基础操作问题

MaiXinRong 1 年之前
父節點
當前提交
2deface163
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      app/base/base_tree_service.js

+ 1 - 0
app/base/base_tree_service.js

@@ -988,6 +988,7 @@ class TreeService extends Service {
         for (const p of newPath) {
         for (const p of newPath) {
             updateData = updateData.concat(await this.getDataByFullPath(mid, p + '-%'));
             updateData = updateData.concat(await this.getDataByFullPath(mid, p + '-%'));
         }
         }
+        updateData = updateData.concat(await this.getDataById(selects.map(x => { return x.id; })));
         // 选中节点--原前兄弟节点&全部后兄弟节点
         // 选中节点--原前兄弟节点&全部后兄弟节点
         return { update: updateData };
         return { update: updateData };
     }
     }