|
@@ -38,8 +38,8 @@
|
|
|
<provincecity
|
|
|
ref="addFormProvince"
|
|
|
@selectChange="locationChange"
|
|
|
- :provinceCode="userForm.province==null?'3200':userForm.province"
|
|
|
- :cityCode="userForm.city===null?'3201':userForm.city"
|
|
|
+ :provinceCode="userForm.location==null?'3200':userForm.location.provinceCode"
|
|
|
+ :cityCode="userForm.location==null?'3201':userForm.location.cityCode"
|
|
|
></provincecity>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="个人能力" style="width: 160%">
|
|
@@ -92,6 +92,7 @@
|
|
|
},
|
|
|
//联系地址改变
|
|
|
locationChange (provinceId, cityId) {
|
|
|
+ console.log("aaa",provinceId,cityId)
|
|
|
if (provinceId || cityId) {
|
|
|
this.userForm.province = provinceId
|
|
|
this.userForm.city = cityId
|
|
@@ -151,6 +152,7 @@
|
|
|
console.log(location)
|
|
|
this.userForm.province = location.provinceCode;
|
|
|
this.userForm.city = location.cityCode;
|
|
|
+ this.userForm.location=location;
|
|
|
})
|
|
|
},
|
|
|
setUserInfo(){
|
|
@@ -173,6 +175,30 @@
|
|
|
</script>
|
|
|
|
|
|
<style scoped lang="less">
|
|
|
+ .avatar-uploader .el-upload {
|
|
|
+ //border: 1px dashed #d9d9d9;
|
|
|
+ border-radius: 6px;
|
|
|
+ cursor: pointer;
|
|
|
+ position: relative;
|
|
|
+ overflow: hidden;
|
|
|
+ margin-right: 30px;
|
|
|
+ }
|
|
|
+ .avatar-uploader .el-upload:hover {
|
|
|
+ border-color: #409EFF;
|
|
|
+ }
|
|
|
+ .avatar-uploader-icon {
|
|
|
+ font-size: 28px;
|
|
|
+ color: #8c939d;
|
|
|
+ width: 278px;
|
|
|
+ height: 178px;
|
|
|
+ line-height: 178px;
|
|
|
+ text-align: center;
|
|
|
+ }
|
|
|
+ .avatar {
|
|
|
+ width: 178px;
|
|
|
+ height: 178px;
|
|
|
+ display: block;
|
|
|
+ }
|
|
|
.right-mine {
|
|
|
padding: 20px;
|
|
|
background-color: rgba(255, 255, 255, 1);
|