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
42237864
Commit
42237864
authored
Jun 01, 2020
by
徐一鸣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
角色管理交互
parent
5ba29670
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
9 deletions
+32
-9
src/pages/authority/roles.vue
src/pages/authority/roles.vue
+8
-6
src/pages/authority/users.vue
src/pages/authority/users.vue
+24
-3
No files found.
src/pages/authority/roles.vue
View file @
42237864
...
...
@@ -50,6 +50,12 @@ export default {
showDialog
()
{
this
.
$refs
.
dialog
.
show
();
},
editItem
(
item
)
{
this
.
$router
.
push
(
`/authority/roles/edit/
${
item
.
id
}
`
);
},
allotItem
(
item
)
{
this
.
$router
.
push
(
`/authority/roles/allot/
${
item
.
id
}
`
);
},
deleteItem
(
item
)
{
this
.
dialogInfo
.
title
=
""
;
this
.
dialogInfo
.
msg
=
"
确认删除当前角色
"
;
...
...
@@ -67,9 +73,7 @@ export default {
label
:
"
角色类型
"
,
prop
:
"
name
"
,
type
:
"
button
"
,
callback
(
item
)
{
console
.
log
(
"
查看详情 -
"
+
item
.
name
);
},
callback
:
this
.
editItem
,
},
{
label
:
"
创建人
"
,
...
...
@@ -91,9 +95,7 @@ export default {
actionList
:
[
{
label
:
"
分配权限
"
,
callback
(
item
)
{
console
.
log
(
"
分配权限 -
"
+
item
.
name
);
},
callback
:
this
.
allotItem
,
},
{
label
:
"
删除
"
,
...
...
src/pages/authority/users.vue
View file @
42237864
<
template
>
<div
class=
"users_list"
>
<apass-list
@
list-action=
"listAction"
search-placeholder=
"请输入关键字"
:list-total=
"listTotal"
@
list-action=
"initDatas"
>
<el-breadcrumb
separator=
"/"
slot=
"breadcrumb"
>
<el-breadcrumb-item
to=
"/authority"
>
权限管理
</el-breadcrumb-item>
...
...
@@ -185,8 +185,29 @@ export default {
showDialog
:
false
,
}),
methods
:
{
listAction
(
value
)
{
console
.
log
(
value
);
initDatas
(
filter
)
{
// console.log(filter);
this
.
$http
.
get
(
"
/apaas/backmgt/user/list
"
,
{
params
:
{
keyword
:
filter
.
keyword
,
limit
:
filter
.
page
,
page
:
filter
.
size
,
user_id
:
"
ym
"
,
user_name
:
""
,
department_id
:
""
,
state
:
1
,
},
})
.
then
(({
data
})
=>
{
console
.
log
(
data
);
// this.listTotal = data.data.total;
// this.listData = data.data.data;
})
.
catch
((
error
)
=>
{
console
.
log
(
error
);
});
},
setRole
(
item
)
{
console
.
log
(
"
setRole
"
+
item
.
name
);
...
...
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