注释用户信息 公司

This commit is contained in:
fan 2020-12-03 09:23:31 +08:00
parent cdbd7a0d5c
commit 338743036e

View File

@ -236,14 +236,14 @@
</div>
</div>
</div>
<div class="form_box">
<div class="title">单位:</div>
<div class="content_box_info">
<div v-show="companyShow" class="show_box">
<span>{{ handleCompany(userInfo.companyId) }}</span>
</div>
</div>
</div>
<!--<div class="form_box">-->
<!--<div class="title">单位:</div>-->
<!--<div class="content_box_info">-->
<!--<div v-show="companyShow" class="show_box">-->
<!--<span>{{ handleCompany(userInfo.companyId) }}</span>-->
<!--</div>-->
<!--</div>-->
<!--</div>-->
<div v-if="!wmOpenId" class="form_box">
<div class="title">绑定微信:</div>
<div class="content_box_info">
@ -398,11 +398,11 @@ export default {
.catch(error => {
console.log(error, '请求个人信息失败');
});
getCompanyList().then(resp => {
this.companyList = resp.data;
}).catch((error) => {
console.log(error, '获取公司列表信息失败');
});
// getCompanyList().then(resp => {
// this.companyList = resp.data;
// }).catch((error) => {
// console.log(error, '');
// });
},
doClose() {
this.visible = false;
@ -464,15 +464,15 @@ export default {
}
}
},
handleCompany(companyId) {
let name = '';
this.companyList.forEach(item => {
if (item.id == companyId) {
name = item.name;
}
});
return name;
},
// handleCompany(companyId) {
// let name = '';
// this.companyList.forEach(item => {
// if (item.id == companyId) {
// name = item.name;
// }
// });
// return name;
// },
switcherMobile() {
// this.editInfo.mobile = this.userInfo.mobile;
this.mobileShow = !this.mobileShow;