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
752c769b
Commit
752c769b
authored
Jul 09, 2020
by
徐一鸣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
应用构建fixed
parent
73cc6d5b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
30 deletions
+47
-30
src/components/image-detail.vue
src/components/image-detail.vue
+4
-4
src/pages/workbench/app_build.vue
src/pages/workbench/app_build.vue
+43
-26
No files found.
src/components/image-detail.vue
View file @
752c769b
<
template
>
<div
class=
"image_detail"
>
<apass-dialog
ref=
"listdialog"
:title=
"title"
width=
"1
2
00px"
>
<apass-dialog
ref=
"listdialog"
:title=
"title"
width=
"1
4
00px"
>
<template
slot=
"content"
>
<div
class=
"apass_table"
>
<el-table
:data=
"imageData"
>
<el-table-column
width=
"20"
></el-table-column>
<el-table-column
label=
"版本号"
width=
"120"
align=
"left"
>
<el-table-column
label=
"版本号"
align=
"left"
>
<template
slot-scope=
"scope"
>
{{
scope
.
row
.
name
}}
</
template
>
...
...
@@ -15,7 +15,7 @@
{{
scope
.
row
.
author
}}
</
template
>
</el-table-column>
<el-table-column
label=
"镜像地址"
align=
"left"
>
<el-table-column
label=
"镜像地址"
width=
"400"
align=
"left"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
image_url
}}
</
template
>
...
...
@@ -30,7 +30,7 @@
{{
getSize
(
scope
.
row
.
size
)
}}
</
template
>
</el-table-column>
<el-table-column
label=
"漏洞"
align=
"center"
>
<el-table-column
label=
"漏洞"
width=
"100"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<image-bugs
v-if=
"scope.row.scan_overview"
...
...
src/pages/workbench/app_build.vue
View file @
752c769b
...
...
@@ -397,39 +397,47 @@ export default {
}
},
imageUploadChange
(
file
)
{
if
(
file
.
raw
.
type
!==
"
application/x-tar
"
)
{
/*
if (file.raw.type !== "application/x-tar") {
this.$message.error("镜像文件只能是 TAR 格式!");
this.image_info.file = "";
this.$refs.step1_upload.clearFiles();
} else { */
this
.
image_info
.
file
=
file
;
this
.
$refs
.
step1_upload_item
.
clearValidate
();
// }
},
imageUploadSuccess
(
response
)
{
if
(
response
.
success
==
1
)
{
this
.
$message
({
message
:
`上传镜像成功`
,
type
:
"
success
"
,
});
this
.
image_info
.
image_name
=
""
;
this
.
image_info
.
tag
=
""
;
this
.
image_info
.
file
=
""
;
this
.
$refs
.
step1_upload
.
clearFiles
();
this
.
step1UplaodLoading
=
false
;
this
.
image_datas
=
[];
this
.
image_page
=
1
;
this
.
initImageList
();
}
else
{
this
.
image_info
.
file
=
file
;
this
.
$refs
.
step1_upload_item
.
clearValidate
();
this
.
$message
({
message
:
response
.
errMsg
||
`上传镜像失败`
,
type
:
"
warning
"
,
});
this
.
step1UplaodLoading
=
false
;
}
},
imageUpload
Success
(
response
)
{
imageUpload
Error
(
)
{
this
.
$message
({
message
:
`上传镜像
成功
`
,
type
:
"
success
"
,
message
:
`上传镜像
失败
`
,
type
:
"
warning
"
,
});
this
.
image_info
.
image_name
=
""
;
this
.
image_info
.
tag
=
""
;
this
.
image_info
.
file
=
""
;
this
.
$refs
.
step1_upload
.
clearFiles
();
this
.
step1UplaodLoading
=
false
;
this
.
image_datas
=
[];
this
.
image_page
=
1
;
this
.
initImageList
();
},
imageUploadRemove
()
{
this
.
image_info
.
file
=
""
;
},
imageUploadError
(
response
)
{
this
.
$message
({
message
:
`上传失败`
,
type
:
"
warning
"
,
});
this
.
step1UplaodLoading
=
false
;
},
submitImage
(
formName
)
{
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
if
(
valid
)
{
...
...
@@ -540,18 +548,27 @@ export default {
this
.
deploy_info
.
file
=
""
;
},
deployUploadSuccess
(
response
)
{
this
.
$message
({
message
:
`提交成功`
,
type
:
"
success
"
,
});
this
.
submitLoading
=
false
;
this
.
$router
.
push
(
"
/yygl/2/0
"
);
if
(
response
.
success
==
1
)
{
this
.
$message
({
message
:
`提交成功`
,
type
:
"
success
"
,
});
this
.
submitLoading
=
false
;
this
.
$router
.
push
(
"
/yygl/2/0
"
);
}
else
{
this
.
$message
({
message
:
response
.
errMsg
||
`提交失败`
,
type
:
"
warning
"
,
});
this
.
submitLoading
=
false
;
}
},
deployUploadError
()
{
this
.
$message
({
message
:
`提交失败`
,
type
:
"
warning
"
,
});
this
.
submitLoading
=
false
;
},
sunbmitAction
(
formName
)
{
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
...
...
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