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
Unverified
Commit
f6e4753b
authored
Apr 07, 2024
by
芋道源码
Committed by
Gitee
Apr 07, 2024
Browse files
Options
Browse Files
Download
Plain Diff
!414 fix(role): add nextTick for open
Merge pull request !414 from AhJindeg/hotfix-role
parents
e8a3745b
b5fa1888
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
+3
-1
src/views/system/role/RoleDataPermissionForm.vue
+3
-1
No files found.
src/views/system/role/RoleDataPermissionForm.vue
View file @
f6e4753b
...
@@ -102,10 +102,12 @@ const open = async (row: RoleApi.RoleVO) => {
...
@@ -102,10 +102,12 @@ const open = async (row: RoleApi.RoleVO) => {
formData
.
name
=
row
.
name
formData
.
name
=
row
.
name
formData
.
code
=
row
.
code
formData
.
code
=
row
.
code
formData
.
dataScope
=
row
.
dataScope
formData
.
dataScope
=
row
.
dataScope
await
nextTick
()
row
.
dataScopeDeptIds
?.
forEach
((
deptId
:
number
):
void
=>
{
await
nextTick
()
await
nextTick
()
// 需要在 DOM 渲染完成后,再设置选中状态
// 需要在 DOM 渲染完成后,再设置选中状态
row
.
dataScopeDeptIds
?.
forEach
((
deptId
:
number
)
=>
{
row
.
dataScopeDeptIds
?.
forEach
((
deptId
:
number
)
:
void
=>
{
treeRef
.
value
.
setChecked
(
deptId
,
true
,
false
)
treeRef
.
value
.
setChecked
(
deptId
,
true
,
false
)
})
})
}
}
...
...
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