Merge pull request #1488 from Frappet/fix/formatDate

fix:convertDateToAPI
This commit is contained in:
Warunee Tamkoo 2025-10-21 21:22:44 +07:00 committed by GitHub
commit 8f53521403
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 42 additions and 13 deletions

View file

@ -20,7 +20,7 @@ const $q = useQuasar();
const router = useRouter();
const route = useRoute();
const mixin = useCounterMixin();
const { messageError, success, showLoader, hideLoader, onSearchDataTable } =
const { messageError, success, showLoader, hideLoader, onSearchDataTable,convertDateToAPI } =
mixin;
const initialPagination = ref<Pagination>({
@ -370,7 +370,7 @@ function onSubmitCandidates(date: Date) {
showLoader();
await http
.post(config.API.periodRecruitToPlacement(importId.value), {
accountStartDate: date,
accountStartDate: convertDateToAPI(date),
})
.then(() => {
success($q, "นำผู้ผ่านสอบแข่งขันเข้าสู่ระบบบรรจุ");