eva convertDate
This commit is contained in:
parent
bf067fd5c5
commit
6720b04fdd
3 changed files with 9 additions and 8 deletions
|
|
@ -11,7 +11,7 @@ import { useDisciplineSuspendStore } from "@/modules/11_discipline/store/Suspend
|
|||
|
||||
/**Import type */
|
||||
import type { QForm } from "quasar";
|
||||
import type { DataDetail } from "@/modules/11_discipline/interface/response/Suspend";
|
||||
import type { DataDetail } from "@/modules/11_discipline/interface/response/suspend";
|
||||
import type { DataProfile } from "@/modules/05_placement/interface/index/Main";
|
||||
|
||||
import PopupPersonal from "@/components/Dialogs/PopupPersonalNew.vue";
|
||||
|
|
|
|||
|
|
@ -85,12 +85,8 @@ function onSubmit(formData: FormData) {
|
|||
.put(config.API.meetingById(personalId.value), {
|
||||
round: formData.rounded ?? "",
|
||||
title: formData.title,
|
||||
dateStart: formData.dateMeetingStart
|
||||
? dateToISO(formData.dateMeetingStart)
|
||||
: null,
|
||||
dateEnd: formData.dateMeetingEnd
|
||||
? dateToISO(formData.dateMeetingEnd)
|
||||
: null,
|
||||
dateStart: formData.dateMeetingStart,
|
||||
dateEnd: formData.dateMeetingEnd,
|
||||
result: formData.consider,
|
||||
duration: formData.period,
|
||||
})
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@ const {
|
|||
date2Thai,
|
||||
hideLoader,
|
||||
dialogRemove,
|
||||
convertDatetimeToAPI,
|
||||
} = useCounterMixin();
|
||||
|
||||
/**
|
||||
|
|
@ -62,7 +63,11 @@ const fileDataDownload = ref<any>([]); ///รายการเอกสาร
|
|||
|
||||
/** บันทึกข้อมูล */
|
||||
function submit() {
|
||||
props.onSubmit(formData);
|
||||
props.onSubmit({
|
||||
...formData,
|
||||
dateMeetingStart: convertDatetimeToAPI(formData.dateMeetingStart),
|
||||
dateMeetingEnd: convertDatetimeToAPI(formData.dateMeetingEnd),
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue