ปรับ card

This commit is contained in:
setthawutttty 2024-03-14 12:07:00 +07:00
parent d0f721253c
commit 87c06a680e
5 changed files with 69 additions and 52 deletions

View file

@ -21,7 +21,7 @@ const effective = defineModel<Date | null | string>("effective", {
const isRead = defineModel<boolean>("isRead", { required: true });
const year = defineModel<number | null | string>("year");
const mixin = useCounterMixin();
const { dialogConfirm, date2Thai, messageError } = mixin;
const { dialogConfirm, date2Thai, messageError,success } = mixin;
const isReadonly = ref<boolean>(false); //
const effectiveDate = ref<Date | null>(null);
/** ตัวแปร validate */
@ -98,6 +98,7 @@ function editSummit() {
modal.value = false;
clearForm();
props.getData?.();
success($q,'บันทึกข้อมูลสำเร็จ')
})
.catch((e) => {
messageError($q, e);
@ -119,6 +120,7 @@ function onSubmit() {
.then((res) => {
modal.value = false;
clearForm();
success($q,'บันทึกข้อมูลสำเร็จ')
props.getData?.();
})
.catch((e) => {