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
4def35d3
Commit
4def35d3
authored
Jul 02, 2020
by
徐一鸣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
一键部署调试
parent
923f1b9d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
22 deletions
+28
-22
src/pages/workbench/yygl/deployment.vue
src/pages/workbench/yygl/deployment.vue
+28
-22
No files found.
src/pages/workbench/yygl/deployment.vue
View file @
4def35d3
...
@@ -203,29 +203,29 @@
...
@@ -203,29 +203,29 @@
style=
"margin-top: 30px;"
style=
"margin-top: 30px;"
></deployment-info>
></deployment-info>
<div
class=
"apass_button step_action"
>
<div
class=
"apass_button step_action"
>
<el-button
type=
"primary"
v-if=
"finallyState === 1"
>
<el-button
type=
"primary"
v-if=
"finallyState === 1"
@
click=
"finallyAction1"
>
前往查看
前往查看
</el-button>
</el-button>
<el-button
type=
"primary"
v-if=
"finallyState === 2"
>
<el-button
type=
"primary"
v-if=
"finallyState === 2"
@
click=
"finallyAction2"
>
重新部署
重新部署
</el-button>
</el-button>
</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>
<
script
>
<
script
>
import
appBuildSteps
from
"
@/components/app-build-steps/app-build-steps
"
;
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
apassDialog
from
"
@/components/apass-dialog
"
;
import
codes
from
"
@/components/codes
"
;
import
codes
from
"
@/components/codes
"
;
import
yaml
from
"
js-yaml
"
;
import
yaml
from
"
js-yaml
"
;
var
checkNumber
=
(
rule
,
value
,
callback
)
=>
{
var
checkNumber
=
(
rule
,
value
,
callback
)
=>
{
...
@@ -253,7 +253,6 @@ export default {
...
@@ -253,7 +253,6 @@ export default {
components
:
{
components
:
{
appBuildSteps
,
appBuildSteps
,
appBuildStep
,
appBuildStep
,
apassDialog
,
deploymentInfo
,
deploymentInfo
,
"
v-apaas-code
"
:
codes
,
"
v-apaas-code
"
:
codes
,
},
},
...
@@ -261,11 +260,6 @@ export default {
...
@@ -261,11 +260,6 @@ export default {
step
:
0
,
step
:
0
,
senior_flag
:
false
,
senior_flag
:
false
,
begin_code
:
""
,
begin_code
:
""
,
dialogInfo
:
{
title
:
""
,
msg
:
""
,
submit
:
null
,
},
baseInfoForm
:
{
baseInfoForm
:
{
namespace
:
""
,
namespace
:
""
,
name
:
""
,
name
:
""
,
...
@@ -320,6 +314,7 @@ export default {
...
@@ -320,6 +314,7 @@ export default {
],
],
},
},
step2_arr
:
[],
step2_arr
:
[],
deploy_id
:
""
,
evtUuid
:
""
,
evtUuid
:
""
,
evtSource
:
null
,
evtSource
:
null
,
stateList
:
[],
stateList
:
[],
...
@@ -458,8 +453,9 @@ export default {
...
@@ -458,8 +453,9 @@ export default {
.
post
(
`/apaas/hubApi/market/build`
,
temp
)
.
post
(
`/apaas/hubApi/market/build`
,
temp
)
.
then
((
response
)
=>
{
.
then
((
response
)
=>
{
this
.
is_loading
=
false
;
this
.
is_loading
=
false
;
if
(
response
.
data
.
data
)
{
if
(
response
.
data
.
success
===
1
)
{
this
.
$message
.
success
(
"
开始部署成功
"
);
// this.$message.success("开始部署成功");
this
.
deploy_id
=
response
.
data
.
data
.
deploy_id
;
this
.
next_step
();
this
.
next_step
();
}
}
})
})
...
@@ -598,13 +594,23 @@ export default {
...
@@ -598,13 +594,23 @@ export default {
}
}
}
}
},
},
finallyAction1
()
{
this
.
$router
.
push
(
`/yygl/0/1/deploydetail/
${
this
.
deploy_id
}
`
);
},
},
created
()
{
finallyAction2
()
{
this
.
init
();
},
init
()
{
this
.
step
=
0
;
this
.
get_status
();
this
.
get_status
();
this
.
get_name_space
();
this
.
get_name_space
();
this
.
get_step_info
();
this
.
get_step_info
();
this
.
get_step_file
();
this
.
get_step_file
();
},
},
},
created
()
{
this
.
init
();
},
};
};
</
script
>
</
script
>
...
...
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