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
0d725c05
Commit
0d725c05
authored
May 18, 2020
by
徐一鸣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加应用管理模块
parent
a8d68978
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
156 additions
and
11 deletions
+156
-11
src/pages/fwglList.vue
src/pages/fwglList.vue
+8
-8
src/pages/yygl.vue
src/pages/yygl.vue
+70
-0
src/pages/yyglList.vue
src/pages/yyglList.vue
+57
-0
src/router/index.js
src/router/index.js
+13
-0
src/store/index.js
src/store/index.js
+8
-3
No files found.
src/pages/fwglList.vue
View file @
0d725c05
<
template
>
<
template
>
<div
class=
"list_container"
>
<div
class=
"list_container"
>
<el-breadcrumb
separator=
"/"
class=
"bread_crumb"
>
<div
class=
"sevice_breadcrumb"
>
<el-breadcrumb-item>
我的服务
</el-breadcrumb-item>
<el-breadcrumb
separator=
"/"
>
<el-breadcrumb-item>
{{
pathName
}}
</el-breadcrumb-item>
<el-breadcrumb-item>
我的服务
</el-breadcrumb-item>
</el-breadcrumb>
<el-breadcrumb-item>
{{
pathName
}}
</el-breadcrumb-item>
</el-breadcrumb>
</div>
<div
class=
"table_container"
>
<div
class=
"table_container"
>
<ces-table
<ces-table
class=
"r_yhgl_table"
class=
"r_yhgl_table"
...
@@ -463,14 +465,12 @@ export default {
...
@@ -463,14 +465,12 @@ export default {
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
.bread_crumb
{
.list_container
{
margin
:
20px
;
padding
:
0
20px
;
font-size
:
14px
;
}
}
.table_container
{
.table_container
{
height
:
calc
(
100%
-
75px
);
height
:
calc
(
100%
-
75px
);
padding
:
15px
20px
;
padding
:
15px
20px
;
margin
:
0
20px
;
border-radius
:
10px
;
border-radius
:
10px
;
overflow
:
hidden
;
overflow
:
hidden
;
background-color
:
#fff
;
background-color
:
#fff
;
...
...
src/pages/yygl.vue
0 → 100644
View file @
0d725c05
<
template
>
<div
class=
"yygl_container"
>
<side-nav-bar
:nav-list=
"navList"
:title-path=
"navList[0] && navList[0].path"
></side-nav-bar>
<div
class=
"main_container"
>
<router-view
:key=
"'type_' + $route.params.level + '_' + $route.params.type"
></router-view>
</div>
</div>
</
template
>
<
script
>
import
sideNavBar
from
"
@/components/side-nav-bar
"
;
import
{
mapState
}
from
"
vuex
"
;
export
default
{
components
:
{
sideNavBar
,
},
data
:
()
=>
({
navList
:
[],
}),
computed
:
{
...
mapState
({
yyglNav
:
"
yyglNav
"
,
}),
},
watch
:
{
"
$route.fullPath
"
(
path
)
{
this
.
initNavList
();
},
},
methods
:
{
initNavList
()
{
let
level
=
parseInt
(
this
.
$route
.
params
.
level
);
this
.
navList
=
this
.
yyglNav
[
level
].
map
((
item
,
index
)
=>
({
name
:
item
,
path
:
`/yygl/
${
level
}
/
${
index
}
`
,
}));
},
},
mounted
()
{
this
.
initNavList
();
},
};
</
script
>
<
style
scoped
>
.yygl_container
{
height
:
calc
(
100vh
-
84px
);
display
:
flex
;
justify-content
:
flex-start
;
align-items
:
stretch
;
}
.side_nav_bar
{
width
:
180px
;
flex-shrink
:
0
;
}
.main_container
{
width
:
calc
(
100%
-
180px
);
flex-grow
:
1
;
flex-shrink
:
1
;
background-color
:
#f6f7fb
;
overflow
:
auto
;
}
</
style
>
src/pages/yyglList.vue
0 → 100644
View file @
0d725c05
<
template
>
<div
class=
"list_container"
>
<div
class=
"sevice_breadcrumb"
>
<el-breadcrumb
separator=
"/"
>
<el-breadcrumb-item>
我的服务
</el-breadcrumb-item>
<el-breadcrumb-item>
{{
pathName
}}
</el-breadcrumb-item>
</el-breadcrumb>
</div>
<div
class=
"table_container"
></div>
</div>
</
template
>
<
script
>
import
cesTable
from
"
@/components/table-um
"
;
import
dialogAction
from
"
@/components/dialog-action
"
;
import
{
mapState
}
from
"
vuex
"
;
export
default
{
data
:
()
=>
({
level
:
0
,
// 用户等级
type
:
0
,
// 访问的页面
}),
computed
:
{
...
mapState
({
yyglNav
:
"
yyglNav
"
,
}),
pathName
()
{
return
this
.
yyglNav
[
this
.
level
][
this
.
type
];
},
},
components
:
{
cesTable
,
dialogAction
,
},
methods
:
{},
created
()
{
this
.
level
=
parseInt
(
this
.
$route
.
params
.
level
);
this
.
type
=
parseInt
(
this
.
$route
.
params
.
type
);
},
};
</
script
>
<
style
scoped
>
.list_container
{
padding
:
0
20px
;
}
.table_container
{
height
:
calc
(
100%
-
75px
);
padding
:
15px
20px
;
border-radius
:
10px
;
overflow
:
hidden
;
background-color
:
#fff
;
}
.table_container
.ces-table-page
{
margin-top
:
42px
;
}
</
style
>
src/router/index.js
View file @
0d725c05
...
@@ -70,6 +70,19 @@ export default new Router({
...
@@ -70,6 +70,19 @@ export default new Router({
},
// 审批的服务 - 详情
},
// 审批的服务 - 详情
],
],
},
// 工作台 - 服务管理模块
},
// 工作台 - 服务管理模块
{
path
:
"
/yygl/:level
"
,
// 应用管理 level:用户等级
name
:
"
yygl
"
,
redirect
:
"
/yygl/:level/0
"
,
component
:
()
=>
import
(
"
@/pages/yygl
"
),
children
:
[
{
path
:
"
/yygl/:level/:type
"
,
// 应用管理列表页
name
:
"
yyglList
"
,
component
:
()
=>
import
(
"
@/pages/yyglList
"
),
},
],
},
// 工作台 - 应用管理模块
{
{
path
:
"
/shop
"
,
// 服务超市
path
:
"
/shop
"
,
// 服务超市
name
:
"
shop
"
,
name
:
"
shop
"
,
...
...
src/store/index.js
View file @
0d725c05
...
@@ -7,10 +7,15 @@ const store = new Vuex.Store({
...
@@ -7,10 +7,15 @@ const store = new Vuex.Store({
role
:
1
,
// 0:普通用户,1:组织管理员,2:超级管理员
role
:
1
,
// 0:普通用户,1:组织管理员,2:超级管理员
serviceShopMenu
:
"
shopDataList
"
,
// 服务超市侧边栏
serviceShopMenu
:
"
shopDataList
"
,
// 服务超市侧边栏
fwglNav
:
[
fwglNav
:
[
[
"
注册发布的服务
"
,
"
申请的服务
"
,
"
审批的服务
"
,
"
云资源服务
"
],
//普通用户
[
"
注册发布的服务
"
,
"
申请的服务
"
,
"
审批的服务
"
,
"
云资源服务
"
],
//
普通用户
[
"
组织服务管理
"
,
"
服务审批管理
"
,
"
云资源管理
"
],
//组织管理员
[
"
组织服务管理
"
,
"
服务审批管理
"
,
"
云资源管理
"
],
//
组织管理员
[
"
平台服务管理
"
,
"
服务审批管理
"
,
"
云资源管理
"
],
//超级管理员
[
"
平台服务管理
"
,
"
服务审批管理
"
,
"
云资源管理
"
],
//
超级管理员
],
// 服务管理列表,onlyRead
],
// 服务管理列表,onlyRead
yyglNav
:
[
[
"
应用仓库
"
,
"
我部署的应用
"
,
"
申请的应用
"
,
"
审批的应用
"
],
// 普通用户
[
"
应用仓库管理
"
,
"
部署的应用
"
,
"
应用审批管理
"
],
// 组织管理员
[
"
平台应用管理
"
,
"
应用部署管理
"
,
"
应用审批管理
"
],
// 超级管理员
],
// 应用管理列表,onlyRead
},
},
modules
:
{},
modules
:
{},
mutations
:
{
mutations
:
{
...
...
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