ตรวจสอบคุณสมบัติ ประเมิน

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-01-08 15:00:09 +07:00
parent 5686d287c5
commit 971a9be260
2 changed files with 9 additions and 1 deletions

View file

@ -636,6 +636,7 @@ onMounted(async () => {
v-if="store.step === 1"
@update:spec="updateCheckSpec"
:data="formDataStep1"
:educations="formDetail?.educations"
/>
<Step2
v-if="store.step === 2"

View file

@ -23,6 +23,7 @@ const props = defineProps({
},
});
const education = ref<any>();
const emit = defineEmits(["update:spec"]);
const modal = ref<boolean>(false);
@ -74,6 +75,12 @@ function closeModal() {
/**hook lifecycle*/
onMounted(() => {
props.data && fetchCheckSpec(props.data);
setTimeout(() => {
education.value = props.educations
? props.educations
: props.data?.educations;
}, 100);
});
</script>
@ -216,7 +223,7 @@ onMounted(() => {
:modal="modal"
:show="show"
:close-modal="closeModal"
:educations="educations"
:educations="education"
/>
</template>