แก้ api delete
This commit is contained in:
parent
baf04ec29d
commit
392d5a5943
3 changed files with 5 additions and 3 deletions
|
|
@ -241,7 +241,7 @@ const getData = async () => {
|
|||
});
|
||||
};
|
||||
|
||||
const clickDelete = async (name: string, id: string) => {
|
||||
const clickDelete = async (id: string) => {
|
||||
dialogMessage(
|
||||
$q,
|
||||
`ลบข้อมูล`,
|
||||
|
|
|
|||
|
|
@ -241,7 +241,7 @@ const getData = async () => {
|
|||
});
|
||||
};
|
||||
|
||||
const clickDelete = async (name: string, id: string) => {
|
||||
const clickDelete = async (id: string) => {
|
||||
dialogMessage(
|
||||
$q,
|
||||
`ลบข้อมูล`,
|
||||
|
|
|
|||
|
|
@ -241,7 +241,7 @@ const getData = async () => {
|
|||
});
|
||||
};
|
||||
|
||||
const clickDelete = async (name: string, id: string) => {
|
||||
const clickDelete = async (id: string) => {
|
||||
dialogMessage(
|
||||
$q,
|
||||
`ลบข้อมูล`,
|
||||
|
|
@ -265,6 +265,7 @@ const deleteData = async (id: string) => {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(async () => {
|
||||
hideLoader();
|
||||
await getData();
|
||||
});
|
||||
};
|
||||
|
|
@ -423,6 +424,7 @@ const saveOrder = async () => {
|
|||
<q-td key="statustext" :props="props">
|
||||
{{ props.row.statustext }}
|
||||
</q-td>
|
||||
|
||||
<q-td auto-width>
|
||||
<q-btn
|
||||
dense
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue