Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
罗超
SuperMan
Commits
126f0b32
Commit
126f0b32
authored
Mar 13, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
6973b11c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
16 deletions
+20
-16
AuthCode.js
src/assets/utils/AuthCode.js
+1
-1
personalCenter.vue
src/components/personalCenter.vue
+19
-15
No files found.
src/assets/utils/AuthCode.js
View file @
126f0b32
...
...
@@ -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
src/components/personalCenter.vue
View file @
126f0b32
...
...
@@ -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
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment