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; dialogFormCommand.value = true;
} }
/** // /**
* ลบ คำส // *
* @param id id คำส // * @param id id
*/ // */
function onDelete(id: string) { // function onDelete(id: string) {
dialogRemove($q, () => { // dialogRemove($q, () => {
showLoader(); // showLoader();
http // http
.delete(config.API.commandType + `/${id}`) // .delete(config.API.commandType + `/${id}`)
.then(async () => { // .then(async () => {
await fetchCommandType(); // await fetchCommandType();
}) // })
.catch((e) => { // .catch((e) => {
messageError($q, e); // messageError($q, e);
}) // })
.finally(() => { // .finally(() => {
hideLoader(); // hideLoader();
}); // });
}); // });
} // }
/** /**
* dialog * dialog
@ -352,7 +352,7 @@ onMounted(async () => {
<q-item-section>แกไข</q-item-section> <q-item-section>แกไข</q-item-section>
</q-item> </q-item>
<q-separator /> <q-separator />
<q-item <!-- <q-item
clickable clickable
v-close-popup v-close-popup
@click="onDelete(item.id)" @click="onDelete(item.id)"
@ -365,7 +365,7 @@ onMounted(async () => {
<q-icon color="red" size="xs" name="mdi-delete" /> <q-icon color="red" size="xs" name="mdi-delete" />
</q-item-section> </q-item-section>
<q-item-section>ลบ</q-item-section> <q-item-section>ลบ</q-item-section>
</q-item> </q-item> -->
<q-separator /> <q-separator />
</q-list> </q-menu </q-list> </q-menu