From d2c2096da81da8b1c2d0f7ce21d72a51b12c438a Mon Sep 17 00:00:00 2001 From: "xinxin.wu" Date: Fri, 21 Jun 2024 15:44:41 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92):=20?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92table?= =?UTF-8?q?=E6=8B=96=E6=8B=BD=E6=8E=92=E5=BA=8F=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/pure/ms-table/base-table.vue | 4 +++- .../src/views/test-plan/testPlan/components/planTable.vue | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/pure/ms-table/base-table.vue b/frontend/src/components/pure/ms-table/base-table.vue index 359b7956ec..bd3ecb8971 100644 --- a/frontend/src/components/pure/ms-table/base-table.vue +++ b/frontend/src/components/pure/ms-table/base-table.vue @@ -663,7 +663,9 @@ } params.targetId = newDragData[targetIndex]?.id ?? newDragData[newIndex]?.id; - emit('dragChange', params); + if (params.targetId !== params.moveId) { + emit('dragChange', params); + } } }; diff --git a/frontend/src/views/test-plan/testPlan/components/planTable.vue b/frontend/src/views/test-plan/testPlan/components/planTable.vue index 3c2a86916c..915714fb5b 100644 --- a/frontend/src/views/test-plan/testPlan/components/planTable.vue +++ b/frontend/src/views/test-plan/testPlan/components/planTable.vue @@ -1320,6 +1320,7 @@ // ζ‹–ζ‹½ζŽ’εΊ async function handleDragChange(params: DragSortParams) { + setLoading(true); try { await dragPlanOnGroup(params); Message.success(t('caseManagement.featureCase.sortSuccess')); @@ -1327,6 +1328,8 @@ } catch (error) { // eslint-disable-next-line no-console console.log(error); + } finally { + setLoading(false); } }