clear search

This commit is contained in:
setthawutttty 2025-03-26 10:57:55 +07:00
parent 4d47694ea5
commit 2967faf441
5 changed files with 8 additions and 21 deletions

View file

@ -208,7 +208,6 @@ function upLoadFileDoc() {
* @param data อมลรายชอผกสอบสวนเป array
*/
async function addPerson(data: any, type?: string) {
toggleModal();
changeFormData();
await mainStore.fetchData(data, type);
}
@ -1109,9 +1108,8 @@ onMounted(async () => {
<!-- Popup กรองเรยน -->
<DialogAddPersonal
title="ผู้ถูกร้องเรียน"
:modal="modal"
v-model:modal="modal"
btn-title="เพิ่มรายชื่อผู้ถูกร้องเรียน"
:close="toggleModal"
:save="addPerson"
:selected-data="mainStore.rowsAdd"
/>

View file

@ -310,7 +310,6 @@ function confirmDelete(id: string) {
async function addPerson(data: any, type: string) {
await mainStore.fetchData(data, type);
changeFormData();
toggleModal();
}
/** ดึงข้อมูล active */
@ -1760,9 +1759,8 @@ onMounted(async () => {
<DialogAddPersonal
title="ผู้ถูกร้องเรียน"
:modal="modalPerson"
v-model:modal="modalPerson"
btn-title="เพิ่มรายชื่อผู้ถูกร้องเรียน"
:close="toggleModal"
:selected-data="mainStore.rowsAdd"
:save="addPerson"
/>

View file

@ -435,7 +435,6 @@ function returnCount(num: number) {
async function addPerson(data: any, type?: string) {
await mainStore.fetchData(data, type);
changeFormData();
toggleModal();
}
/** function เรียกรายชื่อหน่วยงาน*/
@ -1986,9 +1985,8 @@ onMounted(async () => {
<!-- Popup กรองเรยน -->
<DialogAddPersonal
title="ผู้ถูกร้องเรียน"
:modal="modalPerson"
v-model:modal="modalPerson"
btn-title="เพิ่มรายชื่อผู้ถูกสอบสวน"
:close="toggleModal"
:save="addPerson"
:selected-data="mainStore.rowsAdd"
/>

View file

@ -194,7 +194,6 @@ function toggleModal() {
}
async function addPerson(data: any, type?: string) {
modalPerson.value = false;
dataStore.rowsAdd = data.map((item: any) => ({
profileId: item.personId,
fullname: item.name,
@ -763,9 +762,8 @@ onMounted(() => {
<DialogAddPersonal
title="ผู้ยื่นอุทธรณ์/ร้องทุกข์"
:modal="modalPerson"
v-model:modal="modalPerson"
btn-title="เพิ่มรายชื่อผู้ยื่นอุทธรณ์/ร้องทุกข์"
:close="toggleModal"
:save="addPerson"
:selected-data="mainStore.rowsAdd"
selecetSwitch="single"