From ab46ecb8ea6a4ebb79454f485a0231fac34d3eec Mon Sep 17 00:00:00 2001 From: YunaiV Date: Mon, 21 Jul 2025 16:02:42 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E3=80=90BPM=20=E5=B7=A5=E4=BD=9C?= =?UTF-8?q?=E6=B5=81=E3=80=91=E5=A4=9A=E6=AC=A1=E7=82=B9=E5=87=BB=E6=B5=81?= =?UTF-8?q?=E7=A8=8B=E6=A8=A1=E5=9E=8B=E7=9A=84=E2=80=9C=E6=8E=92=E5=BA=8F?= =?UTF-8?q?=E2=80=9D=E5=90=8E=EF=BC=8C=E5=8F=96=E6=B6=88=E6=8B=96=E6=8B=BD?= =?UTF-8?q?=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/bpm/model/CategoryDraggableModel.vue | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/views/bpm/model/CategoryDraggableModel.vue b/src/views/bpm/model/CategoryDraggableModel.vue index 0c6f3689..21020b78 100644 --- a/src/views/bpm/model/CategoryDraggableModel.vue +++ b/src/views/bpm/model/CategoryDraggableModel.vue @@ -510,10 +510,15 @@ const isManagerUser = (row: any) => { /** 处理模型的排序 **/ const handleModelSort = () => { - // 保存初始数据 - originalData.value = cloneDeep(props.categoryInfo.modelList) - isModelSorting.value = true - initSort() + if (isModelSorting.value) { + // 如果已经在排序状态,则取消排序 + handleModelSortCancel() + } else { + // 保存初始数据 + originalData.value = cloneDeep(props.categoryInfo.modelList) + isModelSorting.value = true + initSort() + } } /** 处理模型的排序提交 */