Commit 6abe54e0 authored by wangxl's avatar wangxl
parents f806c121 b0e2987a
...@@ -37,6 +37,19 @@ export default { ...@@ -37,6 +37,19 @@ export default {
budgetCategory: null, budgetCategory: null,
} }
}, },
watch: {
budgetType: {
immediate: true,
deep: true, // 加上 deep
handler(newVal) {
if (newVal) {
this.budgetCategory = newVal.type === 'HTTalent'
} else {
this.budgetCategory = null
}
}
}
},
created() { created() {
if (this.budgetType) { if (this.budgetType) {
if (this.budgetType.type === 'HTTalent') { if (this.budgetType.type === 'HTTalent') {
......
...@@ -537,6 +537,9 @@ export default { ...@@ -537,6 +537,9 @@ export default {
} }
}) })
}, },
FundChange () {
this.value.totalFund = this.value.applyFund + this.value.otherFund
},
talentCategoryHolder () { talentCategoryHolder () {
if (this.value.talentCategory === this.talentTraningInfo.HTTalent || if (this.value.talentCategory === this.talentTraningInfo.HTTalent ||
this.value.talentCategory === this.talentTraningInfo.RTTalent) { this.value.talentCategory === this.talentTraningInfo.RTTalent) {
...@@ -547,11 +550,6 @@ export default { ...@@ -547,11 +550,6 @@ export default {
this.talentTypeId = 16 this.talentTypeId = 16
} }
if (talentType)
this.formData.talentType = talentType
else
this.formData.talentType = []
this.processBudgetType() this.processBudgetType()
}, },
processBudgetType () { processBudgetType () {
......
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