|
@@ -38,11 +38,11 @@
|
|
|
:picker-options="pickerOptions"></el-date-picker>
|
|
:picker-options="pickerOptions"></el-date-picker>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item label="地址" prop="address" style="width: 160%">
|
|
<el-form-item label="地址" prop="address" style="width: 160%">
|
|
|
- <provincecity
|
|
|
|
|
|
|
+ <provincecity v-if="userForm.location!==null"
|
|
|
ref="addFormProvince"
|
|
ref="addFormProvince"
|
|
|
@selectChange="locationChange"
|
|
@selectChange="locationChange"
|
|
|
- :provinceCode="userForm.location.provinceCode!==''?userForm.location.provinceCode:'3200'"
|
|
|
|
|
- :cityCode="userForm.location.cityCode!==''?userForm.location.cityCode:'3201'"
|
|
|
|
|
|
|
+ :provinceCode="userForm.location!==null?userForm.location.provinceCode:'3200'"
|
|
|
|
|
+ :cityCode="userForm.location!==null?userForm.location.cityCode:'3201'"
|
|
|
></provincecity>
|
|
></provincecity>
|
|
|
<!-- :isModifyMode="!isModifyMode"-->
|
|
<!-- :isModifyMode="!isModifyMode"-->
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -65,7 +65,7 @@
|
|
|
import Apis from '@/js/api'
|
|
import Apis from '@/js/api'
|
|
|
import {notify} from '@/constants/index'
|
|
import {notify} from '@/constants/index'
|
|
|
import {storageGet,getAllServiceTypes,getProvinceNameByProvinceCode,getProvinceCodeByProvinceName} from '@/js/index'
|
|
import {storageGet,getAllServiceTypes,getProvinceNameByProvinceCode,getProvinceCodeByProvinceName} from '@/js/index'
|
|
|
- import provincecity from '@/components/commons/ProvinceCity'
|
|
|
|
|
|
|
+ import provincecity from '@/components/commons/NProvinceCity'
|
|
|
export default {
|
|
export default {
|
|
|
name: "Mine",
|
|
name: "Mine",
|
|
|
data() {
|
|
data() {
|
|
@@ -187,7 +187,7 @@
|
|
|
this.userForm.province = res.userVO.province ? res.userVO.province : '';
|
|
this.userForm.province = res.userVO.province ? res.userVO.province : '';
|
|
|
this.userForm.city = res.userVO.city ? res.userVO.city : '';
|
|
this.userForm.city = res.userVO.city ? res.userVO.city : '';
|
|
|
this.userForm.personalCompetence = res.userVO.personalCompetence ? res.userVO.personalCompetence : [];
|
|
this.userForm.personalCompetence = res.userVO.personalCompetence ? res.userVO.personalCompetence : [];
|
|
|
- this.location = getProvinceCodeByProvinceName(this.userForm.province, this.userForm.city);
|
|
|
|
|
|
|
+ this.userForm.location = getProvinceCodeByProvinceName(this.userForm.province, this.userForm.city);
|
|
|
this.userForm.province = this.location&&this.location.provinceCode;
|
|
this.userForm.province = this.location&&this.location.provinceCode;
|
|
|
this.userForm.city = this.location&&this.location.cityCode;
|
|
this.userForm.city = this.location&&this.location.cityCode;
|
|
|
})
|
|
})
|
|
@@ -203,9 +203,11 @@
|
|
|
|
|
|
|
|
},
|
|
},
|
|
|
mounted() {
|
|
mounted() {
|
|
|
- this.setUserInfo();
|
|
|
|
|
- this.setServiceType();
|
|
|
|
|
- this.loadData();
|
|
|
|
|
|
|
+ this.$nextTick(()=>{
|
|
|
|
|
+ this.setUserInfo();
|
|
|
|
|
+ this.setServiceType();
|
|
|
|
|
+ this.loadData();
|
|
|
|
|
+ })
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|