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
b6c50c16
Commit
b6c50c16
authored
Jun 01, 2020
by
徐一鸣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
角色管理页面
parent
31446602
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
137 additions
and
4 deletions
+137
-4
src/pages/authority/roles.vue
src/pages/authority/roles.vue
+136
-3
src/pages/authority/users.vue
src/pages/authority/users.vue
+1
-1
No files found.
src/pages/authority/roles.vue
View file @
b6c50c16
<
template
>
<div></div>
<
template
>
<div
class=
"roles_list"
>
<apass-list
@
list-action=
"listAction"
search-placeholder=
"请输入关键字"
:list-header=
"listHeader"
:list-data=
"listData"
:list-total=
"listTotal"
>
<el-breadcrumb
separator=
"/"
slot=
"breadcrumb"
>
<el-breadcrumb-item
to=
"/authority"
>
权限管理
</el-breadcrumb-item>
<el-breadcrumb-item>
角色管理
</el-breadcrumb-item>
</el-breadcrumb>
<template
slot=
"header-left"
>
<el-button
type=
"primary"
@
click=
"$router.push('/authority/roles/add')"
>
新建角色
</el-button>
</
template
>
</apass-list>
<apass-dialog
ref=
"dialog"
:title=
"dialogInfo.title"
:msg=
"dialogInfo.msg"
:submit=
"dialogInfo.submit"
></apass-dialog>
</div>
</template>
<
script
>
import
apassList
from
"
@/components/apass-list
"
;
import
apassDialog
from
"
@/components/apass-dialog
"
;
export
default
{
methods
:
{}
components
:
{
apassList
,
apassDialog
},
data
:
()
=>
({
dialogInfo
:
{
title
:
""
,
msg
:
""
,
submit
:
null
,
},
listTotal
:
300
,
listHeader
:
[],
listData
:
[],
}),
methods
:
{
listAction
(
value
)
{
console
.
log
(
value
);
},
showDialog
()
{
this
.
$refs
.
dialog
.
show
();
},
deleteItem
(
item
)
{
this
.
dialogInfo
.
title
=
""
;
this
.
dialogInfo
.
msg
=
"
确认删除当前角色
"
;
this
.
dialogInfo
.
cancelText
=
""
;
this
.
dialogInfo
.
sunbmitText
=
""
;
this
.
dialogInfo
.
submit
=
()
=>
{
console
.
log
(
"
deleteItem -
"
+
item
.
name
);
};
this
.
showDialog
();
},
},
mounted
()
{
this
.
listHeader
=
[
{
label
:
"
角色类型
"
,
prop
:
"
name
"
,
type
:
"
button
"
,
callback
(
item
)
{
console
.
log
(
"
查看详情 -
"
+
item
.
name
);
},
},
{
label
:
"
创建人
"
,
prop
:
"
creator
"
,
type
:
""
,
align
:
"
center
"
,
},
{
label
:
"
创建日期
"
,
prop
:
"
create_date
"
,
type
:
""
,
align
:
"
center
"
,
},
{
label
:
"
操作
"
,
type
:
"
buttons
"
,
align
:
"
center
"
,
width
:
240
,
actionList
:
[
{
label
:
"
分配权限
"
,
callback
(
item
)
{
console
.
log
(
"
分配权限 -
"
+
item
.
name
);
},
},
{
label
:
"
删除
"
,
callback
:
this
.
deleteItem
,
},
],
},
];
this
.
listData
=
[
{
id
:
0
,
name
:
"
普通用户
"
,
creator
:
"
谢飞
"
,
create_date
:
"
2020-04-27 13:24:19
"
,
},
{
id
:
1
,
name
:
"
组织管理员
"
,
creator
:
"
谢飞
"
,
create_date
:
"
2020-04-27 13:24:19
"
,
},
{
id
:
2
,
name
:
"
超级管理员
"
,
creator
:
"
谢飞
"
,
create_date
:
"
2020-04-27 13:24:19
"
,
},
{
id
:
3
,
name
:
"
普通用户-开发者
"
,
creator
:
"
谢飞
"
,
create_date
:
"
2020-04-27 13:24:19
"
,
},
{
id
:
4
,
name
:
"
测试用户
"
,
creator
:
"
谢飞
"
,
create_date
:
"
2020-04-27 13:24:19
"
,
},
];
},
};
</
script
>
<
style
scoped
>
.roles_list
{
height
:
100%
;
}
</
style
>
src/pages/authority/users.vue
View file @
b6c50c16
...
...
@@ -7,7 +7,7 @@
>
<el-breadcrumb
separator=
"/"
slot=
"breadcrumb"
>
<el-breadcrumb-item
to=
"/authority"
>
权限管理
</el-breadcrumb-item>
<el-breadcrumb-item
to=
"/authority/users"
>
用户管理
</el-breadcrumb-item>
<el-breadcrumb-item>
用户管理
</el-breadcrumb-item>
</el-breadcrumb>
<template
slot=
"header-left"
>
<el-button
type=
"primary"
@
click=
"$router.push('/authority/users/add')"
>
...
...
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