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
4ed9ccce
Commit
4ed9ccce
authored
May 28, 2020
by
徐一鸣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
组织管理页面
parent
812057c8
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
88 additions
and
115 deletions
+88
-115
src/components/apass-dialog.vue
src/components/apass-dialog.vue
+2
-2
src/components/apass-list.vue
src/components/apass-list.vue
+5
-1
src/components/organization-list/organization-list.vue
src/components/organization-list/organization-list.vue
+5
-5
src/pages/authority/organization.vue
src/pages/authority/organization.vue
+70
-105
src/pages/authority/users.vue
src/pages/authority/users.vue
+6
-2
No files found.
src/components/apass-dialog.vue
View file @
4ed9ccce
...
@@ -24,8 +24,8 @@ export default {
...
@@ -24,8 +24,8 @@ export default {
name
:
"
dialog-action
"
,
name
:
"
dialog-action
"
,
props
:
{
props
:
{
width
:
{
width
:
{
type
:
[
Number
,
String
]
,
type
:
String
,
default
:
()
=>
400
,
default
:
()
=>
"
400px
"
,
},
},
title
:
{
title
:
{
type
:
String
,
type
:
String
,
...
...
src/components/apass-list.vue
View file @
4ed9ccce
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
<el-input
<el-input
v-model=
"searchFilter"
v-model=
"searchFilter"
prefix-icon=
"el-icon-search"
prefix-icon=
"el-icon-search"
placeholder=
"请输入应用名称
"
:placeholder=
"searchPlaceholder
"
style=
"width:240px;"
style=
"width:240px;"
@
input=
"searchAction"
@
input=
"searchAction"
></el-input>
></el-input>
...
@@ -53,6 +53,10 @@ export default {
...
@@ -53,6 +53,10 @@ export default {
type
:
Boolean
,
type
:
Boolean
,
default
:
false
,
default
:
false
,
},
},
searchPlaceholder
:
{
type
:
String
,
default
:
"
请输入关键字
"
}
},
},
data
:
()
=>
({
data
:
()
=>
({
searchFilter
:
""
,
searchFilter
:
""
,
...
...
src/components/organization-list/organization-list.vue
View file @
4ed9ccce
...
@@ -42,18 +42,18 @@ export default {
...
@@ -42,18 +42,18 @@ export default {
},
},
mounted
()
{
mounted
()
{
this
.
pageResize
();
this
.
pageResize
();
window
.
onresize
=
()
=>
{
window
.
addEventListener
(
"
resize
"
,
this
.
pageResize
);
this
.
pageResize
();
},
};
destroyed
()
{
window
.
removeEventListener
(
"
resize
"
,
this
.
pageResize
);
},
},
};
};
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
.organization_list
{
.organization_list
{
margin
:
20px
-20px
0
;
margin
:
0
-20px
;
padding
:
30px
0
0
;
padding
:
30px
0
0
;
border-top
:
1px
solid
#e3e5ef
;
display
:
flex
;
display
:
flex
;
flex-wrap
:
wrap
;
flex-wrap
:
wrap
;
justify-content
:
flex-start
;
justify-content
:
flex-start
;
...
...
src/pages/authority/organization.vue
View file @
4ed9ccce
<
template
>
<
template
>
<div
class=
"organization_container"
>
<div
class=
"organization_list"
>
<div
class=
"apass_breadcrumb"
>
<apass-list
<el-breadcrumb
separator=
"/"
>
@
list-action=
"listAction"
<el-breadcrumb-item>
权限管理
</el-breadcrumb-item>
search-placeholder=
"请输入关键字"
:list-total=
"listTotal"
>
<el-breadcrumb
separator=
"/"
slot=
"breadcrumb"
>
<el-breadcrumb-item
to=
"/authority"
>
权限管理
</el-breadcrumb-item>
<el-breadcrumb-item>
组织管理
</el-breadcrumb-item>
<el-breadcrumb-item>
组织管理
</el-breadcrumb-item>
</el-breadcrumb>
</el-breadcrumb>
</div>
<template
slot=
"header-left"
>
<div
class=
"main_container"
>
<el-button
<div
class=
"organization_header"
>
type=
"primary"
<el-button
type=
"primary"
@
click=
"addOrganization"
>
@
click=
"$router.push('/authority/organizationedit')"
>
新建组织
新建组织
</el-button>
</el-button>
<p
class=
"organization_info"
>
</
template
>
<img
:src=
"require('@/assets/imgs/title_ic_zuzhi.png')"
/>
<p
class=
"organization_info"
slot=
"header-center"
>
<span>
当前组织总数:
</span>
<img
:src=
"require('@/assets/imgs/title_ic_zuzhi.png')"
/>
<span>
8
</span>
<span>
当前组织总数:
</span>
</p>
<span>
8
</span>
<el-input
</p>
v-model=
"searchFilter"
prefix-icon=
"el-icon-search"
placeholder=
"请输入组织名称"
style=
"width:180px;"
@
input=
"searchAction"
class=
"ces_toolbar_inp"
></el-input>
</div>
<organization-list
<organization-list
:data=
"organizationList"
slot=
"list"
:data=
"listData"
details-url=
"/authority/organizationdetail/"
details-url=
"/authority/organizationdetail/"
@
delete-action=
"deleteAction"
@
delete-action=
"deleteAction"
></organization-list>
></organization-list>
<div
class=
"flex_grow"
></div>
</apass-list>
<comments-pagination
:total=
"100"
<apass-dialog
ref=
"dialog"
title=
"提示"
>
:page-sizes=
"pageSizes"
<p
slot=
"content"
style=
"text-align: left;"
>
确认删除该组织吗?
</p>
:page-size=
"pageSize"
<
template
slot=
"action"
>
:current-page=
"currentPage"
<el-button
type=
"defalut"
size=
"mini"
@
click=
"dialogHide"
>
@
size-change=
"changePageSize"
取消
@
current-change=
"changeCurrentPage"
</el-button>
></comments-pagination>
<el-button
type=
"primary"
size=
"mini"
@
click=
"dialogSubmit"
>
</div>
确定
<dialog-action
</el-button>
ref=
"myConfirm"
</
template
>
:confirm-options=
"confirmOptions"
</apass-dialog>
></dialog-action>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
apassList
from
"
@/components/apass-list
"
;
import
organizationList
from
"
@/components/organization-list/organization-list
"
;
import
organizationList
from
"
@/components/organization-list/organization-list
"
;
import
commentsPagination
from
"
@/components/comments-pagination
"
;
import
apassDialog
from
"
@/components/apass-dialog
"
;
import
dialogAction
from
"
@/components/dialog-action
"
;
export
default
{
export
default
{
components
:
{
components
:
{
apassList
,
organizationList
,
apassDialog
},
organizationList
,
dialogAction
,
commentsPagination
,
},
data
:
()
=>
({
data
:
()
=>
({
searchFilter
:
""
,
listTotal
:
300
,
organizationList
:
[
listData
:
[
{
{
id
:
1000001
,
id
:
1000001
,
img
:
img
:
...
@@ -152,67 +145,50 @@ export default {
...
@@ -152,67 +145,50 @@ export default {
time
:
"
2019-04-11 12:50:30
"
,
time
:
"
2019-04-11 12:50:30
"
,
},
},
],
],
pageSizes
:
[
10
,
50
,
100
],
roleData
:
[
pageSize
:
10
,
{
currentPage
:
1
,
name
:
"
超级管理员
"
,
confirmOptions
:
{
description
:
"
拥有所有权限
"
,
title
:
""
,
},
message
:
""
,
{
btnCancelText
:
""
,
name
:
"
组织管理员
"
,
btnSubmitText
:
""
,
description
:
"
拥有对应组织的权限
"
,
item
:
null
,
},
},
{
name
:
"
普通用户
"
,
description
:
"
普通权限用户
"
,
},
{
name
:
"
普通用户-开发者
"
,
description
:
"
基于普通用户多一些开发的选项
"
,
},
],
showDialog
:
false
,
}),
}),
methods
:
{
methods
:
{
addOrganization
()
{
listAction
(
value
)
{
this
.
$router
.
push
(
"
/authority/organizationedit
"
);
console
.
log
(
value
);
},
searchAction
()
{
console
.
log
(
this
.
searchFilter
);
},
},
deleteAction
(
item
)
{
deleteAction
(
item
)
{
this
.
confirmOptions
.
title
=
"
删除提示
"
;
this
.
dialogShow
();
this
.
confirmOptions
.
message
=
`确认删除
${
item
.
name
}
吗?`
;
this
.
confirmOptions
.
btnCancelText
=
""
;
this
.
confirmOptions
.
btnSubmitText
=
""
;
this
.
confirmOptions
.
confirmSubmit
=
()
=>
{
console
.
log
(
"
deleteItem -
"
+
item
.
name
);
this
.
$refs
.
myConfirm
.
hideModel
();
};
this
.
$refs
.
myConfirm
.
showModel
();
},
},
changePageSize
(
value
)
{
dialogShow
()
{
this
.
pageSize
=
value
;
this
.
$refs
.
dialog
.
show
();
this
.
currentPage
=
1
;
},
},
changeCurrentPage
(
value
)
{
dialogHide
()
{
this
.
currentPage
=
value
;
this
.
$refs
.
dialog
.
hide
();
},
dialogSubmit
()
{
console
.
log
(
"
dialog submit
"
);
this
.
dialogHide
();
},
},
},
},
};
};
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
.organization_
container
{
.organization_
list
{
height
:
100%
;
height
:
100%
;
padding
:
0
20px
;
overflow
:
auto
;
}
.main_container
{
min-height
:
calc
(
100%
-
84px
);
padding
:
15px
20px
;
border-radius
:
10px
;
background-color
:
#fff
;
display
:
flex
;
flex-direction
:
column
;
justify-content
:
flex-start
;
align-items
:
stretch
;
margin-bottom
:
42px
;
}
.organization_header
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
}
}
.organization_info
{
.organization_info
{
display
:
inline-flex
;
display
:
inline-flex
;
...
@@ -229,15 +205,4 @@ export default {
...
@@ -229,15 +205,4 @@ export default {
.organization_info
>
span
:nth-of-type
(
2
)
{
.organization_info
>
span
:nth-of-type
(
2
)
{
color
:
#1a2236
;
color
:
#1a2236
;
}
}
.flex_grow
{
flex-grow
:
1
;
}
</
style
>
<
style
>
.organization_container
.el-button--primary
{
background-color
:
#515fe7
;
border-color
:
#515fe7
;
color
:
#e6ebfe
;
}
</
style
>
</
style
>
src/pages/authority/users.vue
View file @
4ed9ccce
<
template
>
<
template
>
<div
class=
"users_list"
>
<div
class=
"users_list"
>
<apass-list
@
list-action=
"listAction"
:list-total=
"listTotal"
>
<apass-list
@
list-action=
"listAction"
search-placeholder=
"请输入关键字"
:list-total=
"listTotal"
>
<el-breadcrumb
separator=
"/"
slot=
"breadcrumb"
>
<el-breadcrumb
separator=
"/"
slot=
"breadcrumb"
>
<el-breadcrumb-item
to=
"/authority"
>
权限管理
</el-breadcrumb-item>
<el-breadcrumb-item
to=
"/authority"
>
权限管理
</el-breadcrumb-item>
<el-breadcrumb-item
to=
"/authority/users"
>
用户管理
</el-breadcrumb-item>
<el-breadcrumb-item
to=
"/authority/users"
>
用户管理
</el-breadcrumb-item>
...
@@ -69,7 +73,7 @@
...
@@ -69,7 +73,7 @@
</el-table>
</el-table>
</apass-list>
</apass-list>
<apass-dialog
ref=
"dialog"
width=
"590"
title=
"分配角色"
>
<apass-dialog
ref=
"dialog"
width=
"590
px
"
title=
"分配角色"
>
<el-table
<el-table
slot=
"content"
slot=
"content"
:border=
"false"
:border=
"false"
...
...
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