เพิ่มข้อความแจ้งเตือน เลือกคุณสมบัติ
This commit is contained in:
parent
c3191c2fb4
commit
ecaaacbe1d
4 changed files with 82 additions and 54 deletions
|
|
@ -853,6 +853,26 @@ export const useCounterMixin = defineStore("mixin", () => {
|
|||
});
|
||||
};
|
||||
|
||||
const dialogMessageNotify = (
|
||||
q: any,
|
||||
desc?: string, // ถ้ามี cancel action ใส่เป็น null
|
||||
cancel?: Function
|
||||
) => {
|
||||
q.dialog({
|
||||
component: CustomComponent,
|
||||
componentProps: {
|
||||
title: "ข้อความแจ้งเตือน",
|
||||
message: desc && desc != null ? desc : "กรุณากรอกข้อมูลให้ครบ",
|
||||
icon: "warning",
|
||||
color: "orange",
|
||||
textOk: "ตกลง",
|
||||
onlycancel: true,
|
||||
},
|
||||
}).onCancel(() => {
|
||||
if (cancel) cancel();
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* ฟังก์ชั่นเช็คและแปลงตัวเลขก่อนส่งไป convert เป็นข้อความที่ฟังก์ชั่น arabicNumberToText
|
||||
* @param Number จำนวนเงินเดือน
|
||||
|
|
@ -1043,6 +1063,7 @@ export const useCounterMixin = defineStore("mixin", () => {
|
|||
fails,
|
||||
dialogConfirm,
|
||||
dialogRemove,
|
||||
dialogMessageNotify,
|
||||
arabicNumberToText,
|
||||
calculateDurationYmd,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue