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
900be442
Commit
900be442
authored
Jun 10, 2020
by
徐一鸣
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'xym' into dev
parents
fcd35b80
b5b45013
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
571 additions
and
479 deletions
+571
-479
src/components/app-list/app-card.vue
src/components/app-list/app-card.vue
+4
-4
src/components/app-list/app-list.vue
src/components/app-list/app-list.vue
+2
-2
src/pages/workbench/fwgl/fwglList.vue
src/pages/workbench/fwgl/fwglList.vue
+24
-20
src/pages/workbench/yygl/yyglList.vue
src/pages/workbench/yygl/yyglList.vue
+540
-452
src/store/index.js
src/store/index.js
+1
-1
No files found.
src/components/app-list/app-card.vue
View file @
900be442
...
@@ -4,12 +4,12 @@
...
@@ -4,12 +4,12 @@
<i
class=
"el-icon-close"
></i>
<i
class=
"el-icon-close"
></i>
</a>
</a>
<div
class=
"app_card-icon"
>
<div
class=
"app_card-icon"
>
<el-avatar
shape=
"square"
:size=
"56"
fit=
"cover"
:src=
"data.
img
"
/>
<el-avatar
shape=
"square"
:size=
"56"
fit=
"cover"
:src=
"data.
logo
"
/>
</div>
</div>
<div
class=
"app_card-info"
>
<div
class=
"app_card-info"
>
<p
<p
class=
"app_card-name text_clip"
class=
"app_card-name text_clip"
v-text=
"data.name"
v-text=
"data.
app_
name"
@
click=
"intoDetail"
@
click=
"intoDetail"
></p>
></p>
<p
class=
"app_card-version text_clip"
v-text=
"data.version"
></p>
<p
class=
"app_card-version text_clip"
v-text=
"data.version"
></p>
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
<i
class=
"el-icon-time"
></i>
<i
class=
"el-icon-time"
></i>
<span>
上线时间:
</span>
<span>
上线时间:
</span>
</span>
</span>
<span
class=
"text_clip"
v-text=
"data.
time
"
></span>
<span
class=
"text_clip"
v-text=
"data.
created
"
></span>
</p>
</p>
</div>
</div>
</
template
>
</
template
>
...
@@ -53,7 +53,7 @@ export default {
...
@@ -53,7 +53,7 @@ export default {
this
.
$emit
(
"
delete-action
"
,
this
.
data
);
this
.
$emit
(
"
delete-action
"
,
this
.
data
);
},
},
intoDetail
()
{
intoDetail
()
{
this
.
$router
.
push
(
`
${
this
.
detailsUrl
}${
this
.
data
.
id
}
`
);
this
.
$router
.
push
(
`
${
this
.
detailsUrl
}${
this
.
data
.
up_user
id
}
`
);
},
},
},
},
};
};
...
...
src/components/app-list/app-list.vue
View file @
900be442
...
@@ -60,12 +60,12 @@ export default {
...
@@ -60,12 +60,12 @@ export default {
<
style
scoped
>
<
style
scoped
>
.app_list
{
.app_list
{
margin
:
20px
-25px
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
;
align-items
:
flex-start
;
align-items
:
flex-start
;
align-content
:
flex-start
;
}
}
</
style
>
</
style
>
src/pages/workbench/fwgl/fwglList.vue
View file @
900be442
...
@@ -39,7 +39,7 @@ export default {
...
@@ -39,7 +39,7 @@ export default {
listHeader
:
[],
listHeader
:
[],
listData
:
[],
listData
:
[],
filterList
:
[],
filterList
:
[],
role
Filter
:
[],
other
Filter
:
[],
dialogInfo
:
{
dialogInfo
:
{
title
:
""
,
title
:
""
,
msg
:
""
,
msg
:
""
,
...
@@ -73,7 +73,8 @@ export default {
...
@@ -73,7 +73,8 @@ export default {
Promise
.
all
([
Promise
.
all
([
this
.
$http
.
get
(
"
/apaas/service/v3/service/manager/servtype
"
),
this
.
$http
.
get
(
"
/apaas/service/v3/service/manager/servtype
"
),
this
.
$http
.
get
(
"
/apaas/service/v3/service/manager/servarea
"
),
this
.
$http
.
get
(
"
/apaas/service/v3/service/manager/servarea
"
),
]).
then
((
response
)
=>
{
])
.
then
((
response
)
=>
{
let
data
=
response
.
map
((
item
)
=>
{
let
data
=
response
.
map
((
item
)
=>
{
return
{
return
{
name
:
item
.
body
.
data
[
0
].
type_name
,
name
:
item
.
body
.
data
[
0
].
type_name
,
...
@@ -85,7 +86,10 @@ export default {
...
@@ -85,7 +86,10 @@ export default {
};
};
});
});
this
.
filterList
=
[...
data
,
...
this
.
roleFilter
];
this
.
filterList
=
[...
data
,
...
this
.
otherFilter
];
})
.
catch
((
error
)
=>
{
console
.
log
(
error
);
});
});
},
},
initHeader
()
{
initHeader
()
{
...
@@ -163,7 +167,7 @@ export default {
...
@@ -163,7 +167,7 @@ export default {
],
],
},
},
];
];
this
.
role
Filter
=
[
this
.
other
Filter
=
[
{
{
name
:
"
开放程度
"
,
name
:
"
开放程度
"
,
prop
:
"
openness
"
,
prop
:
"
openness
"
,
...
@@ -267,7 +271,7 @@ export default {
...
@@ -267,7 +271,7 @@ export default {
],
],
},
},
];
];
this
.
role
Filter
=
[
this
.
other
Filter
=
[
{
{
name
:
"
开放程度
"
,
name
:
"
开放程度
"
,
prop
:
"
openness
"
,
prop
:
"
openness
"
,
...
@@ -419,7 +423,7 @@ export default {
...
@@ -419,7 +423,7 @@ export default {
align
:
"
center
"
,
align
:
"
center
"
,
},
},
];
];
this
.
role
Filter
=
[
this
.
other
Filter
=
[
{
{
name
:
"
开放程度
"
,
name
:
"
开放程度
"
,
prop
:
"
openness
"
,
prop
:
"
openness
"
,
...
@@ -532,7 +536,7 @@ export default {
...
@@ -532,7 +536,7 @@ export default {
],
],
},
},
];
];
this
.
role
Filter
=
[
this
.
other
Filter
=
[
{
{
name
:
"
开放程度
"
,
name
:
"
开放程度
"
,
prop
:
"
openness
"
,
prop
:
"
openness
"
,
...
@@ -696,7 +700,7 @@ export default {
...
@@ -696,7 +700,7 @@ export default {
],
],
},
},
];
];
this
.
role
Filter
=
[
this
.
other
Filter
=
[
{
{
name
:
"
开放程度
"
,
name
:
"
开放程度
"
,
prop
:
"
openness
"
,
prop
:
"
openness
"
,
...
@@ -795,7 +799,7 @@ export default {
...
@@ -795,7 +799,7 @@ export default {
],
],
},
},
];
];
this
.
role
Filter
=
[
this
.
other
Filter
=
[
{
{
name
:
"
开放程度
"
,
name
:
"
开放程度
"
,
prop
:
"
openness
"
,
prop
:
"
openness
"
,
...
...
src/pages/workbench/yygl/yyglList.vue
View file @
900be442
<
template
>
<
template
>
<div
class=
"list_container"
>
<div
class=
"app_management_list"
>
<div
class=
"apass_breadcrumb"
>
<apass-list
ref=
"list"
search-placeholder=
"请输入关键字"
:list-total=
"listTotal"
:list-filter=
"filterList"
:list-header=
"listHeader"
:list-data=
"listData"
:list-padding-left=
"35"
@
list-action=
"initDatas"
>
<el-breadcrumb
separator=
"/"
>
<el-breadcrumb
separator=
"/"
>
<el-breadcrumb-item>
我的应用
</el-breadcrumb-item>
<el-breadcrumb-item>
我的应用
</el-breadcrumb-item>
<el-breadcrumb-item>
{{
pathName
}}
</el-breadcrumb-item>
<el-breadcrumb-item>
{{
pathName
}}
</el-breadcrumb-item>
</el-breadcrumb>
</el-breadcrumb>
</div>
<div
class=
"main_container card"
v-if=
"listType == 'card'"
>
<div
class=
"filter_contaner"
>
<div
class=
"filter_action"
>
<el-button
v-if=
"filterList && filterList.length"
@
click=
"showFliterList = !showFliterList"
>
{{
showFliterList
?
"
收起
"
:
"
筛选
"
}}
<i
class=
"el-icon--right"
:class=
"
showFliterList ? 'el-icon-caret-bottom' : 'el-icon-caret-top'
"
></i>
</el-button>
<el-input
v-model=
"search"
prefix-icon=
"el-icon-search"
placeholder=
"请输入应用名称"
style=
"width:180px;"
@
input=
"searchAction"
class=
"ces_toolbar_inp"
></el-input>
</div>
<table-filter
:show=
"showFliterList"
:filter-list=
"filterList"
@
filter-change=
"filterChange"
style=
"margin-top: 5px;"
></table-filter>
</div>
<app-list
<app-list
:data=
"appList"
v-if=
"listType"
slot=
"list"
:data=
"listData"
:card-type=
"cardType"
:card-type=
"cardType"
@
deployment-action=
"deploymentAction"
@
deployment-action=
"deploymentAction"
@
delete-action=
"deleteAction"
@
delete-action=
"deleteAction"
:details-url=
"detailsUrl"
:details-url=
"detailsUrl"
></app-list>
></app-list>
<div
class=
"flex_grow"
></div>
</apass-list>
<comments-pagination
:total=
"100"
<apass-dialog
:page-sizes=
"pageSizes"
ref=
"dialog"
:page-size=
"pageSize"
:title=
"dialogInfo.title"
:current-page=
"currentPage"
:msg=
"dialogInfo.msg"
@
size-change=
"changePageSize"
:submit=
"dialogInfo.submit"
@
current-change=
"changeCurrentPage"
></apass-dialog>
></comments-pagination>
</div>
<div
class=
"main_container"
v-if=
"listType == 'table'"
>
<ces-table
class=
"r_yhgl_table"
size=
"mini"
url=
"tableData"
input-placeholder=
"请输入应用名称"
empty-text=
"暂时没数据"
:detailsUrl=
"detailsUrl"
:border=
"false"
:headers=
"headers"
:searchShow=
"true"
:autoAdd=
"false"
:stripe=
"true"
:pageSizeShow=
"true"
:filterList=
"filterList"
:isIndex=
"false"
@
action-approval=
"approvalItem"
@
action-delete=
"deleteItem"
@
action-edit=
"editItem"
@
off-line=
"offLine"
@
goods-shelf=
"goodsShelf"
style=
"margin-top: 50px;"
></ces-table>
</div>
<dialog-action
ref=
"myConfirm"
:confirm-options=
"confirmOptions"
></dialog-action>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
tableFilter
from
"
@/components/table/table-filter
"
;
import
appList
from
"
@/components/app-list/app-list
"
;
import
appList
from
"
@/components/app-list/app-list
"
;
import
cesTable
from
"
@/components/table/table-um
"
;
import
apassList
from
"
@/components/apass-list
"
;
import
dialogAction
from
"
@/components/dialog-action
"
;
import
apassDialog
from
"
@/components/apass-dialog
"
;
import
commentsPagination
from
"
@/components/comments-pagination
"
;
import
{
mapState
}
from
"
vuex
"
;
import
{
mapState
}
from
"
vuex
"
;
export
default
{
export
default
{
components
:
{
components
:
{
tableFilter
,
appList
,
appList
,
cesTable
,
apassList
,
dialogAction
,
apassDialog
,
commentsPagination
,
},
},
data
:
()
=>
({
data
:
()
=>
({
level
:
0
,
// 用户等级
level
:
0
,
// 用户等级
type
:
0
,
// 访问的页面
type
:
0
,
// 访问的页面
listType
:
""
,
listType
:
""
,
cardType
:
""
,
cardType
:
""
,
showFliterList
:
false
,
listTotal
:
0
,
filterList
:
[
filterList
:
[],
{
listHeader
:
[],
name
:
"
在线状态
"
,
listData
:
[],
prop
:
"
zxzt
"
,
dialogInfo
:
{
data
:
[
"
平台应用
"
,
"
开发者应用
"
,
"
未上架
"
],
},
{
name
:
"
应用类型
"
,
prop
:
"
yylx
"
,
data
:
[
"
基础工具
"
,
"
通用工具
"
,
"
业务应用
"
],
},
{
name
:
"
业务领域
"
,
prop
:
"
ywly
"
,
data
:
[
"
公安应用
"
,
"
应急应用
"
,
"
政务服务应用
"
,
"
金融应用
"
,
"
交通应用
"
,
"
旅游应用
"
,
],
},
{
name
:
"
是否支持开发
"
,
prop
:
"
sfzckf
"
,
data
:
[
"
全部
"
,
"
支持开发
"
,
"
不支持开发
"
],
},
],
appList
:
[
{
id
:
1000001
,
img
:
"
https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg
"
,
name
:
"
mapvideos
"
,
version
:
"
V2.0
"
,
time
:
"
2019-04-11 12:50:30
"
,
},
{
id
:
1000002
,
img
:
"
https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg
"
,
name
:
"
语音识别
"
,
version
:
"
V2.0
"
,
time
:
"
2019-04-11 12:50:30
"
,
},
{
id
:
1000003
,
img
:
"
https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg
"
,
name
:
"
轨迹绘制
"
,
version
:
"
V2.0
"
,
time
:
"
2019-04-11 12:50:30
"
,
},
{
id
:
1000004
,
img
:
"
https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg
"
,
name
:
"
轨迹绘制
"
,
version
:
"
V2.1
"
,
time
:
"
2019-04-11 12:50:30
"
,
},
{
id
:
1000005
,
img
:
"
https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg
"
,
name
:
"
轨迹绘制
"
,
version
:
"
V2.2
"
,
time
:
"
2019-04-11 12:50:30
"
,
},
{
id
:
1000006
,
img
:
"
https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg
"
,
name
:
"
轨迹绘制
"
,
version
:
"
V2.3
"
,
time
:
"
2019-04-11 12:50:30
"
,
},
{
id
:
1000007
,
img
:
"
https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg
"
,
name
:
"
轨迹绘制
"
,
version
:
"
V2.4
"
,
time
:
"
2019-04-11 12:50:30
"
,
},
{
id
:
100000
,
img
:
"
https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg
"
,
name
:
"
轨迹绘制
"
,
version
:
"
V2.5
"
,
time
:
"
2019-04-11 12:50:30
"
,
},
{
id
:
1000009
,
img
:
"
https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg
"
,
name
:
"
轨迹绘制
"
,
version
:
"
V2.6
"
,
time
:
"
2019-04-11 12:50:30
"
,
},
{
id
:
1000010
,
img
:
"
https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg
"
,
name
:
"
轨迹绘制
"
,
version
:
"
V2.7
"
,
time
:
"
2019-04-11 12:50:30
"
,
},
],
search
:
""
,
pageSizes
:
[
10
,
50
,
100
],
pageSize
:
10
,
currentPage
:
1
,
confirmOptions
:
{
title
:
""
,
title
:
""
,
message
:
""
,
message
:
""
,
btnCancelText
:
""
,
btnCancelText
:
""
,
btnSubmitText
:
""
,
btnSubmitText
:
""
,
item
:
null
,
item
:
null
,
},
},
otherFilter1
:
[],
otherFilter2
:
[],
tempFliter
:
null
,
}),
}),
computed
:
{
computed
:
{
...
mapState
({
...
mapState
({
...
@@ -252,85 +89,120 @@ export default {
...
@@ -252,85 +89,120 @@ export default {
},
},
},
},
methods
:
{
methods
:
{
searchAction
(
value
)
{
initHeader
()
{
console
.
log
(
value
);
let
level
=
this
.
level
;
},
let
type
=
this
.
type
;
filterChange
(
filter
)
{
console
.
log
(
filter
);
},
deploymentAction
(
item
)
{
console
.
log
(
"
deployment
"
+
item
.
name
);
},
deleteAction
(
item
)
{
if
(
this
.
cardType
===
0
)
{
this
.
confirmOptions
.
title
=
"
删除提示
"
;
this
.
confirmOptions
.
message
=
"
您需要先进行应用商店下架申请,应用处于下架状态时才能进行删除操作。
"
;
this
.
confirmOptions
.
btnCancelText
=
""
;
this
.
confirmOptions
.
btnSubmitText
=
""
;
this
.
confirmOptions
.
confirmSubmit
=
()
=>
{
console
.
log
(
"
deleteItem -
"
+
item
.
name
);
this
.
$refs
.
myConfirm
.
hideModel
();
};
}
else
if
(
this
.
cardType
===
1
)
{
this
.
confirmOptions
.
title
=
"
是否删除部署的应用
"
;
this
.
confirmOptions
.
message
=
"
该操作会导致正在调用该应用的用户被迫终止对应用的调用,删除前需向正在调用该应用的用户发送通知,自通知发送之日起,2日后应用将被删除。
"
;
this
.
confirmOptions
.
btnCancelText
=
""
;
this
.
confirmOptions
.
btnSubmitText
=
"
发送通知
"
;
this
.
confirmOptions
.
confirmSubmit
=
()
=>
{
console
.
log
(
"
deleteItem -
"
+
item
.
name
);
this
.
$refs
.
myConfirm
.
hideModel
();
};
}
this
.
$refs
.
myConfirm
.
showModel
();
// 普通用户 --- 应用仓库 card列表形式
if
(
level
===
0
&&
type
===
0
)
{
this
.
listType
=
"
card
"
;
this
.
cardType
=
0
;
this
.
otherFilter1
=
[
{
name
:
"
在线状态
"
,
prop
:
"
online_state
"
,
data
:
[
{
name
:
"
平台应用
"
,
value
:
1
,
},
},
changePageSize
(
value
)
{
{
this
.
pageSize
=
value
;
name
:
"
开发者应用
"
,
this
.
currentPage
=
1
;
value
:
2
,
},
},
changeCurrentPage
(
value
)
{
{
this
.
currentPage
=
value
;
name
:
"
未上架
"
,
value
:
0
,
},
},
approvalItem
(
item
)
{
],
console
.
log
(
"
approval ---
"
+
item
.
id
);
},
},
deleteItem
(
item
)
{
];
console
.
log
(
"
delete ---
"
+
item
.
id
);
this
.
otherFilter2
=
[
{
name
:
"
是否支持开发
"
,
prop
:
"
developable
"
,
data
:
[
{
name
:
"
支持开发
"
,
value
:
1
,
},
},
editItem
(
item
)
{
{
this
.
$router
.
push
(
`/yygl/
${
this
.
level
}
/
${
this
.
type
}
/edit/
${
item
.
id
}
`
);
name
:
"
不支持开发
"
,
value
:
0
,
},
},
offLine
(
item
)
{
],
console
.
log
(
"
off line ---
"
+
item
.
id
);
},
},
goodsShelf
(
item
)
{
{
console
.
log
(
"
goods shelf
"
,
item
.
state
);
name
:
"
应用来源
"
,
prop
:
"
appSource
"
,
data
:
[
{
name
:
"
创建的应用
"
,
value
:
0
,
},
},
{
name
:
"
申请的应用
"
,
value
:
1
,
},
},
created
()
{
],
this
.
level
=
parseInt
(
this
.
$route
.
params
.
level
);
},
this
.
type
=
parseInt
(
this
.
$route
.
params
.
type
);
];
let
level
=
this
.
level
;
let
type
=
this
.
type
;
// 普通用户 --- 应用仓库 card列表形式
if
(
level
===
0
&&
type
===
0
)
{
this
.
listType
=
"
card
"
;
this
.
cardType
=
0
;
}
}
// 普通用户 --- 我部署的应用
// 普通用户 --- 我部署的应用
else
if
(
level
===
0
&&
type
===
1
)
{
else
if
(
level
===
0
&&
type
===
1
)
{
this
.
listType
=
"
card
"
;
this
.
listType
=
"
card
"
;
this
.
cardType
=
1
;
this
.
cardType
=
1
;
this
.
otherFilter1
=
[
{
name
:
"
部署来源
"
,
prop
:
"
online_state
"
,
data
:
[
{
name
:
"
应用商店
"
,
value
:
0
,
},
{
name
:
"
开发者应用
"
,
value
:
1
,
},
],
},
];
this
.
otherFilter2
=
[
{
name
:
"
是否支持开发
"
,
prop
:
"
developable
"
,
data
:
[
{
name
:
"
支持开发
"
,
value
:
1
,
},
{
name
:
"
不支持开发
"
,
value
:
0
,
},
],
},
{
name
:
"
应用来源
"
,
prop
:
"
appSource
"
,
data
:
[
{
name
:
"
创建的应用
"
,
value
:
0
,
},
{
name
:
"
申请的应用
"
,
value
:
1
,
},
],
},
];
}
}
// 普通用户 --- 申请的应用 card列表形式
// 普通用户 --- 申请的应用 card列表形式
else
if
(
level
===
0
&&
type
===
2
)
{
else
if
(
level
===
0
&&
type
===
2
)
{
this
.
listType
=
"
table
"
;
this
.
listType
=
"
table
"
;
this
.
listHeader
=
[
this
.
headers
=
[
{
label
:
"
应用名称
"
,
prop
:
"
name
"
,
type
:
"
href
"
,
align
:
"
left
"
},
{
label
:
"
应用名称
"
,
prop
:
"
name
"
,
type
:
"
href
"
,
align
:
"
left
"
},
{
label
:
"
应用版本
"
,
prop
:
"
date
"
,
type
:
""
,
align
:
"
center
"
},
{
label
:
"
应用版本
"
,
prop
:
"
date
"
,
type
:
""
,
align
:
"
center
"
},
{
label
:
"
应用类型
"
,
prop
:
"
address
"
,
type
:
""
,
align
:
"
center
"
},
{
label
:
"
应用类型
"
,
prop
:
"
address
"
,
type
:
""
,
align
:
"
center
"
},
...
@@ -340,11 +212,75 @@ export default {
...
@@ -340,11 +212,75 @@ export default {
{
label
:
"
申请时间
"
,
prop
:
"
address
"
,
type
:
""
,
align
:
"
center
"
},
{
label
:
"
申请时间
"
,
prop
:
"
address
"
,
type
:
""
,
align
:
"
center
"
},
{
label
:
"
申请状态
"
,
prop
:
"
address
"
,
type
:
""
,
align
:
"
center
"
},
{
label
:
"
申请状态
"
,
prop
:
"
address
"
,
type
:
""
,
align
:
"
center
"
},
];
];
this
.
otherFilter1
=
[
{
name
:
"
在线区域
"
,
prop
:
"
online_state
"
,
data
:
[
{
name
:
"
平台应用
"
,
value
:
1
,
},
{
name
:
"
开发者应用
"
,
value
:
2
,
},
],
},
];
this
.
otherFilter2
=
[
{
name
:
"
申请类型
"
,
prop
:
"
apply_type
"
,
data
:
[
{
name
:
"
申请部署
"
,
value
:
1
,
},
{
name
:
"
申请开发
"
,
value
:
2
,
},
],
},
{
name
:
"
申请状态
"
,
prop
:
"
apply_state
"
,
data
:
[
{
name
:
"
审批中
"
,
value
:
1
,
},
{
name
:
"
审批通过
"
,
value
:
2
,
},
{
name
:
"
审批未通过
"
,
value
:
2
,
},
],
},
{
name
:
"
应用来源
"
,
prop
:
"
appSource
"
,
data
:
[
{
name
:
"
创建的应用
"
,
value
:
0
,
},
{
name
:
"
申请的应用
"
,
value
:
1
,
},
],
},
];
}
}
// 普通用户 --- 审批的应用
/*
// 普通用户 --- 审批的应用
else if (level === 0 && type === 3) {
else if (level === 0 && type === 3) {
this.listType = "table";
this.listType = "table";
this
.
headers
=
[
this.listHeader
= [
{ label: "应用名称", prop: "name", type: "href", align: "left" },
{ label: "应用名称", prop: "name", type: "href", align: "left" },
{ label: "应用版本", prop: "date", type: "", align: "center" },
{ label: "应用版本", prop: "date", type: "", align: "center" },
{ label: "应用类型", prop: "address", type: "", align: "center" },
{ label: "应用类型", prop: "address", type: "", align: "center" },
...
@@ -371,12 +307,12 @@ export default {
...
@@ -371,12 +307,12 @@ export default {
],
],
},
},
];
];
}
} */
// 组织管理员 --- 应用仓库管理
// 组织管理员 --- 应用仓库管理
else
if
(
level
===
1
&&
type
===
0
)
{
else
if
(
level
===
1
&&
type
===
0
)
{
this
.
listType
=
"
table
"
;
this
.
listType
=
"
table
"
;
this
.
headers
=
[
this
.
listHeader
=
[
{
label
:
"
应用名称
"
,
prop
:
"
name
"
,
type
:
"
href
"
,
align
:
"
left
"
},
{
label
:
"
应用名称
"
,
prop
:
"
name
"
,
type
:
"
href
"
,
align
:
"
left
"
},
{
label
:
"
应用版本
"
,
prop
:
"
date
"
,
type
:
""
,
align
:
"
center
"
},
{
label
:
"
应用版本
"
,
prop
:
"
date
"
,
type
:
""
,
align
:
"
center
"
},
{
label
:
"
应用类型
"
,
prop
:
"
address
"
,
type
:
""
,
align
:
"
center
"
},
{
label
:
"
应用类型
"
,
prop
:
"
address
"
,
type
:
""
,
align
:
"
center
"
},
...
@@ -399,7 +335,7 @@ export default {
...
@@ -399,7 +335,7 @@ export default {
// 组织管理员 --- 部署的应用
// 组织管理员 --- 部署的应用
else
if
(
level
===
1
&&
type
===
1
)
{
else
if
(
level
===
1
&&
type
===
1
)
{
this
.
listType
=
"
table
"
;
this
.
listType
=
"
table
"
;
this
.
headers
=
[
this
.
listHeader
=
[
{
label
:
"
应用名称
"
,
prop
:
"
name
"
,
type
:
"
href
"
,
align
:
"
left
"
},
{
label
:
"
应用名称
"
,
prop
:
"
name
"
,
type
:
"
href
"
,
align
:
"
left
"
},
{
label
:
"
应用版本
"
,
prop
:
"
date
"
,
type
:
""
,
align
:
"
center
"
},
{
label
:
"
应用版本
"
,
prop
:
"
date
"
,
type
:
""
,
align
:
"
center
"
},
{
label
:
"
应用类型
"
,
prop
:
"
address
"
,
type
:
""
,
align
:
"
center
"
},
{
label
:
"
应用类型
"
,
prop
:
"
address
"
,
type
:
""
,
align
:
"
center
"
},
...
@@ -412,7 +348,7 @@ export default {
...
@@ -412,7 +348,7 @@ export default {
// 组织管理员 --- 应用审批管理
// 组织管理员 --- 应用审批管理
else
if
(
level
===
1
&&
type
===
2
)
{
else
if
(
level
===
1
&&
type
===
2
)
{
this
.
listType
=
"
table
"
;
this
.
listType
=
"
table
"
;
this
.
headers
=
[
this
.
listHeader
=
[
{
label
:
"
应用名称
"
,
prop
:
"
name
"
,
type
:
""
,
align
:
"
left
"
},
{
label
:
"
应用名称
"
,
prop
:
"
name
"
,
type
:
""
,
align
:
"
left
"
},
{
label
:
"
应用版本
"
,
prop
:
"
date
"
,
type
:
""
,
align
:
"
center
"
},
{
label
:
"
应用版本
"
,
prop
:
"
date
"
,
type
:
""
,
align
:
"
center
"
},
{
label
:
"
应用类型
"
,
prop
:
"
address
"
,
type
:
""
,
align
:
"
center
"
},
{
label
:
"
应用类型
"
,
prop
:
"
address
"
,
type
:
""
,
align
:
"
center
"
},
...
@@ -444,7 +380,7 @@ export default {
...
@@ -444,7 +380,7 @@ export default {
// 超级管理员 --- 平台应用管理
// 超级管理员 --- 平台应用管理
else
if
(
level
===
2
&&
type
===
0
)
{
else
if
(
level
===
2
&&
type
===
0
)
{
this
.
listType
=
"
table
"
;
this
.
listType
=
"
table
"
;
this
.
headers
=
[
this
.
listHeader
=
[
{
label
:
"
应用名称
"
,
prop
:
"
name
"
,
type
:
"
href
"
,
align
:
"
left
"
},
{
label
:
"
应用名称
"
,
prop
:
"
name
"
,
type
:
"
href
"
,
align
:
"
left
"
},
{
label
:
"
应用版本
"
,
prop
:
"
date
"
,
type
:
""
,
align
:
"
center
"
},
{
label
:
"
应用版本
"
,
prop
:
"
date
"
,
type
:
""
,
align
:
"
center
"
},
{
label
:
"
应用类型
"
,
prop
:
"
address
"
,
type
:
""
,
align
:
"
center
"
},
{
label
:
"
应用类型
"
,
prop
:
"
address
"
,
type
:
""
,
align
:
"
center
"
},
...
@@ -478,7 +414,7 @@ export default {
...
@@ -478,7 +414,7 @@ export default {
// 超级管理员 --- 应用部署管理
// 超级管理员 --- 应用部署管理
else
if
(
level
===
2
&&
type
===
1
)
{
else
if
(
level
===
2
&&
type
===
1
)
{
this
.
listType
=
"
table
"
;
this
.
listType
=
"
table
"
;
this
.
headers
=
[
this
.
listHeader
=
[
{
label
:
"
应用名称
"
,
prop
:
"
name
"
,
type
:
"
href
"
,
align
:
"
left
"
},
{
label
:
"
应用名称
"
,
prop
:
"
name
"
,
type
:
"
href
"
,
align
:
"
left
"
},
{
label
:
"
应用版本
"
,
prop
:
"
date
"
,
type
:
""
,
align
:
"
center
"
},
{
label
:
"
应用版本
"
,
prop
:
"
date
"
,
type
:
""
,
align
:
"
center
"
},
{
label
:
"
应用类型
"
,
prop
:
"
address
"
,
type
:
""
,
align
:
"
center
"
},
{
label
:
"
应用类型
"
,
prop
:
"
address
"
,
type
:
""
,
align
:
"
center
"
},
...
@@ -492,7 +428,7 @@ export default {
...
@@ -492,7 +428,7 @@ export default {
// 超级管理员 --- 应用审批管理
// 超级管理员 --- 应用审批管理
else
if
(
level
===
2
&&
type
===
2
)
{
else
if
(
level
===
2
&&
type
===
2
)
{
this
.
listType
=
"
table
"
;
this
.
listType
=
"
table
"
;
this
.
headers
=
[
this
.
listHeader
=
[
{
label
:
"
应用名称
"
,
prop
:
"
name
"
,
type
:
""
,
align
:
"
left
"
},
{
label
:
"
应用名称
"
,
prop
:
"
name
"
,
type
:
""
,
align
:
"
left
"
},
{
label
:
"
应用版本
"
,
prop
:
"
date
"
,
type
:
""
,
align
:
"
center
"
},
{
label
:
"
应用版本
"
,
prop
:
"
date
"
,
type
:
""
,
align
:
"
center
"
},
{
label
:
"
应用类型
"
,
prop
:
"
address
"
,
type
:
""
,
align
:
"
center
"
},
{
label
:
"
应用类型
"
,
prop
:
"
address
"
,
type
:
""
,
align
:
"
center
"
},
...
@@ -526,35 +462,187 @@ export default {
...
@@ -526,35 +462,187 @@ export default {
throw
Error
(
"
The page doesn't exist
"
);
throw
Error
(
"
The page doesn't exist
"
);
}
}
},
},
initFilter
()
{
let
level
=
this
.
level
;
let
type
=
this
.
type
;
let
urls
=
[
{
path
:
"
/apaas/hubApi/market/appTypes
"
,
callback
(
response
)
{
let
datas
=
[];
datas
=
response
.
body
.
data
.
map
((
v
)
=>
({
name
:
v
.
name
,
value
:
v
.
id
,
}));
return
{
name
:
"
应用类型
"
,
prop
:
"
appTypes
"
,
data
:
datas
,
};
},
},
{
path
:
"
/apaas/hubApi/market/businessAreas
"
,
callback
(
response
)
{
let
datas
=
[];
datas
=
response
.
body
.
data
.
map
((
v
)
=>
({
name
:
v
.
name
,
value
:
v
.
id
,
}));
return
{
name
:
"
业务领域
"
,
prop
:
"
businessArea
"
,
data
:
datas
,
};
},
},
];
Promise
.
all
(
urls
.
map
((
url
)
=>
this
.
$http
.
get
(
url
.
path
)))
.
then
((
responses
)
=>
{
let
filterList
=
responses
.
map
((
response
,
index
)
=>
{
return
urls
[
index
].
callback
(
response
);
});
this
.
filterList
=
[
...
this
.
otherFilter1
,
...
filterList
,
...
this
.
otherFilter2
,
];
})
.
catch
((
error
)
=>
{
console
.
log
(
error
);
});
},
initDatas
(
filter
)
{
let
listUrl
=
[
"
/apaas/hubApi/market/list
"
,
"
/apaas/hubApi/market/deployList
"
,
"
/apaas/hubApi/market/deployList
"
,
];
let
params
=
{};
if
(
filter
.
online_state
)
{
params
.
online_state
=
filter
.
online_state
.
map
((
item
)
=>
{
return
item
.
value
;
})
.
join
(
"
,
"
);
}
// 在线状态
if
(
filter
.
appTypes
)
{
params
.
appTypes
=
filter
.
appTypes
.
map
((
item
)
=>
{
return
item
.
value
;
})
.
join
(
"
,
"
);
}
// 应用类型
if
(
filter
.
businessArea
)
{
params
.
businessArea
=
filter
.
businessArea
.
map
((
item
)
=>
{
return
item
.
value
;
})
.
join
(
"
,
"
);
}
// 业务领域
if
(
filter
.
developable
)
{
params
.
developable
=
filter
.
developable
.
map
((
item
)
=>
{
return
item
.
value
;
})
.
join
(
"
,
"
);
}
// 是否支持开发
if
(
filter
.
appSource
)
{
params
.
appSource
=
filter
.
appSource
.
map
((
item
)
=>
{
return
item
.
value
;
})
.
join
(
"
,
"
);
}
// 应用来源
this
.
tempFliter
=
filter
;
this
.
$http
.
get
(
listUrl
[
this
.
type
],
{
params
:
{
...
params
,
search
:
filter
.
keyword
,
page
:
filter
.
page
,
limit
:
filter
.
size
,
},
})
.
then
(({
data
})
=>
{
this
.
listTotal
=
data
.
total
;
this
.
listData
=
data
.
data
||
[];
})
.
catch
((
error
)
=>
{
console
.
log
(
error
);
});
},
deploymentAction
(
item
)
{
console
.
log
(
"
deployment
"
+
item
.
name
);
},
deleteAction
(
item
)
{
/* if (this.cardType === 0) {
this.dialogInfo.title = "删除提示";
this.dialogInfo.msg =
"您需要先进行应用商店下架申请,应用处于下架状态时才能进行删除操作。";
this.dialogInfo.btnCancelText = "";
this.dialogInfo.btnSubmitText = "";
this.dialogInfo.confirmSubmit = () => {
console.log("deleteItem - " + item.name);
this.$refs.myConfirm.hideModel();
};
} else if (this.cardType === 1) {
this.dialogInfo.title = "是否删除部署的应用";
this.dialogInfo.msg =
"该操作会导致正在调用该应用的用户被迫终止对应用的调用,删除前需向正在调用该应用的用户发送通知,自通知发送之日起,2日后应用将被删除。";
this.dialogInfo.btnCancelText = "";
this.dialogInfo.btnSubmitText = "发送通知";
this.dialogInfo.confirmSubmit = () => {
console.log("deleteItem - " + item.name);
this.$refs.myConfirm.hideModel();
};
}
this.$refs.myConfirm.showModel(); */
},
changePageSize
(
value
)
{
this
.
pageSize
=
value
;
this
.
currentPage
=
1
;
},
changeCurrentPage
(
value
)
{
this
.
currentPage
=
value
;
},
approvalItem
(
item
)
{
console
.
log
(
"
approval ---
"
+
item
.
id
);
},
deleteItem
(
item
)
{
console
.
log
(
"
delete ---
"
+
item
.
id
);
},
editItem
(
item
)
{
this
.
$router
.
push
(
`/yygl/
${
this
.
level
}
/
${
this
.
type
}
/edit/
${
item
.
id
}
`
);
},
offLine
(
item
)
{
console
.
log
(
"
off line ---
"
+
item
.
id
);
},
goodsShelf
(
item
)
{
console
.
log
(
"
goods shelf
"
,
item
.
state
);
},
},
created
()
{
this
.
level
=
parseInt
(
this
.
$route
.
params
.
level
);
this
.
type
=
parseInt
(
this
.
$route
.
params
.
type
);
this
.
initHeader
();
this
.
initFilter
();
},
};
};
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
.
list_container
{
.
app_management_list
{
height
:
100%
;
height
:
100%
;
padding
:
0
20px
;
overflow
:
auto
;
}
.main_container
{
min-height
:
calc
(
100%
-
84px
);
padding
:
15px
20px
;
border-radius
:
10px
;
overflow
:
hidden
;
background-color
:
#fff
;
margin-bottom
:
42px
;
}
.main_container.card
{
display
:
flex
;
flex-direction
:
column
;
justify-content
:
flex-start
;
align-items
:
stretch
;
}
.flex_grow
{
flex-grow
:
1
;
}
.filter_action
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
}
}
</
style
>
</
style
>
src/store/index.js
View file @
900be442
...
@@ -12,7 +12,7 @@ const store = new Vuex.Store({
...
@@ -12,7 +12,7 @@ const store = new Vuex.Store({
[
"
平台服务管理
"
,
"
服务审批管理
"
/* , "云资源管理" */
],
// 超级管理员
[
"
平台服务管理
"
,
"
服务审批管理
"
/* , "云资源管理" */
],
// 超级管理员
],
// 服务管理列表,onlyRead
],
// 服务管理列表,onlyRead
yyglNav
:
[
yyglNav
:
[
[
"
应用仓库
"
,
"
我部署的应用
"
,
"
申请的应用
"
,
"
审批的应用
"
],
// 普通用户
[
"
应用仓库
"
,
"
我部署的应用
"
,
"
申请的应用
"
/* "审批的应用" */
],
// 普通用户
[
"
应用仓库管理
"
,
"
部署的应用
"
,
"
应用审批管理
"
],
// 组织管理员
[
"
应用仓库管理
"
,
"
部署的应用
"
,
"
应用审批管理
"
],
// 组织管理员
[
"
平台应用管理
"
,
"
应用部署管理
"
,
"
应用审批管理
"
],
// 超级管理员
[
"
平台应用管理
"
,
"
应用部署管理
"
,
"
应用审批管理
"
],
// 超级管理员
],
// 应用管理列表,onlyRead
],
// 应用管理列表,onlyRead
...
...
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