Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
4c0a5e8c
authored
Mar 10, 2024
by
moon69
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复数据权限无法回显的问题
parent
0230a4af
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
src/views/system/role/RoleDataPermissionForm.vue
+4
-5
No files found.
src/views/system/role/RoleDataPermissionForm.vue
View file @
4c0a5e8c
...
...
@@ -102,12 +102,11 @@ const open = async (row: RoleApi.RoleVO) => {
formData
.
name
=
row
.
name
formData
.
code
=
row
.
code
formData
.
dataScope
=
row
.
dataScope
await
nextTick
()
// 需要在 DOM 渲染完成后,再设置选中状态
nextTick
(()
=>
{
row
.
dataScopeDeptIds
?.
forEach
((
deptId
:
number
)
=>
{
treeRef
.
value
.
setChecked
(
deptId
,
true
,
false
)
})
row
.
dataScopeDeptIds
?.
forEach
((
deptId
:
number
)
=>
{
treeRef
.
value
.
setChecked
(
deptId
,
true
,
false
)
})
}
defineExpose
({
open
})
// 提供 open 方法,用于打开弹窗
...
...
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