Commit 126f0b32 authored by 黄奎's avatar 黄奎

页面修改

parent 6973b11c
......@@ -11,6 +11,6 @@ var AuthCode = {
SupperOrderEdit:"SupperOrderEdit",//获取总经理副总经理超级修改权限
LookOrder:"LookOrder",//出纳查看订单权限
LookAllTeam:"LookAllTeam",//查看所有团控
V_PersonalCenter:"V_PersonalCenter",//个人中心导航查看权限
};
export default AuthCode;
\ No newline at end of file
......@@ -4,33 +4,27 @@
<div class="h-info-box">
<div class="h-info">
<div class="k">姓名</div>
<div class="v">{{u.emName}}</div>
<div class="v">{{CurrentUserInfo.emName}}</div>
<div class="k">职务</div>
<div class="v">{{u.PostName}}</div>
<div class="v">{{CurrentUserInfo.PostName}}</div>
</div>
<div class="h-img">
<div class="left-point-samll"></div>
<div class="right-point-samll"></div>
<img :src="u.Icon" :onerror="defaultHeadImg" />
<img :src="CurrentUserInfo.Icon" :onerror="defaultHeadImg" />
</div>
</div>
<div class="u-info">
<div class="item">
<span class="k">所属公司</span>
<span class="v">{{u.BranchName}}</span>
<span class="v">{{CurrentUserInfo.BranchName}}</span>
</div>
<div class="item">
<span class="k">所属部门</span>
<span class="v">{{u.DepartName}}</span>
<span class="v">{{CurrentUserInfo.DepartName}}</span>
</div>
<!-- <div class="item">
<span class="k">工作年限</span>
<span class="v">
<span style="font-size:22px">2年</span> (900天)
</span>
</div> -->
</div>
<div class="n-info">
<div class="n-info" v-if="CurrentUserInfo.RB_Group_id==2 || EditBtn">
<div class="item" @click="changeBoard(0)">
<i class="iconfont icon-yichuheimingdan"></i>
<span class="n-name">个人首页</span>
......@@ -114,12 +108,13 @@ import personnelManagement from './activity/PersonnelManagement'
export default {
data() {
return {
u: {},
CurrentUserInfo: {},
defaultHeadImg: `this.src="${require("../assets/img/default_head_img.jpg")}"`,
zoomH: 1,
NotDealCount: 0,
MyAuditCount: 0,
boardIndex:0
boardIndex:0,
EditBtn:false,
};
},
components: {
......@@ -128,12 +123,21 @@ export default {
personnelManagement
},
mounted() {
this.u = this.getLocalStorage();
this.GetAuth();
this.CurrentUserInfo = this.getLocalStorage();
this.zoomH = (document.documentElement.clientHeight / 969).toFixed(2);
this.getNotDealCount();
this.myAuditCount();
},
methods: {
GetAuth() {
var actionCode = this.$AuthCode.V_PersonalCenter;
this.CheckUserAuth(actionCode, res => {
if (res.data.resultCode == 1 && res.data.data == 1) {
this.EditBtn = true;
}
});
},
changeBoard(index){
this.boardIndex=index
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment