From 48f9bc77e40e236481cb4e689f42536633e3ca5f Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Thu, 23 Nov 2023 10:30:55 +0700 Subject: [PATCH 1/6] =?UTF-8?q?=E0=B8=9B=E0=B8=A3=E0=B8=B1=E0=B8=9A=20tabl?= =?UTF-8?q?e=20popup=20=E0=B8=AA=E0=B9=88=E0=B8=87=E0=B9=84=E0=B8=9B?= =?UTF-8?q?=E0=B8=AA=E0=B8=B7=E0=B8=9A=E0=B8=AA=E0=B8=A7=E0=B8=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/1_Complaint/Popup.vue | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/src/modules/11_discipline/components/1_Complaint/Popup.vue b/src/modules/11_discipline/components/1_Complaint/Popup.vue index b0e50a663..186d316e9 100644 --- a/src/modules/11_discipline/components/1_Complaint/Popup.vue +++ b/src/modules/11_discipline/components/1_Complaint/Popup.vue @@ -114,9 +114,14 @@ const selected = ref([]); const inspectionResults = ref(""); const inputRef = ref(null); +const initialPagination = ref({ + descending: false, + rowsPerPage: 25, +}); + function onclickSend() { inputRef.value.validate(); - if (!inputRef.value.hasError) { + if (!inputRef.value.hasError && selected.value.length > 0) { dialogConfirm( $q, async () => { @@ -137,6 +142,8 @@ function onClickClose() { watch([() => props.modal], () => { inspectionResults.value = props.modal ? "" : ""; + selected.value = props.modal ? [] : []; + selected.value.push(complainstStore.rowsAdd); }); @@ -164,22 +171,24 @@ watch([() => props.modal], () => { row-key="id" flat bordered - :paging="true" + :paging="false" dense class="custom-header-table" :visible-columns="visibleColumns" selection="multiple" v-model:selected="selected" + :pagination="initialPagination" + hide-bottom >