diff --git a/src/api/recruiting/api.period-exam.ts b/src/api/recruiting/api.period-exam.ts index d52f2df27..84b704fe8 100644 --- a/src/api/recruiting/api.period-exam.ts +++ b/src/api/recruiting/api.period-exam.ts @@ -91,4 +91,6 @@ export default { exportExamCandidateList: (id: string) => `${exam_report}candidate-exam/${id}`, exportExamPassExamList: (id: string) => `${exam_report}pass-exam/${id}`, periodExamToPlacement: (examId: string) => `${periodExam}placement/${examId}`, + + checkShowExaminfo: `${candidate}check-showExamInfo`, }; diff --git a/src/modules/03_recruiting/components/Contact.vue b/src/modules/03_recruiting/components/Contact.vue index 105c495d3..9a70275ca 100644 --- a/src/modules/03_recruiting/components/Contact.vue +++ b/src/modules/03_recruiting/components/Contact.vue @@ -60,6 +60,7 @@ const fetchData = async () => { const data = res.data.result; if (data != null) { defaultContact.value.contactPrefixId = data.contactPrefixId; + defaultContact.value.contactPrefixName = data.contactPrefix; defaultContact.value.contactFirstname = data.contactFirstname; defaultContact.value.contactLastname = data.contactLastname; defaultContact.value.contactRelations = data.contactRelations; @@ -78,6 +79,25 @@ const getClass = (val: boolean) => { "full-width cursor-pointer": !val, }; }; + +const filteredPrefixOptions = ref([]); + +const filterPrefix = (val: string, update: (fn: () => void) => void) => { + update(() => { + if (val === "") { + filteredPrefixOptions.value = []; + } else { + const needle = val.toLowerCase(); + filteredPrefixOptions.value = props.prefixOptions + .filter((v) => v.name.toLowerCase().indexOf(needle) > -1) + .map((v) => v.name); + } + }); +}; + +const setModel = (val: string) => { + defaultContact.value.contactPrefixName = val; +}; - +
{
(null); const examId = ref(route.params.examId.toString()); const visible = ref(false); //เปิดปิด card สรุปข้อมูล const dataNum = ref([]); //จำนวนสรุปจำนวนข้อมูลหลัก +const isFee = ref(false); const rows = ref([]); const visibleColumns = ref([ "no", @@ -279,6 +280,7 @@ async function fetchData(loading: boolean = true) { position: `${r.positionName}${r.positionLevelName}`, positionLevel: r.positionLevelName, check: false, + isShowExamInfo: r.isShowExamInfo, }); }); } @@ -303,6 +305,7 @@ async function fetchPeriodExam() { yearly.value = data.year; statusPayment.value = data.status; setSeat.value = data.setSeat; + isFee.value = data.fee === 0 ? false : true; }) .catch((e) => { messageError($q, e); @@ -489,10 +492,14 @@ onMounted(async () => { :page="page" @update:change-page="changePage" :max-page="maxPage" + :is-fee="isFee" >