Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
apaas-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gzga-jzapi
apaas-ui
Commits
6365c2e8
Commit
6365c2e8
authored
Jun 30, 2020
by
徐一鸣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分配角色优化
parent
44f0d35f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
src/pages/authority/user/userRoles.vue
src/pages/authority/user/userRoles.vue
+5
-4
No files found.
src/pages/authority/user/userRoles.vue
View file @
6365c2e8
...
@@ -128,6 +128,7 @@ export default {
...
@@ -128,6 +128,7 @@ export default {
setUserRoles
()
{
setUserRoles
()
{
let
add
=
[];
let
add
=
[];
let
remove
=
[];
let
remove
=
[];
let
requests
=
[];
this
.
roles
.
forEach
((
item
)
=>
{
this
.
roles
.
forEach
((
item
)
=>
{
if
(
this
.
userRoles
.
indexOf
(
item
)
===
-
1
)
{
if
(
this
.
userRoles
.
indexOf
(
item
)
===
-
1
)
{
...
@@ -141,8 +142,6 @@ export default {
...
@@ -141,8 +142,6 @@ export default {
}
}
});
});
let
requests
=
[];
if
(
add
.
length
>
0
)
{
if
(
add
.
length
>
0
)
{
requests
.
push
(
requests
.
push
(
this
.
$http
.
post
(
`/apaas/backmgt/user/addRole`
,
{
this
.
$http
.
post
(
`/apaas/backmgt/user/addRole`
,
{
...
@@ -168,6 +167,10 @@ export default {
...
@@ -168,6 +167,10 @@ export default {
message
:
`分配角色成功.`
,
message
:
`分配角色成功.`
,
type
:
"
success
"
,
type
:
"
success
"
,
});
});
setTimeout
(()
=>
{
this
.
$router
.
push
(
"
/authority/users
"
);
},
200
);
})
})
.
catch
((
error
)
=>
{
.
catch
((
error
)
=>
{
this
.
$message
({
this
.
$message
({
...
@@ -181,8 +184,6 @@ export default {
...
@@ -181,8 +184,6 @@ export default {
type
:
"
warning
"
,
type
:
"
warning
"
,
});
});
}
}
// this.$router.push("/authority/users");
},
},
},
},
};
};
...
...
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