Преглед изворни кода

项目列表,上下移bug

MaiXinRong пре 3 недеља
родитељ
комит
6d2e7bb9f6
1 измењених фајлова са 1 додато и 1 уклоњено
  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 '移动数据结构错误';