Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
template_vue
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
胡宝山
template_vue
Commits
525338ab
Commit
525338ab
authored
May 22, 2024
by
高宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.重置密码
parent
56f2dce5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
10 deletions
+13
-10
index.vue
src/views/system/user/index.vue
+13
-10
No files found.
src/views/system/user/index.vue
View file @
525338ab
...
@@ -729,21 +729,24 @@ export default {
...
@@ -729,21 +729,24 @@ export default {
},
},
/** 修改按钮操作 */
/** 修改按钮操作 */
handleUpdate
(
row
)
{
handleUpdate
(
row
)
{
this
.
reset
()
const
userId
=
row
.
businessId
||
this
.
ids
const
userId
=
row
.
businessId
||
this
.
ids
getUser
(
userId
).
then
(
response
=>
{
getUser
(
userId
).
then
(
response
=>
{
this
.
title
=
'修改用户'
this
.
open
=
true
this
.
open
=
true
if
(
response
.
data
.
deptId
===
'0'
)
{
response
.
data
.
deptId
=
null
}
this
.
form
=
response
.
data
this
.
form
=
response
.
data
if
(
response
.
data
.
roleIds
&&
response
.
data
.
roleIds
!==
''
)
{
const
data
=
response
.
data
.
roleIds
.
split
(
','
)
const
data
=
response
.
data
.
roleIds
.
split
(
','
)
// TODO: clear this log
console
.
log
(
`data`
,
data
)
this
.
form
.
roleList
=
[]
this
.
form
.
roleList
=
[]
data
.
forEach
(
item
=>
{
data
.
forEach
(
item
=>
{
const
id
=
Number
(
item
)
const
id
=
Number
(
item
)
this
.
form
.
roleList
.
push
(
id
)
this
.
form
.
roleList
.
push
(
id
)
})
})
}
// this.form.postId = response.data.deptId
// this.form.postId = response.data.deptId
this
.
title
=
'修改'
})
})
this
.
getChildrenDept
(
userId
)
this
.
getChildrenDept
(
userId
)
},
},
...
...
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