- add common dialog (remove, confirm & message notify) และลองใช้ในส่วนของออกคำสั่ง
- เพิ่ม action สร้างข้อมูลทุกอันที่ส่งจากทะเบียนประวัติ - fix bug call function in certificate
This commit is contained in:
parent
d09dbda153
commit
d163ac8e1c
9 changed files with 341 additions and 1422 deletions
|
|
@ -125,7 +125,7 @@ import config from "@/app.config";
|
|||
|
||||
const $q = useQuasar(); //ใช้ noti quasar
|
||||
const mixin = useCounterMixin();
|
||||
const { showLoader, hideLoader, messageError, date2Thai, dateText, success, dialogMessage } =
|
||||
const { showLoader, hideLoader, messageError, date2Thai, dateText, success, dialogRemove } =
|
||||
mixin;
|
||||
const DataStore = useOrderPlacementDataStore();
|
||||
|
||||
|
|
@ -314,15 +314,9 @@ const redirectToPage = (id?: string, status?: string) => {
|
|||
};
|
||||
|
||||
const clickDelete = (id: string) => {
|
||||
dialogMessage(
|
||||
dialogRemove(
|
||||
$q,
|
||||
"ยืนยันการลบข้อมูล",
|
||||
"ต้องการลบข้อมูลนี้ใช่หรือไม่?",
|
||||
"mdi-delete",
|
||||
"ตกลง",
|
||||
"red",
|
||||
() => deleteData(id),
|
||||
undefined
|
||||
);
|
||||
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue