Browse Source

项目列表,上下移bug

MaiXinRong 3 tuần trước cách đây
mục cha
commit
6d2e7bb9f6
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      app/service/sub_project.js

+ 1 - 1
app/service/sub_project.js

@@ -286,7 +286,7 @@ module.exports = app => {
         }
 
         async _siblingMoveForce(node, step) {
-            const sibling = await this.getAllDataByCondition({ where: { tree_pid: node.tree_pid, project_id: this.ctx.session.sessionProject.id }, orders: [['tree_order', 'asc']] });
+            const sibling = await this.getAllDataByCondition({ where: { tree_pid: node.tree_pid, project_id: this.ctx.session.sessionProject.id, is_delete: 0 }, orders: [['tree_order', 'asc']] });
             const nodeIndex = sibling.findIndex(x => { return x.id === node.id });
             if (nodeIndex + step < 0) throw '移动数据结构错误';
             if (nodeIndex + step > sibling.length - 1) throw '移动数据结构错误';