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;
|
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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue