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
a9388ff0
Commit
a9388ff0
authored
Jun 24, 2020
by
徐一鸣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
应用构建优化
parent
5324c947
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
12 deletions
+45
-12
src/pages/workbench/app_build.vue
src/pages/workbench/app_build.vue
+45
-12
No files found.
src/pages/workbench/app_build.vue
View file @
a9388ff0
...
@@ -205,7 +205,7 @@
...
@@ -205,7 +205,7 @@
fit=
"fill"
fit=
"fill"
:list=
"logo"
:list=
"logo"
@
getNewList=
"getNewList"
@
getNewList=
"getNewList"
:
directory=
"hub"
directory=
"hub"
></upload-file>
></upload-file>
</el-form-item>
</el-form-item>
<el-form-item
label=
"所属组织:"
prop=
"org"
>
<el-form-item
label=
"所属组织:"
prop=
"org"
>
...
@@ -260,6 +260,13 @@
...
@@ -260,6 +260,13 @@
</div>
</div>
</app-build-step>
</app-build-step>
</app-build-steps>
</app-build-steps>
<apass-dialog
ref=
"dialog"
:title=
"dialogInfo.title"
:msg=
"dialogInfo.msg"
:submit=
"dialogInfo.submit"
></apass-dialog>
</div>
</div>
</
template
>
</
template
>
...
@@ -268,6 +275,7 @@ import appBuildSteps from "@/components/app-build-steps/app-build-steps";
...
@@ -268,6 +275,7 @@ import appBuildSteps from "@/components/app-build-steps/app-build-steps";
import
appBuildStep
from
"
@/components/app-build-steps/app-build-step
"
;
import
appBuildStep
from
"
@/components/app-build-steps/app-build-step
"
;
import
apassTable
from
"
@/components/apass-table
"
;
import
apassTable
from
"
@/components/apass-table
"
;
import
uploadFile
from
"
@/components/upload_file
"
;
import
uploadFile
from
"
@/components/upload_file
"
;
import
apassDialog
from
"
@/components/apass-dialog
"
;
export
default
{
export
default
{
components
:
{
components
:
{
...
@@ -275,6 +283,7 @@ export default {
...
@@ -275,6 +283,7 @@ export default {
appBuildStep
,
appBuildStep
,
apassTable
,
apassTable
,
uploadFile
,
uploadFile
,
apassDialog
,
},
},
data
:
()
=>
({
data
:
()
=>
({
step
:
0
,
step
:
0
,
...
@@ -337,6 +346,11 @@ export default {
...
@@ -337,6 +346,11 @@ export default {
orgs
:
[],
orgs
:
[],
logo
:
[],
logo
:
[],
submitLoading
:
false
,
submitLoading
:
false
,
dialogInfo
:
{
title
:
""
,
msg
:
""
,
submit
:
null
,
},
}),
}),
methods
:
{
methods
:
{
preStep
()
{
preStep
()
{
...
@@ -417,17 +431,36 @@ export default {
...
@@ -417,17 +431,36 @@ export default {
});
});
},
},
deleteItem
(
item
)
{
deleteItem
(
item
)
{
this
.
dialogInfo
.
title
=
""
;
this
.
dialogInfo
.
msg
=
"
是否删除该镜像?
"
;
this
.
dialogInfo
.
submit
=
()
=>
{
this
.
$http
this
.
$http
.
delete
(
`/apaas/hubApi/image/del/
${
item
.
name
}
`
)
.
delete
(
`/apaas/hubApi/image/del/
${
item
.
name
}
`
)
.
then
((
response
)
=>
{
.
then
((
response
)
=>
{
// console.log("已删除" + item.name);
if
(
response
.
data
.
success
==
1
)
{
this
.
$message
({
message
:
`删除成功`
,
type
:
"
success
"
,
});
this
.
image_datas
=
[];
this
.
image_datas
=
[];
this
.
image_page
=
1
;
this
.
image_page
=
1
;
this
.
initImageList
();
this
.
initImageList
();
}
else
{
this
.
$message
({
message
:
`删除失败`
,
type
:
"
warning
"
,
});
}
})
})
.
catch
((
error
)
=>
{
.
catch
((
error
)
=>
{
console
.
log
(
error
);
console
.
log
(
error
);
this
.
$message
({
message
:
`删除失败`
,
type
:
"
warning
"
,
});
});
});
};
this
.
$refs
.
dialog
.
show
();
},
},
goToStep2
(
formName
)
{
goToStep2
(
formName
)
{
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
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