Skip to content

Commit ab46ecb

Browse files
committed
fix:【BPM 工作流】多次点击流程模型的“排序”后,取消拖拽排序
1 parent 3ea5bac commit ab46ecb

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

src/views/bpm/model/CategoryDraggableModel.vue

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -510,10 +510,15 @@ const isManagerUser = (row: any) => {
510510
511511
/** 处理模型的排序 **/
512512
const handleModelSort = () => {
513-
// 保存初始数据
514-
originalData.value = cloneDeep(props.categoryInfo.modelList)
515-
isModelSorting.value = true
516-
initSort()
513+
if (isModelSorting.value) {
514+
// 如果已经在排序状态,则取消排序
515+
handleModelSortCancel()
516+
} else {
517+
// 保存初始数据
518+
originalData.value = cloneDeep(props.categoryInfo.modelList)
519+
isModelSorting.value = true
520+
initSort()
521+
}
517522
}
518523
519524
/** 处理模型的排序提交 */

0 commit comments

Comments
 (0)