|
@@ -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 '移动数据结构错误';
|