|
|
|
@ -1,7 +1,7 @@ |
|
|
|
|
<template> |
|
|
|
|
<div class="wrap"> |
|
|
|
|
<div class="header"> |
|
|
|
|
<el-avatar :size="80" :src="this.form.avatar" class="Headtop"></el-avatar> |
|
|
|
|
<el-avatar :size="80" :src="avatar" class="Headtop"></el-avatar> |
|
|
|
|
<div style="color:#9278FF;font-size:14px;font-family:MicrosoftYaHei;margin-top:5px;"> |
|
|
|
|
<el-upload |
|
|
|
|
class="upload-demo" |
|
|
|
@ -381,6 +381,7 @@ |
|
|
|
|
export default { |
|
|
|
|
data() { |
|
|
|
|
return { |
|
|
|
|
avatar: 'https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png', |
|
|
|
|
token: sessionStorage.getItem('token'), |
|
|
|
|
form: { |
|
|
|
|
name:'', |
|
|
|
@ -565,6 +566,7 @@ export default { |
|
|
|
|
}, |
|
|
|
|
//取得头像地址 |
|
|
|
|
getRes(res) { |
|
|
|
|
this.avatar = res.message |
|
|
|
|
this.$store.commit('userPhoto',{avatar:res.message}) |
|
|
|
|
}, |
|
|
|
|
getdata() { |
|
|
|
@ -574,9 +576,9 @@ export default { |
|
|
|
|
this.form = Object.assign(userInfo,res.result.userAccountList[0]) |
|
|
|
|
this.form.schoolId = schoolId |
|
|
|
|
this.form.accountId = userInfo.id |
|
|
|
|
console.log(11,this.form) |
|
|
|
|
this.originAccount = this.form.account |
|
|
|
|
this.archivesList = res.result.personalFileList |
|
|
|
|
if(userInfo.userAvatars) this.avatar = userInfo.userAvatars |
|
|
|
|
this.$nextTick(() => { |
|
|
|
|
if(this.form.provinceId){ |
|
|
|
|
this.getCityData(1) |
|
|
|
|