Explorar o código

项目列表,上下移bug

MaiXinRong hai 3 semanas
pai
achega
6d2e7bb9f6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 '移动数据结构错误';