fix(测试计划): 优化测试计划table拖拽排序报错
This commit is contained in:
parent
ccb6b42143
commit
d2c2096da8
|
@ -663,7 +663,9 @@
|
||||||
}
|
}
|
||||||
params.targetId = newDragData[targetIndex]?.id ?? newDragData[newIndex]?.id;
|
params.targetId = newDragData[targetIndex]?.id ?? newDragData[newIndex]?.id;
|
||||||
|
|
||||||
emit('dragChange', params);
|
if (params.targetId !== params.moveId) {
|
||||||
|
emit('dragChange', params);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1320,6 +1320,7 @@
|
||||||
|
|
||||||
// 拖拽排序
|
// 拖拽排序
|
||||||
async function handleDragChange(params: DragSortParams) {
|
async function handleDragChange(params: DragSortParams) {
|
||||||
|
setLoading(true);
|
||||||
try {
|
try {
|
||||||
await dragPlanOnGroup(params);
|
await dragPlanOnGroup(params);
|
||||||
Message.success(t('caseManagement.featureCase.sortSuccess'));
|
Message.success(t('caseManagement.featureCase.sortSuccess'));
|
||||||
|
@ -1327,6 +1328,8 @@
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
// eslint-disable-next-line no-console
|
// eslint-disable-next-line no-console
|
||||||
console.log(error);
|
console.log(error);
|
||||||
|
} finally {
|
||||||
|
setLoading(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue