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
36928608
Commit
36928608
authored
Jan 31, 2020
by
华国豪
🙄
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/luochao/superman
parents
1ae7afdf
8d75d7fb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
1 deletion
+24
-1
workManager.vue
src/components/work/workManager.vue
+24
-1
No files found.
src/components/work/workManager.vue
View file @
36928608
...
...
@@ -305,7 +305,8 @@ export default {
}
});
this
.
employeeMsg
.
RB_Branch_id
=
this
.
userInfo
.
RB_Branch_id
;
this
.
msg
.
RB_Department_Id
=
this
.
userInfo
.
RB_Branch_id
;
this
.
msg
.
BranchId
=
this
.
userInfo
.
RB_Branch_id
;
this
.
linkageDepartment
();
this
.
getEmployee
();
}
else
{
this
.
companyList
=
res
.
data
.
data
;
...
...
@@ -339,6 +340,10 @@ export default {
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
departmentList
=
res
.
data
.
data
;
if
(
res
.
data
.
data
&&
res
.
data
.
data
.
length
>
0
){
this
.
findMyDepartment
(
res
.
data
.
data
[
0
]);
}
console
.
log
(
this
.
departmentList
);
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
...
...
@@ -346,6 +351,24 @@ export default {
err
=>
{}
);
},
findMyDepartment
(
data
){
console
.
log
(
data
)
if
(
data
.
DepartmentId
==
this
.
userInfo
.
RB_Department_Id
){
console
.
log
(
'yes'
,
data
)
this
.
changeDeparent
(
data
)
}
else
{
if
(
data
.
ChildList
&&
data
.
ChildList
.
length
>
0
)
{
data
.
ChildList
.
forEach
(
x
=>
{
this
.
findMyDepartment
(
x
)
});
}
}
},
changeDeparent
(
data
){
let
newDt
=
new
Array
();
newDt
.
push
(
data
)
this
.
departmentList
=
newDt
;
},
getEmployee
()
{
this
.
apipost
(
"app_get_company_employee"
,
...
...
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