ปรับ card
This commit is contained in:
parent
d0f721253c
commit
87c06a680e
5 changed files with 69 additions and 52 deletions
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue