Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
9
91isoft_sys_web
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
张伯涛
91isoft_sys_web
Commits
508ae22d
Commit
508ae22d
authored
Jul 08, 2022
by
zhuangxinwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
7d2558af
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
index.vue
src/views/system/role/index.vue
+11
-11
No files found.
src/views/system/role/index.vue
View file @
508ae22d
...
...
@@ -228,14 +228,14 @@
<el-form-item
v-show=
"formDeptData.dataScope === '2'"
label=
"数据权限"
>
<el-checkbox
v-model=
"deptExpand"
@
change=
"handleCheckedTreeExpand($event, 'dept')"
>
展开/折叠
</el-checkbox>
<el-checkbox
v-model=
"deptNodeAll"
@
change=
"handleCheckedTreeNodeAll($event, 'dept')"
>
全选/全不选
</el-checkbox>
<el-checkbox
v-model=
"formDeptData.deptCheckStrictly"
@
change=
"handleCheckedTreeConnect($event, 'dept')"
>
父子联动
</el-checkbox>
<el-checkbox
v-model=
"formDeptData.deptCheckStrictly
One
"
@
change=
"handleCheckedTreeConnect($event, 'dept')"
>
父子联动
</el-checkbox>
<el-tree
ref=
"dept"
node-key=
"id"
class=
"tree-border"
:data=
"deptOptions"
:expand-on-click-node=
"false"
:check-strictly=
"!formDeptData.deptCheckStrictly"
:check-strictly=
"!formDeptData.deptCheckStrictly
One
"
show-checkbox
:filter-node-method=
"filterNode"
default-expand-all
...
...
@@ -368,7 +368,7 @@ export default {
label
:
''
,
dataScope
:
''
,
deptIdList
:
[],
deptCheckStrictly
:
false
,
deptCheckStrictly
One
:
false
,
menuCheckStrictly
:
false
},
defaultProps
:
{
...
...
@@ -413,9 +413,9 @@ export default {
nodeClick
(
data
)
{
this
.
idList
=
[]
this
.
getIdList
(
data
.
id
,
'idList'
)
this
.
getIdList
(
data
.
id
,
'deptCheckStrictly'
)
this
.
getIdList
(
data
.
id
,
'deptCheckStrictly
One
'
)
this
.
pushData
()
this
.
formDeptData
.
deptCheckStrictly
=
false
this
.
formDeptData
.
deptCheckStrictly
One
=
false
if
(
!
data
.
disabled
)
{
this
.
formDeptData
.
label
=
data
.
label
this
.
formDeptData
.
dataScope
=
data
.
dataScope
...
...
@@ -423,7 +423,7 @@ export default {
console
.
log
(
this
.
menuCheckStrictly
)
this
.
$refs
.
dept
.
setCheckedKeys
([])
this
.
$refs
.
dept
.
setCheckedKeys
(
this
.
idList
)
this
.
formDeptData
.
deptCheckStrictly
=
this
.
menuCheckStrictly
this
.
formDeptData
.
deptCheckStrictly
One
=
this
.
menuCheckStrictly
})
this
.
formDeptData
.
id
=
data
.
id
}
...
...
@@ -439,8 +439,8 @@ export default {
case
'idList'
:
this
.
idList
=
data
.
deptIdList
break
case
'deptCheckStrictly'
:
this
.
menuCheckStrictly
=
data
.
deptCheckStrictly
case
'deptCheckStrictly
One
'
:
this
.
menuCheckStrictly
=
data
.
deptCheckStrictly
One
break
}
}
...
...
@@ -459,7 +459,7 @@ export default {
if
(
data
.
id
===
this
.
formDeptData
.
id
)
{
data
.
dataScope
=
this
.
formDeptData
.
dataScope
data
.
deptIdList
=
this
.
getDeptAllCheckedKeys
()
data
.
deptCheckStrictly
=
this
.
formDeptData
.
deptCheckStrictly
data
.
deptCheckStrictly
One
=
this
.
formDeptData
.
deptCheckStrictlyOne
}
if
(
'children'
in
data
)
{
data
.
children
.
forEach
(
item
=>
{
...
...
@@ -535,7 +535,7 @@ export default {
/** 根据角色ID和菜单ID查询部门树结构 */
getRoleDeptTreeselect
(
roleId
,
menuId
)
{
return
roleDeptTreeselect
(
roleId
,
menuId
).
then
(
response
=>
{
this
.
form
.
deptCheckStrictly
=
response
.
data
.
deptCheckStrictly
this
.
form
.
deptCheckStrictly
One
=
response
.
data
.
deptCheckStrictlyOne
this
.
deptOptions
=
response
.
data
.
depts
this
.
form
.
dataScope
=
this
.
dataScopeOptions
[
response
.
data
.
dataScope
-
1
].
value
return
response
...
...
@@ -616,7 +616,7 @@ export default {
if
(
type
===
'menu'
)
{
this
.
form
.
menuCheckStrictly
=
!!
value
}
else
if
(
type
===
'dept'
)
{
this
.
formDeptData
.
deptCheckStrictly
=
!!
value
this
.
formDeptData
.
deptCheckStrictly
One
=
!!
value
}
},
// 树权限(全选/全不选)
...
...
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