- add common dialog (remove, confirm & message notify) และลองใช้ในส่วนของออกคำสั่ง

- เพิ่ม action สร้างข้อมูลทุกอันที่ส่งจากทะเบียนประวัติ
- fix bug call function in certificate
This commit is contained in:
Warunee Tamkoo 2023-08-11 23:47:18 +07:00
parent d09dbda153
commit d163ac8e1c
9 changed files with 341 additions and 1422 deletions

View file

@ -343,7 +343,7 @@ const previous = () => props.previous();
const $q = useQuasar();
const mixin = useCounterMixin(); //
const { dialogMessage, messageError, showLoader, hideLoader, success } = mixin;
const { dialogRemove, messageError, showLoader, hideLoader, success } = mixin;
const route = useRoute();
@ -598,22 +598,7 @@ const getClass = (val: boolean) => {
};
const clickClose = async () => {
// if (editRow.value == true) {
// dialogMessage(
// $q,
// "",
// "?",
// "mdi-help-circle-outline",
// "",
// "orange",
// () => (modal.value = false),
// undefined
// );
// } else {
modal.value = false;
// next.value = false;
// previous.value = false;
// }
};
const clickAdd = async () => {
@ -628,15 +613,9 @@ const clickAdd = async () => {
};
const clickDelete = (id: string) => {
dialogMessage(
dialogRemove(
$q,
"ยืนยันการลบข้อมูล",
"ต้องการลบข้อมูลนี้ใช่หรือไม่?",
"mdi-delete",
"ตกลง",
"red",
() => deleteData(id),
undefined
);
};