From 7e768afdb334d566db6c90fb06ee532fb31d339c Mon Sep 17 00:00:00 2001 From: setthawutttty Date: Fri, 31 Jan 2025 10:50:54 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=80=E0=B8=9E=E0=B8=B4=E0=B9=88=E0=B8=A1?= =?UTF-8?q?=20head=20table=20Drop&drop?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PersonalInformation/DialogSortEducation.vue | 13 +++---------- .../components/Tab/Dialog/01_FormIndicator.vue | 8 ++++++-- 2 files changed, 9 insertions(+), 12 deletions(-) diff --git a/src/modules/04_registryPerson/components/detail/PersonalInformation/DialogSortEducation.vue b/src/modules/04_registryPerson/components/detail/PersonalInformation/DialogSortEducation.vue index c1960f4c4..6de188d34 100644 --- a/src/modules/04_registryPerson/components/detail/PersonalInformation/DialogSortEducation.vue +++ b/src/modules/04_registryPerson/components/detail/PersonalInformation/DialogSortEducation.vue @@ -227,7 +227,7 @@ const columns = ref([ * @param to ตำแหน่งที่จะย้ายไป */ function onDrop(from: number, to: number) { - rows.value.splice(to, 0, rows.value.splice(from, 1)[0]); + rows.value.splice(to - 1, 0, rows.value.splice(from - 1, 1)[0]); selected.value.push(rows.value[0]); } @@ -296,18 +296,11 @@ watch(modal, async () => { row-key="id" hide-bottom hide-pagination - hide-header selection="multiple" + class="custom-header-table" v-model:selected="selected" > - +