Merge branch 'develop' of github.com:Frappet/bma-ehr-admin into develop

This commit is contained in:
Warunee Tamkoo 2024-09-13 17:58:33 +07:00
commit 4c4cd03f0b

View file

@ -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