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