Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
intelligent_qp_manager
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
张伯涛
intelligent_qp_manager
Commits
6f1db5ff
Commit
6f1db5ff
authored
Oct 28, 2024
by
张伯涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
用户模块bug修改
parent
e1fed686
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
AccountModal.vue
src/views/system/user/AccountModal.vue
+10
-6
No files found.
src/views/system/user/AccountModal.vue
View file @
6f1db5ff
...
...
@@ -41,12 +41,16 @@ const { createMessage } = useMessage();
UserDetailApi
(
rowId
.
value
).
then
(
res
=>
{
const
form
=
res
.
data
// 数据处理反显用户角色
const
roleData
=
res
.
data
.
roleIds
.
split
(
','
)
form
.
roleList
=
[]
roleData
.
forEach
(
item
=>
{
const
id
=
Number
(
item
)
form
.
roleList
.
push
(
id
)
})
if
(
res
.
data
.
roleIds
)
{
const
roleData
=
res
.
data
.
roleIds
.
split
(
','
)
form
.
roleList
=
[]
roleData
.
forEach
(
item
=>
{
const
id
=
Number
(
item
)
form
.
roleList
.
push
(
id
)
})
}
else
{
form
.
roleList
=
[]
}
// 塞值
setFieldsValue
({
...
form
,
...
...
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