<el-form-item label="求职意向" prop="intentionId" :rules="[{ required: true, message: '求职意向不能为空' }]">
<el-select v-model="form.intentionId" @change="intentionChangeHandle">
<el-option v-for="(item, index) in state.jyyxDropDown" :key="index" :label="item.intentionJob" :value="item.id" />
</el-select>
</el-form-item>
const state = reactive({
dwhyDict: [],
hjjbDict: [],
jyyxDropDown: [],
jobCategory: []
})
onMounted(() => {
getDictDataApi({ code: 'dwhy' }).then((res) => {
state.dwhyDict = res.result ?? []
})
getDictDataApi({ code: 'hjjb' }).then((res) => {
state.hjjbDict = res.result ?? []
})
getEmploymentApi().then((res) => {
state.jyyxDropDown = res.result ?? []
})
})