【update】会议报名编辑页面数据的回显
This commit is contained in:
@@ -36,6 +36,12 @@ export default {
|
||||
valueKey: {
|
||||
type: String,
|
||||
default: 'companyName'
|
||||
},
|
||||
// 是否返回企业的全部信息,如果是 则再change方法中以第二个参数返回
|
||||
fullCompanyInfo: {
|
||||
type: Boolean,
|
||||
required: false,
|
||||
default: false
|
||||
}
|
||||
},
|
||||
components: {
|
||||
@@ -70,7 +76,11 @@ export default {
|
||||
* */
|
||||
setCompanyVal(selectedVal) {
|
||||
let {id, companyName} = selectedVal
|
||||
this.$emit('change', {id, companyName})
|
||||
if(this.fullCompanyInfo) {
|
||||
this.$emit('change', {id, companyName}, {...selectedVal})
|
||||
} else {
|
||||
this.$emit('change', {id, companyName})
|
||||
}
|
||||
}
|
||||
},
|
||||
model: {
|
||||
|
||||
Reference in New Issue
Block a user