Merge branch 'develop' of github.com:Frappet/bma-ehr-admin into develop
This commit is contained in:
commit
4c4cd03f0b
1 changed files with 22 additions and 22 deletions
|
|
@ -159,26 +159,26 @@ function onDialogEdit(data: ListOrder) {
|
|||
dialogFormCommand.value = true;
|
||||
}
|
||||
|
||||
/**
|
||||
* ลบ คำสั่ง
|
||||
* @param id id คำสั่ง
|
||||
*/
|
||||
function onDelete(id: string) {
|
||||
dialogRemove($q, () => {
|
||||
showLoader();
|
||||
http
|
||||
.delete(config.API.commandType + `/${id}`)
|
||||
.then(async () => {
|
||||
await fetchCommandType();
|
||||
})
|
||||
.catch((e) => {
|
||||
messageError($q, e);
|
||||
})
|
||||
.finally(() => {
|
||||
hideLoader();
|
||||
});
|
||||
});
|
||||
}
|
||||
// /**
|
||||
// * ลบ คำสั่ง
|
||||
// * @param id id คำสั่ง
|
||||
// */
|
||||
// function onDelete(id: string) {
|
||||
// dialogRemove($q, () => {
|
||||
// showLoader();
|
||||
// http
|
||||
// .delete(config.API.commandType + `/${id}`)
|
||||
// .then(async () => {
|
||||
// await fetchCommandType();
|
||||
// })
|
||||
// .catch((e) => {
|
||||
// messageError($q, e);
|
||||
// })
|
||||
// .finally(() => {
|
||||
// hideLoader();
|
||||
// });
|
||||
// });
|
||||
// }
|
||||
|
||||
/**
|
||||
* ปิด dialog
|
||||
|
|
@ -352,7 +352,7 @@ onMounted(async () => {
|
|||
<q-item-section>แก้ไข</q-item-section>
|
||||
</q-item>
|
||||
<q-separator />
|
||||
<q-item
|
||||
<!-- <q-item
|
||||
clickable
|
||||
v-close-popup
|
||||
@click="onDelete(item.id)"
|
||||
|
|
@ -365,7 +365,7 @@ onMounted(async () => {
|
|||
<q-icon color="red" size="xs" name="mdi-delete" />
|
||||
</q-item-section>
|
||||
<q-item-section>ลบ</q-item-section>
|
||||
</q-item>
|
||||
</q-item> -->
|
||||
|
||||
<q-separator />
|
||||
</q-list> </q-menu
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue