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; +};