updated
This commit is contained in:
parent
a6dfc53ef5
commit
7ca4d66516
1 changed files with 8 additions and 10 deletions
|
|
@ -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">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue