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 >