Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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
罗超
confucius
Commits
a41bce05
Commit
a41bce05
authored
Jul 02, 2021
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
aca5de07
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
10 deletions
+36
-10
MainLayout.vue
src/layouts/MainLayout.vue
+8
-1
personalData.vue
src/pages/user/personalData.vue
+28
-9
No files found.
src/layouts/MainLayout.vue
View file @
a41bce05
...
...
@@ -178,7 +178,14 @@
if
(
this
.
userInfo
&&
this
.
userInfo
.
MenuList
)
{
this
.
secondNavs
=
this
.
userInfo
.
MenuList
.
length
>
0
?
this
.
userInfo
.
MenuList
[
i
].
SubList
:
[]
}
this
.
MsgBus
.
$on
(
'add'
,(
payload
)
=>
{
let
that
=
this
that
.
userInfo
.
AccountName
=
payload
.
EmployeeName
that
.
userInfo
.
UserIcon
=
payload
.
UserIcon
that
.
userInfo
.
Email
=
payload
.
Email
that
.
userInfo
.
SchoolName
=
payload
.
SchoolName
});
this
.
getLogList
();
this
.
getMsg
();
},
...
...
src/pages/user/personalData.vue
View file @
a41bce05
...
...
@@ -249,11 +249,6 @@
getBranchList
()
{
//获取校区
getSchoolDropdown
({}).
then
(
res
=>
{
this
.
CompanyList
=
res
.
Data
;
var
obj
=
{
SName
:
'全部'
,
SId
:
0
}
this
.
CompanyList
.
unshift
(
obj
);
}).
catch
(()
=>
{
})
...
...
@@ -310,7 +305,6 @@
return
}
setEmployeeBaseInfo
(
this
.
datamodify
).
then
(
res
=>
{
console
.
log
(
res
)
if
(
res
.
Code
==
1
)
{
this
.
$q
.
notify
({
type
:
'iconfont icon-chenggong'
,
...
...
@@ -325,12 +319,23 @@
this
.
showObj
.
UserMobile
=
this
.
datamodify
.
EmployeeTel
this
.
showObj
.
Email
=
this
.
datamodify
.
Email
this
.
showObj
.
School_Id
=
this
.
datamodify
.
School_Id
this
.
CompanyList
.
map
(
x
=>
{
if
(
x
.
SId
==
this
.
datamodify
.
School_Id
){
this
.
showObj
.
SchoolName
=
x
.
SName
;
return
}
})
let
localStorageobj
=
{
data
:
this
.
showObj
}
localStorage
.
setItem
(
"loginUserInfo"
,
JSON
.
stringify
(
localStorageobj
)
);
location
.
reload
();
let
obj
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
datamodify
))
obj
.
SchoolName
=
this
.
showObj
.
SchoolName
setTimeout
(()
=>
{
this
.
MsgBus
.
$emit
(
'add'
,
obj
);
},
10
);
}
}).
catch
(()
=>
{
...
...
@@ -354,7 +359,21 @@
position
:
"top"
,
message
:
res
.
Message
})
this
.
passwordMsg
=
Object
.
assign
({},
defaultpassword
)
// this.passwordMsg = Object.assign({},defaultpassword)
this
.
$q
.
dialog
({
title
:
'功能提示'
,
message
:
'密码修改需重新登录'
,
persistent
:
true
}).
onOk
(()
=>
{
this
.
$store
.
dispatch
(
'LogOut'
)
.
then
(()
=>
{
this
.
$router
.
push
(
'/login'
)
})
.
catch
((
e
)
=>
{
})
});
}
}).
catch
(()
=>
{
...
...
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