Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
front-backend
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
framework
front-backend
Commits
e55bc6c7
Commit
e55bc6c7
authored
Jun 22, 2020
by
ZhengJie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[缺陷修复](v2.5): 修复用户管理/角色管理/部门管理弹窗中三级部门不显示不显示的问题
parent
4e566ea6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
18 deletions
+39
-18
src/views/system/dept/index.vue
+13
-6
src/views/system/role/index.vue
+13
-6
src/views/system/user/index.vue
+13
-6
No files found.
src/views/system/dept/index.vue
View file @
e55bc6c7
...
@@ -166,12 +166,19 @@ export default {
...
@@ -166,12 +166,19 @@ export default {
},
},
getSupDepts
(
id
)
{
getSupDepts
(
id
)
{
crudDept
.
getDeptSuperior
(
id
).
then
(
res
=>
{
crudDept
.
getDeptSuperior
(
id
).
then
(
res
=>
{
this
.
depts
=
res
.
content
.
map
(
function
(
obj
)
{
const
date
=
res
.
content
if
(
obj
.
hasChildren
&&
!
obj
.
children
)
{
this
.
buildDepts
(
date
)
obj
.
children
=
null
this
.
depts
=
date
}
})
return
obj
},
})
buildDepts
(
depts
)
{
depts
.
forEach
(
data
=>
{
if
(
data
.
children
)
{
this
.
buildDepts
(
data
.
children
)
}
if
(
data
.
hasChildren
&&
!
data
.
children
)
{
data
.
children
=
null
}
})
})
},
},
getDepts
()
{
getDepts
()
{
...
...
src/views/system/role/index.vue
View file @
e55bc6c7
...
@@ -296,12 +296,19 @@ export default {
...
@@ -296,12 +296,19 @@ export default {
ids
.
push
(
dept
.
id
)
ids
.
push
(
dept
.
id
)
})
})
getDeptSuperior
(
ids
).
then
(
res
=>
{
getDeptSuperior
(
ids
).
then
(
res
=>
{
this
.
depts
=
res
.
content
.
map
(
function
(
obj
)
{
const
date
=
res
.
content
if
(
obj
.
hasChildren
&&
!
obj
.
children
)
{
this
.
buildDepts
(
date
)
obj
.
children
=
null
this
.
depts
=
date
}
})
return
obj
},
})
buildDepts
(
depts
)
{
depts
.
forEach
(
data
=>
{
if
(
data
.
children
)
{
this
.
buildDepts
(
data
.
children
)
}
if
(
data
.
hasChildren
&&
!
data
.
children
)
{
data
.
children
=
null
}
})
})
},
},
// 获取弹窗内部门数据
// 获取弹窗内部门数据
...
...
src/views/system/user/index.vue
View file @
e55bc6c7
...
@@ -409,12 +409,19 @@ export default {
...
@@ -409,12 +409,19 @@ export default {
},
},
getSupDepts
(
deptId
)
{
getSupDepts
(
deptId
)
{
getDeptSuperior
(
deptId
).
then
(
res
=>
{
getDeptSuperior
(
deptId
).
then
(
res
=>
{
this
.
depts
=
res
.
content
.
map
(
function
(
obj
)
{
const
date
=
res
.
content
if
(
obj
.
hasChildren
&&
!
obj
.
children
)
{
this
.
buildDepts
(
date
)
obj
.
children
=
null
this
.
depts
=
date
}
})
return
obj
},
})
buildDepts
(
depts
)
{
depts
.
forEach
(
data
=>
{
if
(
data
.
children
)
{
this
.
buildDepts
(
data
.
children
)
}
if
(
data
.
hasChildren
&&
!
data
.
children
)
{
data
.
children
=
null
}
})
})
},
},
// 获取弹窗内部门数据
// 获取弹窗内部门数据
...
...
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