Commit 4def35d3 authored by 徐一鸣's avatar 徐一鸣

一键部署调试

parent 923f1b9d
...@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment