|
@@ -171,22 +171,23 @@ export default {
|
|
|
},
|
|
},
|
|
|
onReady() {
|
|
onReady() {
|
|
|
this.$refs.uForm.setRules(this.rules);
|
|
this.$refs.uForm.setRules(this.rules);
|
|
|
- if(this.form.houseProvince === ''){
|
|
|
|
|
|
|
+ this.form = this.userInfo
|
|
|
|
|
+ if(this.form.houseProvince === ''||this.form.houseProvince == null){
|
|
|
this.form.houseProvince = '广东省'
|
|
this.form.houseProvince = '广东省'
|
|
|
}
|
|
}
|
|
|
- if(this.form.houseCity === ''){
|
|
|
|
|
|
|
+ if(this.form.houseCity === ''||this.form.houseCity == null){
|
|
|
this.form.houseCity = '广州市'
|
|
this.form.houseCity = '广州市'
|
|
|
}
|
|
}
|
|
|
- if(this.form.houseDistrict === ''){
|
|
|
|
|
|
|
+ if(this.form.houseDistrict === ''||this.form.houseDistrict == null){
|
|
|
this.form.houseDistrict = '天河区'
|
|
this.form.houseDistrict = '天河区'
|
|
|
}
|
|
}
|
|
|
- if(this.form.province === ''){
|
|
|
|
|
|
|
+ if(this.form.province === ''||this.form.province == null){
|
|
|
this.form.province = '广东省'
|
|
this.form.province = '广东省'
|
|
|
}
|
|
}
|
|
|
- if(this.form.city === ''){
|
|
|
|
|
|
|
+ if(this.form.city === ''||this.form.city == null){
|
|
|
this.form.city = '广州市'
|
|
this.form.city = '广州市'
|
|
|
}
|
|
}
|
|
|
- if(this.form.district === ''){
|
|
|
|
|
|
|
+ if(this.form.district === ''||this.form.district == null){
|
|
|
this.form.district = '天河区'
|
|
this.form.district = '天河区'
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
@@ -387,6 +388,7 @@ export default {
|
|
|
watch:{
|
|
watch:{
|
|
|
userInfo(val, oldVal){
|
|
userInfo(val, oldVal){
|
|
|
this.form = val
|
|
this.form = val
|
|
|
|
|
+ console.log(this.form,66)
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|