แก้ไข + เพิ่มเงื่อนไข ทะเบียนประวัติลูกจ้าง
This commit is contained in:
parent
735834fc4b
commit
7afbb2911a
2 changed files with 33 additions and 7 deletions
|
|
@ -245,7 +245,7 @@ export const useCounterMixin = defineStore("mixin", () => {
|
|||
|
||||
function dateToISO(date: Date) {
|
||||
if (date != null) {
|
||||
const srcDate = new Date(date)
|
||||
const srcDate = new Date(date);
|
||||
|
||||
return (
|
||||
srcDate.getFullYear() +
|
||||
|
|
@ -255,7 +255,7 @@ export const useCounterMixin = defineStore("mixin", () => {
|
|||
appendLeadingZeroes(srcDate.getDate())
|
||||
);
|
||||
} else {
|
||||
return ""
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -396,6 +396,22 @@ export const useCounterMixin = defineStore("mixin", () => {
|
|||
}
|
||||
};
|
||||
|
||||
const fails = (q: any, val: string) => {
|
||||
// useQuasar ไม่สามารถใช้นอกไฟล์ .vue
|
||||
if (val !== "") {
|
||||
return q.notify({
|
||||
message: val,
|
||||
color: "red",
|
||||
icon: "mdi-information",
|
||||
position: "bottom-right",
|
||||
multiLine: true,
|
||||
timeout: 1000,
|
||||
badgeColor: "positive",
|
||||
classes: "my-notif-class",
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
const dialogMessage = (
|
||||
// ไม่เอาใส่ undefined
|
||||
q: any,
|
||||
|
|
@ -818,5 +834,6 @@ export const useCounterMixin = defineStore("mixin", () => {
|
|||
dialogConfirm,
|
||||
dialogRemove,
|
||||
dialogMessageNotify,
|
||||
fails,
|
||||
};
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue