Skip to content

Commit

Permalink
修改被移动步骤的参数
Browse files Browse the repository at this point in the history
  • Loading branch information
YeungHoiChiu committed Jun 26, 2024
1 parent 373b80c commit 08b1ba1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/StepDraggable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const sortStep = (e) => {
let endId = null;
let direction = '';
let newIndex = null;
let thisSort = null;
let stepsId = null;
let newParentId = null;
let caseId = null;
if (e.added !== undefined) {
Expand All @@ -81,7 +81,7 @@ const sortStep = (e) => {
caseId = props.steps[e.added.newIndex].caseId;
newParentId = props.parentId;
newIndex = e.added.newIndex;
thisSort = props.steps[e.added.newIndex].sort;
stepsId = props.steps[e.added.newIndex].id;
// 此场景中下面3个参数不重要,为了兼容后端参数要求随便填的,它们会由后端进行处理
direction = 'added';
startId = 1;
Expand Down Expand Up @@ -109,7 +109,7 @@ const sortStep = (e) => {
endId,
newParentId,
newIndex,
thisSort,
stepsId,
})
.then((resp) => {
if (resp.code === 2000) {
Expand Down

0 comments on commit 08b1ba1

Please sign in to comment.