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 @@
...
@@ -178,7 +178,14 @@
if
(
this
.
userInfo
&&
this
.
userInfo
.
MenuList
)
{
if
(
this
.
userInfo
&&
this
.
userInfo
.
MenuList
)
{
this
.
secondNavs
=
this
.
userInfo
.
MenuList
.
length
>
0
?
this
.
userInfo
.
MenuList
[
i
].
SubList
:
[]
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
.
getLogList
();
this
.
getMsg
();
this
.
getMsg
();
},
},
...
...
src/pages/user/personalData.vue
View file @
a41bce05
...
@@ -249,11 +249,6 @@
...
@@ -249,11 +249,6 @@
getBranchList
()
{
//获取校区
getBranchList
()
{
//获取校区
getSchoolDropdown
({}).
then
(
res
=>
{
getSchoolDropdown
({}).
then
(
res
=>
{
this
.
CompanyList
=
res
.
Data
;
this
.
CompanyList
=
res
.
Data
;
var
obj
=
{
SName
:
'全部'
,
SId
:
0
}
this
.
CompanyList
.
unshift
(
obj
);
}).
catch
(()
=>
{
}).
catch
(()
=>
{
})
})
...
@@ -310,7 +305,6 @@
...
@@ -310,7 +305,6 @@
return
return
}
}
setEmployeeBaseInfo
(
this
.
datamodify
).
then
(
res
=>
{
setEmployeeBaseInfo
(
this
.
datamodify
).
then
(
res
=>
{
console
.
log
(
res
)
if
(
res
.
Code
==
1
)
{
if
(
res
.
Code
==
1
)
{
this
.
$q
.
notify
({
this
.
$q
.
notify
({
type
:
'iconfont icon-chenggong'
,
type
:
'iconfont icon-chenggong'
,
...
@@ -325,12 +319,23 @@
...
@@ -325,12 +319,23 @@
this
.
showObj
.
UserMobile
=
this
.
datamodify
.
EmployeeTel
this
.
showObj
.
UserMobile
=
this
.
datamodify
.
EmployeeTel
this
.
showObj
.
Email
=
this
.
datamodify
.
Email
this
.
showObj
.
Email
=
this
.
datamodify
.
Email
this
.
showObj
.
School_Id
=
this
.
datamodify
.
School_Id
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
=
{
let
localStorageobj
=
{
data
:
this
.
showObj
data
:
this
.
showObj
}
}
localStorage
.
setItem
(
"loginUserInfo"
,
JSON
.
stringify
(
localStorageobj
)
);
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
(()
=>
{
}).
catch
(()
=>
{
...
@@ -354,7 +359,21 @@
...
@@ -354,7 +359,21 @@
position
:
"top"
,
position
:
"top"
,
message
:
res
.
Message
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
(()
=>
{
}).
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