@@ -235,6 +235,10 @@ const props = defineProps({
form: {
type: Object,
required: true
+ },
+ isStatusRegister: {
+ type: Boolean,
+ required: true
}
})
const emit = defineEmits(['update:form'])
diff --git a/src/modules/01_exam/components/Form/Career.vue b/src/modules/01_exam/components/Form/Career.vue
index 8fe8913..dbc7551 100644
--- a/src/modules/01_exam/components/Form/Career.vue
+++ b/src/modules/01_exam/components/Form/Career.vue
@@ -14,8 +14,8 @@
:addData="false"
:bottom="true"
:editBtn="false"
- :boss="status == 'register' || status == 'rejectRegister'"
- :editData="status == 'register' || status == 'rejectRegister'"
+ :boss="isStatusRegister"
+ :editData="isStatusRegister"
name="ประวัติการทำงาน (ตั้งแต่เริ่มปฏิบัติงานกับกรุงเทพมหานคร - ปัจจุบัน)"
icon="mdi-briefcase"
:is-showfilter="false"
@@ -247,7 +247,7 @@
:validate="validateData"
:clickNext="clickNext"
:clickPrevious="clickPrevious"
- :editData="status == 'register' || status == 'rejectRegister'"
+ :editData="isStatusRegister"
v-model:editvisible="edit"
v-model:next="next"
v-model:previous="previous"
@@ -281,6 +281,10 @@ const props = defineProps({
status: {
type: String,
required: true
+ },
+ isStatusRegister: {
+ type: Boolean,
+ required: true
}
})
diff --git a/src/modules/01_exam/components/Form/Contact.vue b/src/modules/01_exam/components/Form/Contact.vue
index 15a9365..3d5d508 100644
--- a/src/modules/01_exam/components/Form/Contact.vue
+++ b/src/modules/01_exam/components/Form/Contact.vue
@@ -12,9 +12,9 @@
,
required: true
+ },
+ isStatusRegister: {
+ type: Boolean,
+ required: true
}
})
const emit = defineEmits(['update:form'])
@@ -173,7 +177,7 @@ const fetchData = async () => {
defaultContact.value.contactlastname = data.contactLastname
defaultContact.value.contactrelations = data.contactRelations
defaultContact.value.contacttel = data.contactTel
- defaultContact.value.contactprefixName = data.contactPrefixName
+ defaultContact.value.contactprefixName = data.contactPrefix
}
})
.catch((e) => {
diff --git a/src/modules/01_exam/components/Form/Education.vue b/src/modules/01_exam/components/Form/Education.vue
index 2908722..0d50a2c 100644
--- a/src/modules/01_exam/components/Form/Education.vue
+++ b/src/modules/01_exam/components/Form/Education.vue
@@ -13,10 +13,10 @@
{{ year + 543 }}
@@ -109,12 +109,12 @@
,
required: true
+ },
+ educationLevelHigherOptions: {
+ type: Array as PropType,
+ required: true
+ },
+ isStatusRegister: {
+ type: Boolean,
+ required: true
}
})
diff --git a/src/modules/01_exam/components/Form/Information.vue b/src/modules/01_exam/components/Form/Information.vue
index 9c2b059..e480001 100644
--- a/src/modules/01_exam/components/Form/Information.vue
+++ b/src/modules/01_exam/components/Form/Information.vue
@@ -14,14 +14,14 @@
@@ -339,11 +339,11 @@
+
+
+
@@ -159,6 +155,10 @@ const props = defineProps({
form: {
type: Object,
required: true
+ },
+ isStatusRegister: {
+ type: Boolean,
+ required: true
}
})
const emit = defineEmits(['update:form'])
diff --git a/src/modules/01_exam/components/Form/Profile.vue b/src/modules/01_exam/components/Form/Profile.vue
index ff3a34a..a22b623 100644
--- a/src/modules/01_exam/components/Form/Profile.vue
+++ b/src/modules/01_exam/components/Form/Profile.vue
@@ -7,6 +7,7 @@
:provinceOptions="provinceOptions"
:status="status"
v-model:form="formInformation"
+ :isStatusRegister="isStatusRegister"
/>
@@ -19,29 +20,45 @@
-
+
-
+
-
+
@@ -91,6 +108,10 @@ const props = defineProps({
formContact: {
type: Object,
required: true
+ },
+ isStatusRegister: {
+ type: Boolean,
+ required: true
}
})
const emit = defineEmits([
@@ -111,6 +132,7 @@ const prefixOptions = ref([])
const religionOptions = ref([])
const provinceOptions = ref([])
const educationLevelOptions = ref([])
+const educationLevelHigherOptions = ref([])
const formInformation = ref({})
const formAddress = ref({})
const formEducation = ref({})
@@ -166,6 +188,8 @@ const fetchPerson = async () => {
provinceOptions.value = optionProvince
let optionEducationLevel: DataOption[] = []
+ let optionEducationLevelHigher: DataOption[] = []
+
let filterEducationLevels = data.educationLevels
if (examStore.educationLevel === 'BACHELOR') {
@@ -179,7 +203,12 @@ const fetchPerson = async () => {
filterEducationLevels.map((r: any) => {
optionEducationLevel.push({ id: r.id.toString(), name: r.name.toString() })
})
+
+ data.educationLevels.map((r: any) => {
+ optionEducationLevelHigher.push({ id: r.id.toString(), name: r.name.toString() })
+ })
educationLevelOptions.value = optionEducationLevel
+ educationLevelHigherOptions.value = optionEducationLevelHigher
})
.catch((e) => {
messageError($q, e)
diff --git a/src/modules/01_exam/store.ts b/src/modules/01_exam/store.ts
index 86c9c16..50510ad 100644
--- a/src/modules/01_exam/store.ts
+++ b/src/modules/01_exam/store.ts
@@ -31,6 +31,7 @@ export const useExamDataStore = defineStore('exam', () => {
const examInfo = ref()
const educationLevel = ref('')
+ const isShowExamInfo = ref(false)
const consend = ref(false)
const status = ref('')
@@ -57,6 +58,7 @@ export const useExamDataStore = defineStore('exam', () => {
status,
changeStatus,
examInfo,
- educationLevel
+ educationLevel,
+ isShowExamInfo
}
})
diff --git a/src/modules/01_exam/views/ExamDetail.vue b/src/modules/01_exam/views/ExamDetail.vue
index 88ae342..b6c6848 100644
--- a/src/modules/01_exam/views/ExamDetail.vue
+++ b/src/modules/01_exam/views/ExamDetail.vue
@@ -15,6 +15,7 @@
{{ `ครั้งที่${round}/${yearly == null ? '' : yearly + 543}` }}
-->
+
@@ -117,7 +120,7 @@