diff --git a/src/modules/03_recruiting/components/Career.vue b/src/modules/03_recruiting/components/Career.vue index 0f4338186..206b83811 100644 --- a/src/modules/03_recruiting/components/Career.vue +++ b/src/modules/03_recruiting/components/Career.vue @@ -446,6 +446,7 @@ onMounted(async () => { const calDate = async () => { let _startDate = new Date(startDate.value.toISOString().substr(0, 10)); let _endDate = new Date(endDate.value.toISOString().substr(0, 10)); + _endDate.setDate(_endDate.getDate() + 1); if (_startDate > _endDate) { const swap = _startDate; _startDate = _endDate; diff --git a/src/modules/03_recruiting/components/TableCandidate.vue b/src/modules/03_recruiting/components/TableCandidate.vue index 39c1817d4..a4a08caef 100644 --- a/src/modules/03_recruiting/components/TableCandidate.vue +++ b/src/modules/03_recruiting/components/TableCandidate.vue @@ -137,9 +137,15 @@ :pagination-label="paginationLabel" :pagination="initialPagination" :rows-per-page-options="paging == true ? [25, 50, 100, 500] : []" + row-key="id" + selection="multiple" + v-model:selected="selected" > - @@ -180,6 +185,7 @@ const files = ref([]); const filterRef = ref(null); const examId = ref(route.params.examId.toString()); const candidateId = ref([]); +const selected = ref([]); const { messageError, showLoader, hideLoader } = mixin; const props = defineProps({ inputfilter: String, @@ -191,6 +197,10 @@ const props = defineProps({ type: Array, defualt: [], }, + selected: { + type: Array, + defualt: [], + }, boss: { type: Boolean, defualt: false, @@ -406,10 +416,14 @@ const downloadFileDetail = async () => { }; const checkCandidates = async () => { + var _selected = []; + selected.value.map((r: any) => { + _selected.push(r.id.toString()); + }); showLoader(); await http .post(config.API.candidateCheckRegisters, { - candidateId: candidateId.value, + candidateId: _selected, }) .then((res) => { success($q, "ตรวจสอบข้อมูลสำเร็จ"); @@ -466,18 +480,18 @@ const candidateCheckProfileDialog = async () => { "mdi-email-check-outline", "ยืนยัน", "public", - candidateCheckProfile, + checkCandidates, undefined ); }; -const candidateCheckProfile = async () => { - const filter = attrs.value.rows.filter((r: any) => r.check == true); - filter.map((r: any) => { - candidateId.value.push(r.id.toString()); - }); - await checkCandidates(); -}; +// const candidateCheckProfile = async () => { +// const filter = attrs.value.rows.filter((r: any) => r.check == true); +// filter.map((r: any) => { +// candidateId.value.push(r.id.toString()); +// }); +// await checkCandidates(); +// }; const resetFilter = () => { // reset ค่าที่ค้นหาเมื่อกดปุ่ม X ในกล่องค้นหา diff --git a/src/modules/03_recruiting/views/02_qualify/PeriodAdd.vue b/src/modules/03_recruiting/views/02_qualify/PeriodAdd.vue index 1f9a54df3..5fd1d5bd9 100644 --- a/src/modules/03_recruiting/views/02_qualify/PeriodAdd.vue +++ b/src/modules/03_recruiting/views/02_qualify/PeriodAdd.vue @@ -372,6 +372,21 @@ >