Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fns_backend
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Zhang Xiaojie
fns_backend
Commits
b23d0394
Commit
b23d0394
authored
Oct 13, 2021
by
lshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
账户信息展示
parent
ecd412dd
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
53 additions
and
4 deletions
+53
-4
index.ts
src/service/UserManagementService/index.ts
+2
-0
types.ts
src/utils/userMsg/types.ts
+2
-1
index.vue
src/views/Login/index.vue
+6
-2
changePhone.vue
src/views/Root/Security/changePhone.vue
+2
-0
index.vue
src/views/Root/index.vue
+41
-1
No files found.
src/service/UserManagementService/index.ts
View file @
b23d0394
...
...
@@ -26,6 +26,8 @@ export default class UserService {
verify_code
?:
string
})
{
return
baseAxios
<
{
location
:
string
user_name
:
string
accessToken
:
string
level
:
eLevel
phone
:
string
...
...
src/utils/userMsg/types.ts
View file @
b23d0394
...
...
@@ -2,9 +2,10 @@ import { eLevel } from '@/types/level'
import
{
eNewRoleRelatedToBackEnd
,
eRole
}
from
'@/types/role'
import
{
eUserType
}
from
'@/types/userType'
export
interface
iUserMsg
{
user_name
:
string
role
?:
eRole
token
:
string
location
:
string
phone
?:
string
level
:
eLevel
newRole
:
eNewRoleRelatedToBackEnd
...
...
src/views/Login/index.vue
View file @
b23d0394
...
...
@@ -235,8 +235,10 @@ export default Vue.extend({
});
console
.
log
(
ret
.
data
.
phone
);
if
(
ret
.
code
===
200
)
{
const
{
accessToken
,
level
,
phone
,
role
,
userType
}
=
ret
.
data
;
const
{
user_name
,
location
,
accessToken
,
level
,
phone
,
role
,
userType
}
=
ret
.
data
;
setUserMsg
({
user_name
:
user_name
,
location
:
location
,
token
:
accessToken
,
newRole
:
this
.
adminLogin
?
eNewRoleRelatedToBackEnd
.
PlatformAdmin
...
...
@@ -265,8 +267,10 @@ export default Vue.extend({
pwd
,
});
if
(
ret
.
code
===
200
)
{
const
{
accessToken
,
level
,
phone
,
role
,
userType
}
=
ret
.
data
;
const
{
user_name
,
location
,
accessToken
,
level
,
phone
,
role
,
userType
}
=
ret
.
data
;
setUserMsg
({
user_name
:
user_name
,
location
:
location
,
token
:
accessToken
,
newRole
:
this
.
adminLogin
?
eNewRoleRelatedToBackEnd
.
PlatformAdmin
...
...
src/views/Root/Security/changePhone.vue
View file @
b23d0394
...
...
@@ -261,6 +261,8 @@ export default Vue.extend({
this
.
userPhone
=
this
.
confrimPhoneForm
.
phone
;
const
{
...
iUserMsg
}
=
getUserMsg
();
setUserMsg
({
user_name
:
iUserMsg
.
user_name
,
location
:
iUserMsg
.
location
,
token
:
iUserMsg
.
token
,
newRole
:
iUserMsg
.
newRole
,
level
:
iUserMsg
.
level
,
...
...
src/views/Root/index.vue
View file @
b23d0394
...
...
@@ -13,9 +13,26 @@
</
template
>
-->
<div
class=
"flex justify-between items-center"
>
<img
class=
"w-5 h-7 mr-3"
src=
"@/assets/images/avatar.png"
alt=
"头像"
>
{{ phone }}
<span
@
click=
"isModal"
>
{{ phone }}
</span>
<span
class=
"inline-block ml-3 cursor-pointer"
@
click=
"logout"
>
退出
</span>
</div>
<a-modal
v-model=
"visible"
title=
"基本信息"
@
ok=
"handleOk"
>
<div
v-if=
"newRole=='银行管理员' || newRole=='客户经理岗' || newRole=='管理岗'"
>
<p>
姓名:{{roleName}}
</p>
<p>
岗位角色:{{newRole}}
</p>
<p>
手机号:{{rolePhone}}
</p>
<div
v-if=
"newRole=='客户经理岗' || newRole=='管理岗'"
>
<p>
所在层级:{{roleLevel}}
</p>
<p>
详细网点地址:{{roleLocation}}
</p>
</div>
</div>
<div
v-else-if=
"newRole=='平台管理员'"
>
<p>
岗位角色:{{newRole}}
</p>
<p>
手机号:{{rolePhone}}
</p>
</div>
</a-modal>
<!-- </a-popover> -->
</div>
</div>
...
...
@@ -83,6 +100,8 @@ import { getUserMsg } from "@/utils/userMsg/userMsg";
import
{
getOldRoleFromUserMsg
}
from
"@/utils/user"
;
import
UserService
from
'@/service/UserManagementService'
import
RouterUtil
from
"@/utils/router"
;
import
StaffService
from
"@/service/StaffService"
;
import
AddressService
from
"@/service/AddressService"
;
Vue
.
use
(
Menu
);
Vue
.
use
(
Icon
);
...
...
@@ -97,6 +116,13 @@ export default Vue.extend({
data
()
{
return
{
openKeys
:
[],
visible
:
false
,
roleName
:
''
,
newRole
:
''
,
rolePhone
:
''
,
roleLevel
:
''
,
roleLocation
:
''
,
};
},
mounted
()
{
...
...
@@ -127,6 +153,20 @@ export default Vue.extend({
}
},
methods
:
{
async
isModal
(){
const
msg
=
getUserMsg
()
this
.
roleName
=
getUserMsg
()?.
user_name
+
''
this
.
newRole
=
getUserMsg
()?.
newRole
+
''
this
.
rolePhone
=
getUserMsg
()?.
phone
+
''
if
(
this
.
newRole
===
'客户经理岗'
||
this
.
newRole
===
'管理岗'
){
this
.
roleLevel
=
getUserMsg
()?.
level
+
''
this
.
roleLocation
=
getUserMsg
()?.
location
+
''
}
this
.
visible
=
true
;
},
handleOk
()
{
this
.
visible
=
false
;
},
getMenuChildren
(
menu
:
iMenuItem
)
{
return
menu
.
children
||
[];
},
...
...
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