Commit 8dd452d4 authored by 徐俊's avatar 徐俊

xujun

parent 6ec974ab
......@@ -225,7 +225,7 @@
<div class="special-middle">
<div>
<a-form-model-item prop="talentType">
<para-check v-model="formData.talentType" :typeId="16" :disabled="false" />
<para-check v-model="formData.talentType" :typeId="talentTypeId" :key="'talent-type-' + talentTypeId" :disabled="false" />
</a-form-model-item>
</div>
</div>
......@@ -894,6 +894,36 @@ export default {
FundChange() {
this.formData.totalFund = this.formData.applyFund + this.formData.otherFund
}
},
computed: {
talentTypeId() {
if (this.formData.talentCategory === '57de1220-ff12-11ef-b6cb-0c42a1380f01' ||
this.formData.talentCategory === '57de1220-ff12-11ef-b6cb-0c42a1380f03') {
return 23;
} else if (this.formData.talentCategory === '57de1220-ff12-11ef-b6cb-0c42a1380f02') {
return 16;
} else {
return 16;
}
}
},
watch: {
'formData.talentCategory': {
handler(newVal, oldVal) {
if (newVal !== oldVal) {
// 清空选择
this.formData.talentType = [];
// 添加一个短暂的延迟,确保组件有时间响应变化
// this.$nextTick(() => {
// // 可以在这里添加一些额外的逻辑,如果需要的话
// console.log('人才类别已更改为:', newVal);
// console.log('当前使用的 typeId:', this.talentTypeId);
// });
}
},
immediate: true
}
}
};
</script>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment