Selaa lähdekoodia

项目列表,上下移bug

MaiXinRong 3 viikkoa sitten
vanhempi
commit
6d2e7bb9f6
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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 '移动数据结构错误';