This commit is contained in:
Warunee Tamkoo 2023-11-30 18:09:26 +07:00
parent a6dfc53ef5
commit 7ca4d66516

View file

@ -320,12 +320,12 @@ function getOc() {
* @param id id ของผกรอง * @param id id ของผกรอง
*/ */
function deletePerson(id: string) { function deletePerson(id: string) {
dialogRemove($q, () => { // dialogRemove($q, () => {
changeFormData(); changeFormData();
const dataRow = mainStore.rowsAdd; const dataRow = mainStore.rowsAdd;
const updatedRows = dataRow.filter((item: any) => item.personId !== id); const updatedRows = dataRow.filter((item: any) => item.personId !== id);
mainStore.rowsAdd = updatedRows; mainStore.rowsAdd = updatedRows;
}); // });
} }
/** ช่องทางการร้องเรียน และฟังก์ชั่นการดึงข้อมูลช่องทางการร้องเรียนมาจาก api*/ /** ช่องทางการร้องเรียน และฟังก์ชั่นการดึงข้อมูลช่องทางการร้องเรียนมาจาก api*/
@ -342,7 +342,7 @@ function changeFormData() {
} }
onMounted(() => { onMounted(() => {
mainStore.rowsAdd = [] mainStore.rowsAdd = [];
getListChannel(); getListChannel();
getOc(); getOc();
}); });
@ -497,9 +497,7 @@ onMounted(() => {
:paging="true" :paging="true"
dense dense
class="custom-header-table" class="custom-header-table"
:visible-columns=" :visible-columns="mainStore.visibleColumnsRespondent"
mainStore.visibleColumnsRespondent
"
> >
<template v-slot:header="props"> <template v-slot:header="props">
<q-tr :props="props"> <q-tr :props="props">