|
|
|
@ -1,6 +1,6 @@ |
|
|
|
|
<template> |
|
|
|
|
<transition :name="transitionName"> |
|
|
|
|
<div > |
|
|
|
|
<div> |
|
|
|
|
<div style="margin: 5px 20px"> |
|
|
|
|
<el-steps :active="active" finish-status="success"> |
|
|
|
|
<el-step title="步骤 1"> |
|
|
|
@ -121,7 +121,8 @@ |
|
|
|
|
</div> |
|
|
|
|
<div v-if="active!==3" style="margin:40px 20px 0;text-align: right"> |
|
|
|
|
<el-button @click="last" |
|
|
|
|
:disabled="bind_status|| active===1 ">上一步</el-button> |
|
|
|
|
:disabled="bind_status|| active===1 ">上一步 |
|
|
|
|
</el-button> |
|
|
|
|
<el-button @click="next">下一步</el-button> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
@ -131,6 +132,7 @@ |
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
|
import {domainFun} from "@/restful"; |
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
|
name: 'BindDomain', |
|
|
|
|
props: { |
|
|
|
@ -147,8 +149,8 @@ |
|
|
|
|
return { |
|
|
|
|
active: 1, |
|
|
|
|
bind_status: false, |
|
|
|
|
bind_domain_sure:true, |
|
|
|
|
domain_name:'', |
|
|
|
|
bind_domain_sure: true, |
|
|
|
|
domain_name: '', |
|
|
|
|
domain_tData: [{'type': 'CNAME', 'host': 'xxx', 'dns': 'demo.xxx.cn'}], |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
@ -156,7 +158,7 @@ |
|
|
|
|
this.bind_click() |
|
|
|
|
}, |
|
|
|
|
beforeDestroy() { |
|
|
|
|
this.bind_domain_sure=false; |
|
|
|
|
this.bind_domain_sure = false; |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
check_cname() { |
|
|
|
@ -175,7 +177,7 @@ |
|
|
|
|
this.bind_status = false; |
|
|
|
|
this.$message.error("绑定失败 " + data.msg) |
|
|
|
|
} |
|
|
|
|
}, {methods: 'PUT', data: {app_id:this.app_id}}) |
|
|
|
|
}, {methods: 'PUT', data: {app_id: this.app_id}}) |
|
|
|
|
}, |
|
|
|
|
remove_domain() { |
|
|
|
|
domainFun(data => { |
|
|
|
@ -187,7 +189,7 @@ |
|
|
|
|
} else { |
|
|
|
|
this.$message.error("解除绑定失败 " + data.msg) |
|
|
|
|
} |
|
|
|
|
}, {methods: 'DELETE', data: {app_id:this.app_id}}); |
|
|
|
|
}, {methods: 'DELETE', data: {app_id: this.app_id}}); |
|
|
|
|
}, |
|
|
|
|
bind_click() { |
|
|
|
|
domainFun(data => { |
|
|
|
@ -209,7 +211,7 @@ |
|
|
|
|
} else { |
|
|
|
|
this.$message.error("绑定失败 " + data.msg) |
|
|
|
|
} |
|
|
|
|
}, {methods: 'GET', data: {app_id:this.app_id}}); |
|
|
|
|
}, {methods: 'GET', data: {app_id: this.app_id}}); |
|
|
|
|
}, |
|
|
|
|
format_domain_tData(cname_domain) { |
|
|
|
|
let domain_name_list = this.domain_name.split('.'); |
|
|
|
@ -233,7 +235,7 @@ |
|
|
|
|
} else { |
|
|
|
|
this.$message.error("绑定失败 " + data.msg) |
|
|
|
|
} |
|
|
|
|
}, {methods: 'POST', data: {domain_name: this.domain_name,app_id:this.app_id}}) |
|
|
|
|
}, {methods: 'POST', data: {domain_name: this.domain_name, app_id: this.app_id}}) |
|
|
|
|
} else if (this.active === 2) { |
|
|
|
|
this.check_cname() |
|
|
|
|
} |
|
|
|
@ -246,7 +248,7 @@ |
|
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
<style scoped> |
|
|
|
|
.dialog-footer{ |
|
|
|
|
.dialog-footer { |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
</style> |
|
|
|
|