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
569c655d
Commit
569c655d
authored
Jun 15, 2020
by
徐一鸣
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'xym' into dev
parents
69f2de44
c36cbf93
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
515 additions
and
158 deletions
+515
-158
src/components/app-list/app-card.vue
src/components/app-list/app-card.vue
+10
-4
src/components/service-info/service-info.vue
src/components/service-info/service-info.vue
+12
-5
src/pages/service_shop/sjfwDetail.vue
src/pages/service_shop/sjfwDetail.vue
+12
-9
src/pages/service_shop/skfwDetail.vue
src/pages/service_shop/skfwDetail.vue
+13
-11
src/pages/service_shop/zhfwDetail.vue
src/pages/service_shop/zhfwDetail.vue
+13
-11
src/pages/workbench/app_build.vue
src/pages/workbench/app_build.vue
+9
-9
src/pages/workbench/fwgl/fwglList.vue
src/pages/workbench/fwgl/fwglList.vue
+12
-4
src/pages/workbench/yygl/yyglList.vue
src/pages/workbench/yygl/yyglList.vue
+434
-105
No files found.
src/components/app-list/app-card.vue
View file @
569c655d
...
...
@@ -4,15 +4,18 @@
<i
class=
"el-icon-close"
></i>
</a>
<div
class=
"app_card-icon"
>
<el-avatar
shape=
"square"
:size=
"56"
fit=
"cover"
:
src=
"data.logo"
/>
<el-avatar
shape=
"square"
:size=
"56"
fit=
"cover"
src=
"data.logo"
/>
</div>
<div
class=
"app_card-info"
>
<p
class=
"app_card-name text_clip"
v-text=
"
data.app
_name"
v-text=
"
cardType == 0 ? data.app_name : data.deploy
_name"
@
click=
"intoDetail"
></p>
<p
class=
"app_card-version text_clip"
v-text=
"data.version"
></p>
<p
class=
"app_card-version text_clip"
v-text=
"cardType == 0 ? data.version : data.app_version"
></p>
</div>
<div
class=
"app_card-action"
v-if=
"cardType == 0"
>
<el-button
type=
"primary"
plain
@
click=
"deploymentAction"
>
...
...
@@ -24,7 +27,10 @@
<i
class=
"el-icon-time"
></i>
<span>
上线时间:
</span>
</span>
<span
class=
"text_clip"
v-text=
"data.created"
></span>
<span
class=
"text_clip"
v-text=
"data.created && data.created.substring(0, 10)"
></span>
</p>
</div>
</
template
>
...
...
src/components/service-info/service-info.vue
View file @
569c655d
...
...
@@ -62,7 +62,10 @@
</div>
<div
class=
"commodity_information"
>
<span>
规格说明:
</span>
<span
class=
"commodity_text"
v-text=
"specification.descript"
></span>
<span
class=
"commodity_text"
v-text=
"specification && specification.descript"
></span>
</div>
<div
class=
"commodity_information"
>
<span>
购买方式:
</span>
...
...
@@ -125,10 +128,6 @@ export default {
(
item
)
=>
item
.
type
==
this
.
type
);
if
(
this
.
specification
.
id
===
undefined
)
{
this
.
specification
=
specifications
[
0
];
}
return
specifications
;
},
},
...
...
@@ -146,6 +145,9 @@ export default {
},
changeType
({
value
})
{
this
.
type
=
value
;
if
(
this
.
specifications
.
length
>
0
)
{
this
.
specification
=
this
.
specifications
[
0
];
}
},
addToCart
()
{
// console.log("addToCart");
...
...
@@ -183,6 +185,11 @@ export default {
console
.
log
(
"
applyImmediately
"
);
},
},
mounted
()
{
if
(
this
.
specifications
.
length
>
0
)
{
this
.
specification
=
this
.
specifications
[
0
];
}
},
};
</
script
>
...
...
src/pages/service_shop/sjfwDetail.vue
View file @
569c655d
...
...
@@ -56,12 +56,15 @@ export default {
})
.
then
(({
data
})
=>
{
let
datas
=
data
.
data
;
let
specificationData
=
datas
.
serviceRequestSpcs
.
map
((
item
)
=>
({
id
:
item
.
id
,
type
:
item
.
type
,
name
:
`访问次数:
${
item
.
pv
}
/日 访问量:
${
item
.
count
}
/日`
,
descript
:
item
.
des
,
}));
let
specificationData
=
(
datas
.
serviceRequestSpcs
&&
datas
.
serviceRequestSpcs
.
map
((
item
)
=>
({
id
:
item
.
id
,
type
:
item
.
type
,
name
:
`访问次数:
${
item
.
pv
}
/日 访问量:
${
item
.
count
}
/日`
,
descript
:
item
.
des
,
})))
||
[];
this
.
baseInfo
=
{
service_id
:
this
.
id
,
...
...
@@ -180,9 +183,9 @@ export default {
this
.
specificationData
=
specificationData
;
this
.
providerData
=
{
organization_name
:
datas
.
organization_name
,
picture_path
:
datas
.
userInfo
.
picture_path
,
user_name
:
datas
.
userI
nfo
.
user_name
,
phone
:
datas
.
userI
nfo
.
phone
,
picture_path
:
datas
.
organization_picture
,
user_name
:
datas
.
register_user_i
nfo
.
user_name
,
phone
:
datas
.
register_user_i
nfo
.
phone
,
};
this
.
commentsData
=
datas
.
scoreDetail
;
})
...
...
src/pages/service_shop/skfwDetail.vue
View file @
569c655d
...
...
@@ -61,12 +61,14 @@ export default {
})
.
then
(({
data
})
=>
{
let
datas
=
data
.
data
;
let
specificationData
=
datas
.
serviceRequestSpcs
.
map
((
item
)
=>
({
id
:
item
.
id
,
type
:
item
.
type
,
name
:
`访问次数:
${
item
.
pv
}
/日 访问量:
${
item
.
count
}
/日`
,
descript
:
item
.
des
,
}));
(
datas
.
serviceRequestSpcs
&&
datas
.
serviceRequestSpcs
.
map
((
item
)
=>
({
id
:
item
.
id
,
type
:
item
.
type
,
name
:
`访问次数:
${
item
.
pv
}
/日 访问量:
${
item
.
count
}
/日`
,
descript
:
item
.
des
,
})))
||
[];
this
.
baseInfo
=
{
service_id
:
this
.
id
,
...
...
@@ -97,7 +99,7 @@ export default {
type
:
"
text
"
,
value
:
datas
.
descript
,
},
{
/*
{
name: "服务属性", // TODO: replace
type: "list",
value: [
...
...
@@ -131,14 +133,14 @@ export default {
value: "禁用",
},
],
},
},
*/
];
this
.
specificationData
=
specificationData
;
this
.
providerData
=
{
organization_name
:
datas
.
organization_name
,
picture_path
:
datas
.
userInfo
.
picture_path
,
user_name
:
datas
.
userI
nfo
.
user_name
,
phone
:
datas
.
userI
nfo
.
phone
,
picture_path
:
datas
.
organization_picture
,
user_name
:
datas
.
register_user_i
nfo
.
user_name
,
phone
:
datas
.
register_user_i
nfo
.
phone
,
};
this
.
commentsData
=
datas
.
scoreDetail
;
})
...
...
src/pages/service_shop/zhfwDetail.vue
View file @
569c655d
...
...
@@ -61,12 +61,14 @@ export default {
})
.
then
(({
data
})
=>
{
let
datas
=
data
.
data
;
let
specificationData
=
datas
.
serviceRequestSpcs
.
map
((
item
)
=>
({
id
:
item
.
id
,
type
:
item
.
type
,
name
:
`访问次数:
${
item
.
pv
}
/日 访问量:
${
item
.
count
}
/日`
,
descript
:
item
.
des
,
}));
(
datas
.
serviceRequestSpcs
&&
datas
.
serviceRequestSpcs
.
map
((
item
)
=>
({
id
:
item
.
id
,
type
:
item
.
type
,
name
:
`访问次数:
${
item
.
pv
}
/日 访问量:
${
item
.
count
}
/日`
,
descript
:
item
.
des
,
})))
||
[];
this
.
baseInfo
=
{
service_id
:
this
.
id
,
...
...
@@ -96,7 +98,7 @@ export default {
type
:
"
text
"
,
value
:
datas
.
descript
,
},
{
/*
{
name: "微服务响应列表", // TODO: replace
type: "table",
value: {
...
...
@@ -125,14 +127,14 @@ export default {
},
],
},
},
},
*/
];
this
.
specificationData
=
specificationData
;
this
.
providerData
=
{
organization_name
:
datas
.
organization_name
,
picture_path
:
datas
.
userInfo
.
picture_path
,
user_name
:
datas
.
userI
nfo
.
user_name
,
phone
:
datas
.
userI
nfo
.
phone
,
picture_path
:
datas
.
organization_picture
,
user_name
:
datas
.
register_user_i
nfo
.
user_name
,
phone
:
datas
.
register_user_i
nfo
.
phone
,
};
this
.
commentsData
=
datas
.
scoreDetail
;
})
...
...
src/pages/workbench/app_build.vue
View file @
569c655d
...
...
@@ -48,7 +48,7 @@
>
<i
class=
"el-icon-upload"
></i>
<div
class=
"el-upload__text"
>
将文件拖到此处,或
<em>
点击上传
</em>
将
镜像
文件拖到此处,或
<em>
点击上传
</em>
</div>
</el-upload>
</el-form-item>
...
...
@@ -120,7 +120,7 @@
>
<i
class=
"el-icon-upload"
></i>
<div
class=
"el-upload__text"
>
将文件拖到此处,或
<em>
点击上传
</em>
将
部署
文件拖到此处,或
<em>
点击上传
</em>
</div>
</el-upload>
</el-form-item>
...
...
@@ -412,16 +412,16 @@ export default {
this
.
app_info
.
logo
=
response
.
data
;
},
beforeLogoUpload
(
file
)
{
/* const isJPG = file.type === "image/jpe
g";
const isLt
2M = file.size / 1024 / 1024 < 2
;
const
isPic
=
file
.
type
===
"
image/jpeg
"
||
file
.
type
===
"
image/pn
g
"
;
const
isLt
10M
=
file
.
size
/
1024
/
1024
<
10
;
if (!is
JPG
) {
this.$message.error("上传头像图片只能是 JPG 格式!");
if
(
!
is
Pic
)
{
this
.
$message
.
error
(
"
上传头像图片只能是 JPG
或 PNG
格式!
"
);
}
if (!isLt
2
M) {
this.$message.error("上传头像图片大小不能超过
2
MB!");
if
(
!
isLt
10
M
)
{
this
.
$message
.
error
(
"
上传头像图片大小不能超过
10
MB!
"
);
}
return is
JPG && isLt2M; */
return
is
Pic
&&
isLt10M
;
},
getYwlys
()
{
this
.
$http
...
...
src/pages/workbench/fwgl/fwglList.vue
View file @
569c655d
...
...
@@ -111,13 +111,11 @@ export default {
{
label
:
"
服务领域
"
,
prop
:
"
sectors_name
"
,
type
:
""
,
align
:
"
center
"
,
},
{
label
:
"
开放程度
"
,
prop
:
"
openness_name
"
,
type
:
""
,
align
:
"
center
"
,
},
{
...
...
@@ -127,13 +125,15 @@ export default {
{
label
:
"
注册发布时间
"
,
prop
:
"
create_time
"
,
type
:
""
,
getText
(
item
)
{
let
create_time
=
item
.
create_time
||
""
;
return
create_time
.
substring
(
0
,
10
);
},
align
:
"
center
"
,
},
{
label
:
"
服务类型
"
,
prop
:
"
data_service_type1_name
"
,
type
:
""
,
align
:
"
center
"
,
},
{
...
...
@@ -414,6 +414,10 @@ export default {
{
label
:
"
注册发布时间
"
,
prop
:
"
create_time
"
,
getText
(
item
)
{
let
create_time
=
item
.
create_time
||
""
;
return
create_time
.
substring
(
0
,
10
);
},
align
:
"
center
"
,
},
{
...
...
@@ -675,6 +679,10 @@ export default {
{
label
:
"
注册发布时间
"
,
prop
:
"
create_time
"
,
getText
(
item
)
{
let
create_time
=
item
.
create_time
||
""
;
return
create_time
.
substring
(
0
,
10
);
},
align
:
"
center
"
,
},
{
...
...
src/pages/workbench/yygl/yyglList.vue
View file @
569c655d
...
...
@@ -16,7 +16,7 @@
</el-breadcrumb>
<app-list
v-if=
"listType"
v-if=
"listType
=== 'card'
"
slot=
"list"
:data=
"listData"
:card-type=
"cardType"
...
...
@@ -58,10 +58,11 @@ export default {
listData
:
[],
dialogInfo
:
{
title
:
""
,
message
:
""
,
btnCancelText
:
""
,
btnSubmitText
:
""
,
item
:
null
,
msg
:
""
,
submit
:
null
,
cancelText
:
""
,
sunbmitText
:
""
,
submit
:
null
,
},
otherFilter1
:
[],
otherFilter2
:
[],
...
...
@@ -92,6 +93,7 @@ export default {
initHeader
()
{
let
level
=
this
.
level
;
let
type
=
this
.
type
;
let
_self
=
this
;
// 普通用户 --- 应用仓库 card列表形式
if
(
level
===
0
&&
type
===
0
)
{
...
...
@@ -203,14 +205,51 @@ export default {
else
if
(
level
===
0
&&
type
===
2
)
{
this
.
listType
=
"
table
"
;
this
.
listHeader
=
[
{
label
:
"
应用名称
"
,
prop
:
"
name
"
,
type
:
"
href
"
,
align
:
"
left
"
},
{
label
:
"
应用版本
"
,
prop
:
"
date
"
,
type
:
""
,
align
:
"
center
"
},
{
label
:
"
应用类型
"
,
prop
:
"
address
"
,
type
:
""
,
align
:
"
center
"
},
{
label
:
"
业务领域
"
,
prop
:
"
address
"
,
type
:
""
,
align
:
"
center
"
},
{
label
:
"
在线区域
"
,
prop
:
"
address
"
,
type
:
""
,
align
:
"
center
"
},
{
label
:
"
申请类型
"
,
prop
:
"
address
"
,
type
:
""
,
align
:
"
center
"
},
{
label
:
"
申请时间
"
,
prop
:
"
address
"
,
type
:
""
,
align
:
"
center
"
},
{
label
:
"
申请状态
"
,
prop
:
"
address
"
,
type
:
""
,
align
:
"
center
"
},
{
label
:
"
应用名称
"
,
prop
:
"
app_name
"
,
type
:
"
button
"
,
callback
:
this
.
detailItem
,
},
{
label
:
"
应用版本
"
,
prop
:
"
version
"
,
align
:
"
center
"
,
},
{
label
:
"
应用类型
"
,
prop
:
"
type_name
"
,
align
:
"
center
"
,
},
{
label
:
"
业务领域
"
,
prop
:
"
ywly_name
"
,
align
:
"
center
"
,
},
{
label
:
"
在线区域
"
,
prop
:
"
online_state_name
"
,
align
:
"
center
"
,
},
{
label
:
"
申请类型
"
,
prop
:
"
apply_type_name
"
,
align
:
"
center
"
,
},
{
label
:
"
申请时间
"
,
prop
:
"
time
"
,
getText
(
item
)
{
let
time
=
item
.
time
||
""
;
return
time
.
substring
(
0
,
10
);
},
align
:
"
center
"
,
},
{
label
:
"
申请状态
"
,
prop
:
"
apply_status
"
,
align
:
"
center
"
,
},
];
this
.
otherFilter1
=
[
{
...
...
@@ -281,14 +320,22 @@ export default {
else if (level === 0 && type === 3) {
this.listType = "table";
this.listHeader = [
{ label: "应用名称", prop: "name", type: "href", align: "left" },
{ label: "应用版本", prop: "date", type: "", align: "center" },
{ label: "应用类型", prop: "address", type: "", align: "center" },
{ label: "业务领域", prop: "address", type: "", align: "center" },
{ label: "在线区域", prop: "address", type: "", align: "center" },
{ label: "申请类型", prop: "address", type: "", align: "center" },
{ label: "审批时间", prop: "address", type: "", align: "center" },
{ label: "审批状态", prop: "address", type: "", align: "center" },
{
label: "应用名称", prop: "name", type: "href", align: "left" },
{
label: "应用版本", prop: "date", align: "center" },
{
label: "应用类型", prop: "address", align: "center" },
{
label: "业务领域", prop: "address", align: "center" },
{
label: "在线区域", prop: "address", align: "center" },
{
label: "申请类型", prop: "address", align: "center" },
{
label: "审批时间", prop: "address", align: "center" },
{
label: "审批状态", prop: "address", align: "center" },
{
label: "操作",
type: "Button",
...
...
@@ -313,20 +360,59 @@ export default {
else
if
(
level
===
1
&&
type
===
0
)
{
this
.
listType
=
"
table
"
;
this
.
listHeader
=
[
{
label
:
"
应用名称
"
,
prop
:
"
name
"
,
type
:
"
href
"
,
align
:
"
left
"
},
{
label
:
"
应用版本
"
,
prop
:
"
date
"
,
type
:
""
,
align
:
"
center
"
},
{
label
:
"
应用类型
"
,
prop
:
"
address
"
,
type
:
""
,
align
:
"
center
"
},
{
label
:
"
业务领域
"
,
prop
:
"
address
"
,
type
:
""
,
align
:
"
center
"
},
{
label
:
"
在线状态
"
,
prop
:
"
address
"
,
type
:
""
,
align
:
"
center
"
},
{
label
:
"
创建时间
"
,
prop
:
"
address
"
,
type
:
""
,
align
:
"
center
"
},
{
label
:
"
应用名称
"
,
prop
:
"
app_name
"
,
type
:
"
button
"
,
callback
:
this
.
detailItem
,
},
{
label
:
"
应用版本
"
,
prop
:
"
version
"
,
align
:
"
center
"
,
},
{
label
:
"
应用类型
"
,
prop
:
"
type_name
"
,
align
:
"
center
"
,
},
{
label
:
"
业务领域
"
,
prop
:
"
ywly_name
"
,
align
:
"
center
"
,
},
{
label
:
"
在线状态
"
,
prop
:
"
online_state
"
,
align
:
"
center
"
,
},
{
label
:
"
创建时间
"
,
prop
:
"
create_date
"
,
getText
(
item
)
{
let
time
=
item
.
create_date
||
""
;
return
time
.
substring
(
0
,
10
);
},
align
:
"
center
"
,
},
{
label
:
"
操作
"
,
type
:
"
Button
"
,
type
:
"
buttons
"
,
align
:
"
center
"
,
width
:
160
,
btnList
:
[
{
type
:
"
goods-shelf
"
,
actionList
:
[
{
getLabel
(
item
)
{
return
item
.
online_state
==
0
?
"
上架
"
:
"
下架
"
;
},
callback
(
item
)
{
item
.
online_state
==
0
?
_self
.
soldUpItem
(
item
)
:
_self
.
soldOutItem
(
item
);
},
disabledRule
(
item
)
{
return
item
.
online_state
==
2
;
},
},
],
},
...
...
@@ -336,41 +422,103 @@ export default {
else
if
(
level
===
1
&&
type
===
1
)
{
this
.
listType
=
"
table
"
;
this
.
listHeader
=
[
{
label
:
"
应用名称
"
,
prop
:
"
name
"
,
type
:
"
href
"
,
align
:
"
left
"
},
{
label
:
"
应用版本
"
,
prop
:
"
date
"
,
type
:
""
,
align
:
"
center
"
},
{
label
:
"
应用类型
"
,
prop
:
"
address
"
,
type
:
""
,
align
:
"
center
"
},
{
label
:
"
业务领域
"
,
prop
:
"
address
"
,
type
:
""
,
align
:
"
center
"
},
{
label
:
"
上架区域
"
,
prop
:
"
address
"
,
type
:
""
,
align
:
"
center
"
},
{
label
:
"
部署时间
"
,
prop
:
"
address
"
,
type
:
""
,
align
:
"
center
"
},
{
label
:
"
部署区域
"
,
prop
:
"
address
"
,
type
:
""
,
align
:
"
center
"
},
{
label
:
"
应用名称
"
,
prop
:
"
app_name
"
,
type
:
"
button
"
,
callback
:
this
.
detailItem
,
},
{
label
:
"
应用版本
"
,
prop
:
"
version
"
,
align
:
"
center
"
,
},
{
label
:
"
应用类型
"
,
prop
:
"
type_name
"
,
align
:
"
center
"
,
},
{
label
:
"
业务领域
"
,
prop
:
"
ywly_name
"
,
align
:
"
center
"
,
},
{
label
:
"
上架区域
"
,
prop
:
"
address
"
,
align
:
"
center
"
,
},
{
label
:
"
部署时间
"
,
prop
:
"
address
"
,
align
:
"
center
"
,
},
{
label
:
"
部署区域
"
,
prop
:
"
address
"
,
align
:
"
center
"
,
},
];
}
// 组织管理员 --- 应用审批管理
else
if
(
level
===
1
&&
type
===
2
)
{
this
.
listType
=
"
table
"
;
this
.
listHeader
=
[
{
label
:
"
应用名称
"
,
prop
:
"
name
"
,
type
:
""
,
align
:
"
left
"
},
{
label
:
"
应用版本
"
,
prop
:
"
date
"
,
type
:
""
,
align
:
"
center
"
},
{
label
:
"
应用类型
"
,
prop
:
"
address
"
,
type
:
""
,
align
:
"
center
"
},
{
label
:
"
业务领域
"
,
prop
:
"
address
"
,
type
:
""
,
align
:
"
center
"
},
{
label
:
"
在线区域
"
,
prop
:
"
address
"
,
type
:
""
,
align
:
"
center
"
},
{
label
:
"
申请类型
"
,
prop
:
"
address
"
,
type
:
""
,
align
:
"
center
"
},
{
label
:
"
审批时间
"
,
prop
:
"
address
"
,
type
:
""
,
align
:
"
center
"
},
{
label
:
"
申请状态
"
,
prop
:
"
address
"
,
type
:
""
,
align
:
"
center
"
},
{
label
:
"
应用名称
"
,
prop
:
"
app_name
"
,
type
:
"
button
"
,
callback
:
this
.
detailItem
,
},
{
label
:
"
应用版本
"
,
prop
:
"
version
"
,
align
:
"
center
"
,
},
{
label
:
"
应用类型
"
,
prop
:
"
type_name
"
,
align
:
"
center
"
,
},
{
label
:
"
业务领域
"
,
prop
:
"
ywly_name
"
,
align
:
"
center
"
,
},
{
label
:
"
在线区域
"
,
prop
:
"
online_state_name
"
,
align
:
"
center
"
,
},
{
label
:
"
申请类型
"
,
prop
:
"
apply_type_name
"
,
align
:
"
center
"
,
},
{
label
:
"
审批时间
"
,
prop
:
"
apply_date
"
,
align
:
"
center
"
,
},
{
label
:
"
申请状态
"
,
prop
:
"
apply_status
"
,
align
:
"
center
"
,
},
{
label
:
"
操作
"
,
type
:
"
Button
"
,
type
:
"
buttons
"
,
align
:
"
center
"
,
width
:
160
,
bt
nList
:
[
actio
nList
:
[
{
type
:
"
action-approval
"
,
label
:
"
审批
"
,
line
:
"
|
"
,
callback
:
this
.
approvalItem
,
},
{
type
:
"
action-delete
"
,
label
:
"
删除
"
,
class
:
"
warn
"
,
callback
:
this
.
deleteItem
,
},
],
},
...
...
@@ -381,31 +529,54 @@ export default {
else
if
(
level
===
2
&&
type
===
0
)
{
this
.
listType
=
"
table
"
;
this
.
listHeader
=
[
{
label
:
"
应用名称
"
,
prop
:
"
name
"
,
type
:
"
href
"
,
align
:
"
left
"
},
{
label
:
"
应用版本
"
,
prop
:
"
date
"
,
type
:
""
,
align
:
"
center
"
},
{
label
:
"
应用类型
"
,
prop
:
"
address
"
,
type
:
""
,
align
:
"
center
"
},
{
label
:
"
业务领域
"
,
prop
:
"
address
"
,
type
:
""
,
align
:
"
center
"
},
{
label
:
"
在线状态
"
,
prop
:
"
address
"
,
type
:
""
,
align
:
"
center
"
},
{
label
:
"
所属组织
"
,
prop
:
"
address
"
,
type
:
""
,
align
:
"
center
"
},
{
label
:
"
应用名称
"
,
prop
:
"
app_name
"
,
type
:
"
button
"
,
callback
:
this
.
detailItem
,
},
{
label
:
"
应用版本
"
,
prop
:
"
version
"
,
align
:
"
center
"
,
},
{
label
:
"
应用类型
"
,
prop
:
"
type_name
"
,
align
:
"
center
"
,
},
{
label
:
"
业务领域
"
,
prop
:
"
ywly_name
"
,
align
:
"
center
"
,
},
{
label
:
"
在线状态
"
,
prop
:
"
online_state
"
,
align
:
"
center
"
,
},
{
label
:
"
所属组织
"
,
prop
:
"
address
"
,
align
:
"
center
"
,
},
{
label
:
"
操作
"
,
type
:
"
Button
"
,
type
:
"
buttons
"
,
align
:
"
center
"
,
width
:
240
,
bt
nList
:
[
actio
nList
:
[
{
type
:
"
action-edit
"
,
label
:
"
编辑
"
,
line
:
"
|
"
,
callback
:
_self
.
editItem
},
{
type
:
"
off-line
"
,
label
:
"
下线
"
,
line
:
"
|
"
,
callback
:
_self
.
offLine
},
{
type
:
"
action-delete
"
,
label
:
"
删除
"
,
callback
:
_self
.
deleteItem
},
],
},
...
...
@@ -415,42 +586,108 @@ export default {
else
if
(
level
===
2
&&
type
===
1
)
{
this
.
listType
=
"
table
"
;
this
.
listHeader
=
[
{
label
:
"
应用名称
"
,
prop
:
"
name
"
,
type
:
"
href
"
,
align
:
"
left
"
},
{
label
:
"
应用版本
"
,
prop
:
"
date
"
,
type
:
""
,
align
:
"
center
"
},
{
label
:
"
应用类型
"
,
prop
:
"
address
"
,
type
:
""
,
align
:
"
center
"
},
{
label
:
"
业务领域
"
,
prop
:
"
address
"
,
type
:
""
,
align
:
"
center
"
},
{
label
:
"
上架区域
"
,
prop
:
"
address
"
,
type
:
""
,
align
:
"
center
"
},
{
label
:
"
所属组织
"
,
prop
:
"
address
"
,
type
:
""
,
align
:
"
center
"
},
{
label
:
"
部署时间
"
,
prop
:
"
address
"
,
type
:
""
,
align
:
"
center
"
},
{
label
:
"
部署区域
"
,
prop
:
"
address
"
,
type
:
""
,
align
:
"
center
"
},
{
label
:
"
应用名称
"
,
prop
:
"
app_name
"
,
type
:
"
button
"
,
callback
:
this
.
detailItem
,
},
{
label
:
"
应用版本
"
,
prop
:
"
version
"
,
align
:
"
center
"
,
},
{
label
:
"
应用类型
"
,
prop
:
"
type_name
"
,
align
:
"
center
"
,
},
{
label
:
"
业务领域
"
,
prop
:
"
ywly_name
"
,
align
:
"
center
"
,
},
{
label
:
"
上架区域
"
,
prop
:
"
address
"
,
align
:
"
center
"
,
},
{
label
:
"
所属组织
"
,
prop
:
"
address
"
,
align
:
"
center
"
,
},
{
label
:
"
部署时间
"
,
prop
:
"
address
"
,
align
:
"
center
"
,
},
{
label
:
"
部署区域
"
,
prop
:
"
address
"
,
align
:
"
center
"
,
},
];
}
// 超级管理员 --- 应用审批管理
else
if
(
level
===
2
&&
type
===
2
)
{
this
.
listType
=
"
table
"
;
this
.
listHeader
=
[
{
label
:
"
应用名称
"
,
prop
:
"
name
"
,
type
:
""
,
align
:
"
left
"
},
{
label
:
"
应用版本
"
,
prop
:
"
date
"
,
type
:
""
,
align
:
"
center
"
},
{
label
:
"
应用类型
"
,
prop
:
"
address
"
,
type
:
""
,
align
:
"
center
"
},
{
label
:
"
业务领域
"
,
prop
:
"
address
"
,
type
:
""
,
align
:
"
center
"
},
{
label
:
"
在线区域
"
,
prop
:
"
address
"
,
type
:
""
,
align
:
"
center
"
},
{
label
:
"
申请类型
"
,
prop
:
"
address
"
,
type
:
""
,
align
:
"
center
"
},
{
label
:
"
审批时间
"
,
prop
:
"
address
"
,
type
:
""
,
align
:
"
center
"
},
{
label
:
"
申请状态
"
,
prop
:
"
address
"
,
type
:
""
,
align
:
"
center
"
},
{
label
:
"
应用名称
"
,
prop
:
"
app_name
"
,
type
:
"
button
"
,
callback
:
this
.
detailItem
,
},
{
label
:
"
应用版本
"
,
prop
:
"
version
"
,
align
:
"
center
"
,
},
{
label
:
"
应用类型
"
,
prop
:
"
type_name
"
,
align
:
"
center
"
,
},
{
label
:
"
业务领域
"
,
prop
:
"
ywly_name
"
,
align
:
"
center
"
,
},
{
label
:
"
在线区域
"
,
prop
:
"
online_state_name
"
,
align
:
"
center
"
,
},
{
label
:
"
申请类型
"
,
prop
:
"
apply_type_name
"
,
align
:
"
center
"
,
},
{
label
:
"
审批时间
"
,
prop
:
"
apply_date
"
,
align
:
"
center
"
,
},
{
label
:
"
申请状态
"
,
prop
:
"
apply_status
"
,
align
:
"
center
"
,
},
{
label
:
"
操作
"
,
type
:
"
Button
"
,
type
:
"
buttons
"
,
align
:
"
center
"
,
width
:
160
,
bt
nList
:
[
actio
nList
:
[
{
type
:
"
action-approval
"
,
label
:
"
审批
"
,
line
:
"
|
"
,
callback
:
this
.
approvalItem
,
},
{
type
:
"
action-delete
"
,
label
:
"
删除
"
,
class
:
"
warn
"
,
callback
:
this
.
deleteItem
,
},
],
},
...
...
@@ -522,7 +759,7 @@ export default {
let
listUrl
=
[
"
/apaas/hubApi/market/list
"
,
"
/apaas/hubApi/market/deployList
"
,
"
/apaas/hubApi/market/
deplo
yList
"
,
"
/apaas/hubApi/market/
appl
yList
"
,
];
let
params
=
{};
...
...
@@ -581,34 +818,117 @@ export default {
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();
};
if
(
this
.
cardType
===
0
)
{
if
(
item
.
online_state
==
0
)
{
this
.
dialogInfo
.
title
=
""
;
this
.
dialogInfo
.
msg
=
"
是否删除该条应用?
"
;
this
.
dialogInfo
.
cancelText
=
""
;
this
.
dialogInfo
.
sunbmitText
=
""
;
this
.
dialogInfo
.
submit
=
()
=>
{
this
.
$http
.
delete
(
`/apaas/hubApi/market/del/
${
item
.
app_id
}
`
)
.
then
(({
data
})
=>
{
if
(
data
.
success
)
{
this
.
$message
({
message
:
`删除
${
item
.
app_name
}
成功.`
,
type
:
"
success
"
,
});
this
.
initDatas
(
this
.
tempFliter
);
}
else
{
this
.
$message
({
message
:
`删除
${
item
.
app_name
}
失败.`
,
type
:
"
warning
"
,
});
}
})
.
catch
((
error
)
=>
{
this
.
$message
({
message
:
`删除
${
item
.
app_name
}
失败.`
,
type
:
"
warning
"
,
});
});
};
}
else
{
this
.
dialogInfo
.
title
=
"
删除提示
"
;
this
.
dialogInfo
.
msg
=
"
您需要先进行应用商店下架申请,应用处于下架状态时才能进行删除操作。
"
;
this
.
dialogInfo
.
cancelText
=
""
;
this
.
dialogInfo
.
sunbmitText
=
""
;
this
.
dialogInfo
.
submit
=
()
=>
{
if
(
item
.
up_deploy_status
===
3
)
{
this
.
$message
({
message
:
`
${
item
.
app_name
}
正在申请下架中.`
,
type
:
"
warning
"
,
});
}
else
{
this
.
$http
.
put
(
`/apaas/hubApi/market/deployStatus/
${
item
.
app_id
}
/3`
)
.
then
(({
data
})
=>
{
if
(
data
.
success
)
{
this
.
$message
({
message
:
`申请下架
${
item
.
app_name
}
成功.`
,
type
:
"
success
"
,
});
this
.
initDatas
(
this
.
tempFliter
);
}
else
{
this
.
$message
({
message
:
`申请下架
${
item
.
app_name
}
失败.`
,
type
:
"
warning
"
,
});
}
})
.
catch
((
error
)
=>
{
this
.
$message
({
message
:
`申请下架
${
item
.
app_name
}
失败.`
,
type
:
"
warning
"
,
});
});
}
};
}
}
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
.
dialogInfo
.
cancelText
=
""
;
this
.
dialogInfo
.
sunbmitText
=
"
发送通知
"
;
this
.
dialogInfo
.
submit
=
()
=>
{
this
.
$http
.
delete
(
`/apaas/hubApi/market/deploy/
${
item
.
deploy_name
}
`
,
{
params
:
{
deployId
:
item
.
deploy_id
,
},
})
.
then
(({
data
})
=>
{
if
(
data
.
success
)
{
this
.
$message
({
message
:
`删除
${
item
.
deploy_name
}
成功.`
,
type
:
"
success
"
,
});
this
.
initDatas
(
this
.
tempFliter
);
}
else
{
this
.
$message
({
message
:
`删除
${
item
.
deploy_name
}
失败.`
,
type
:
"
warning
"
,
});
}
})
.
catch
((
error
)
=>
{
this
.
$message
({
message
:
`删除
${
item
.
deploy_name
}
失败.`
,
type
:
"
warning
"
,
});
});
};
}
this.$refs.
myConfirm.showModel(); */
this
.
$refs
.
dialog
.
show
();
},
deploymentAction
(
item
)
{
console
.
log
(
"
deployment
"
+
item
.
app_name
);
console
.
log
(
"
一键部署功能设计中···
"
);
},
// TODO: 一键部署功能设计中
changePageSize
(
value
)
{
this
.
pageSize
=
value
;
this
.
currentPage
=
1
;
...
...
@@ -622,6 +942,15 @@ export default {
deleteItem
(
item
)
{
console
.
log
(
"
delete ---
"
+
item
.
id
);
},
detailItem
(
item
)
{
this
.
$router
.
push
(
`
${
this
.
detailsUrl
+
item
.
app_id
}
`
);
},
soldUpItem
(
item
)
{
console
.
log
(
`上架
${
item
.
app_name
}
`
);
},
soldOutItem
(
item
)
{
console
.
log
(
`下架
${
item
.
app_name
}
`
);
},
editItem
(
item
)
{
this
.
$router
.
push
(
`/yygl/
${
this
.
level
}
/
${
this
.
type
}
/edit/
${
item
.
id
}
`
);
},
...
...
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