Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
op-web-service
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
bp
op-web-service
Commits
118e7eaf
Commit
118e7eaf
authored
Jun 10, 2021
by
lvweichao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: user info modal value
parent
64bceca9
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
7 deletions
+14
-7
UserInfoEditModal.vue
src/pages/User/userList/components/UserInfoEditModal.vue
+1
-1
UserInfoNewModal.vue
src/pages/User/userList/components/UserInfoNewModal.vue
+11
-4
index.vue
src/pages/User/userList/index.vue
+2
-2
No files found.
src/pages/User/userList/components/UserInfoEditModal.vue
View file @
118e7eaf
...
@@ -84,7 +84,7 @@ export default {
...
@@ -84,7 +84,7 @@ export default {
},
},
watch
:
{
watch
:
{
data
(
val
)
{
data
(
val
)
{
this
.
userInfo
=
val
;
this
.
userInfo
=
JSON
.
parse
(
JSON
.
stringify
(
val
))
;
this
.
userInfo
.
roles
=
val
.
roles
.
map
(
ele
=>
ele
.
role_id
);
this
.
userInfo
.
roles
=
val
.
roles
.
map
(
ele
=>
ele
.
role_id
);
this
.
userInfo
.
user_status
=
val
.
user_status
.
toString
();
this
.
userInfo
.
user_status
=
val
.
user_status
.
toString
();
this
.
userInfo
.
is_sensitive_authority
=
val
.
is_sensitive_authority
.
toString
();
this
.
userInfo
.
is_sensitive_authority
=
val
.
is_sensitive_authority
.
toString
();
...
...
src/pages/User/userList/components/UserInfoNewModal.vue
View file @
118e7eaf
...
@@ -87,12 +87,19 @@ export default {
...
@@ -87,12 +87,19 @@ export default {
}
}
},
},
watch
:
{
watch
:
{
data
(
val
)
{
this
.
userInfo
=
val
;
this
.
userInfo
.
roles
=
val
.
roles
.
map
(
ele
=>
ele
.
role_id
);
},
visable
(
val
)
{
visable
(
val
)
{
this
.
modalVisable
=
val
;
this
.
modalVisable
=
val
;
if
(
val
)
{
this
.
userInfo
=
{
user_name
:
''
,
user_email
:
''
,
is_sensitive_authority
:
'0'
,
user_mobile
:
''
,
roles
:
[],
user_status
:
'1'
,
organization
:
''
,
};
}
}
}
},
},
beforeMount
(){
beforeMount
(){
...
...
src/pages/User/userList/index.vue
View file @
118e7eaf
...
@@ -303,8 +303,8 @@ export default {
...
@@ -303,8 +303,8 @@ export default {
},
},
async
disableUser
(
row
)
{
async
disableUser
(
row
)
{
const
{
user_id
,
reason
}
=
row
;
const
{
user_id
}
=
row
;
const
{
code
}
=
await
reqEditUser
({
user_status
:
2
,
user_id
});
const
{
code
,
reason
}
=
await
reqEditUser
({
user_status
:
2
,
user_id
});
if
(
code
===
0
)
{
if
(
code
===
0
)
{
ElMessage
.
success
(
"禁用成功!"
);
ElMessage
.
success
(
"禁用成功!"
);
this
.
getUserList
();
this
.
getUserList
();
...
...
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