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

一键部署调试

parent 923f1b9d
......@@ -203,29 +203,29 @@
style="margin-top: 30px;"
></deployment-info>
<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 type="primary" v-if="finallyState === 2">
<el-button
type="primary"
v-if="finallyState === 2"
@click="finallyAction2"
>
重新部署
</el-button>
</div>
</app-build-step>
</app-build-steps>
<apass-dialog
ref="dialog"
:title="dialogInfo.title"
:msg="dialogInfo.msg"
:submit="dialogInfo.submit"
></apass-dialog>
</div>
</template>
<script>
import appBuildSteps from "@/components/app-build-steps/app-build-steps";
import appBuildStep from "@/components/app-build-steps/app-build-step";
import apassDialog from "@/components/apass-dialog";
import codes from "@/components/codes";
import yaml from "js-yaml";
var checkNumber = (rule, value, callback) => {
......@@ -253,7 +253,6 @@ export default {
components: {
appBuildSteps,
appBuildStep,
apassDialog,
deploymentInfo,
"v-apaas-code": codes,
},
......@@ -261,11 +260,6 @@ export default {
step: 0,
senior_flag: false,
begin_code: "",
dialogInfo: {
title: "",
msg: "",
submit: null,
},
baseInfoForm: {
namespace: "",
name: "",
......@@ -320,6 +314,7 @@ export default {
],
},
step2_arr: [],
deploy_id: "",
evtUuid: "",
evtSource: null,
stateList: [],
......@@ -458,8 +453,9 @@ export default {
.post(`/apaas/hubApi/market/build`, temp)
.then((response) => {
this.is_loading = false;
if (response.data.data) {
this.$message.success("开始部署成功");
if (response.data.success === 1) {
// this.$message.success("开始部署成功");
this.deploy_id = response.data.data.deploy_id;
this.next_step();
}
})
......@@ -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_name_space();
this.get_step_info();
this.get_step_file();
},
},
created() {
this.init();
},
};
</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