Commit d963d807 authored by 张俊's avatar 张俊

替换应用地址

parent e891f1cc
...@@ -209,7 +209,7 @@ export default { ...@@ -209,7 +209,7 @@ export default {
}, },
adelete(val){ adelete(val){
this.$http this.$http
.delete(`/awecloud/rest/kubernetes/api/v1/_raw/pod/namespace/${val.namespace}/name/${val.name}`) .delete(`/apaas/rest/kubernetes/api/v1/_raw/pod/namespace/${val.namespace}/name/${val.name}`)
.then(response => { .then(response => {
this.$message.success('删除成功') this.$message.success('删除成功')
this.get_list_pod() this.get_list_pod()
...@@ -238,14 +238,14 @@ export default { ...@@ -238,14 +238,14 @@ export default {
}, },
gotopage(val){ gotopage(val){
this.$http this.$http
.get(`/awecloud/rest/kubernetes/api/v1/_raw/pod/namespace/${val.namespace}/name/${val.name}`) .get(`/apaas/rest/kubernetes/api/v1/_raw/pod/namespace/${val.namespace}/name/${val.name}`)
.then(response => { .then(response => {
this.$router.push(`/yygl/${this.$route.params.level}/${this.$route.params.type}/appdebuggerdetail/${this.$route.params.deploy_id}?content=0&namespace=${val.namespace}&name=${val.name}&container=${response.data.spec.containers[0].name}`) this.$router.push(`/yygl/${this.$route.params.level}/${this.$route.params.type}/appdebuggerdetail/${this.$route.params.deploy_id}?content=0&namespace=${val.namespace}&name=${val.name}&container=${response.data.spec.containers[0].name}`)
}) })
}, },
gotopage1(val){ gotopage1(val){
this.$http this.$http
.get(`/awecloud/rest/kubernetes/api/v1/_raw/pod/namespace/${val.namespace}/name/${val.name}`) .get(`/apaas/rest/kubernetes/api/v1/_raw/pod/namespace/${val.namespace}/name/${val.name}`)
.then(response => { .then(response => {
this.$router.push(`/yygl/${this.$route.params.level}/${this.$route.params.type}/appdebuggerdetail/${this.$route.params.deploy_id}?content=1&namespace=${val.namespace}&name=${val.name}&container=${response.data.spec.containers[0].name}`) this.$router.push(`/yygl/${this.$route.params.level}/${this.$route.params.type}/appdebuggerdetail/${this.$route.params.deploy_id}?content=1&namespace=${val.namespace}&name=${val.name}&container=${response.data.spec.containers[0].name}`)
}) })
...@@ -311,7 +311,7 @@ export default { ...@@ -311,7 +311,7 @@ export default {
lookrecord(val){ lookrecord(val){
console.log(val); console.log(val);
this.$http this.$http
.get(`/awecloud/rest/kubernetes/api/v1/_raw/pod/namespace/${val.namespace}/name/${val.name}`) .get(`/apaas/rest/kubernetes/api/v1/_raw/pod/namespace/${val.namespace}/name/${val.name}`)
.then(response => { .then(response => {
console.log(response.data); console.log(response.data);
this.yaml_arr = yaml.stringify(response.data) this.yaml_arr = yaml.stringify(response.data)
......
...@@ -174,7 +174,7 @@ export default { ...@@ -174,7 +174,7 @@ export default {
containers: this.$route.params.containers containers: this.$route.params.containers
}; };
this.$http this.$http
.get(`/awecloud/rest/kubernetes/api/v1/pod/${this.$route.query.namespace}/${this.$route.query.name}/shell/${this.$route.query.container}`) .get(`/apaas/rest/kubernetes/api/v1/pod/${this.$route.query.namespace}/${this.$route.query.name}/shell/${this.$route.query.container}`)
.then((response) => { .then((response) => {
this.id = response.data.id; this.id = response.data.id;
if (this.id != undefined && this.id.length > 0) { if (this.id != undefined && this.id.length > 0) {
...@@ -270,7 +270,7 @@ export default { ...@@ -270,7 +270,7 @@ export default {
}, },
get_contain_list(){ get_contain_list(){
this.$http this.$http
.get(`/awecloud/rest/kubernetes/api/v1/pod/${this.$route.query.namespace}/${this.$route.query.name}/container`) .get(`/apaas/rest/kubernetes/api/v1/pod/${this.$route.query.namespace}/${this.$route.query.name}/container`)
.then((response) => { .then((response) => {
this.pod_arr = response.data.containers; this.pod_arr = response.data.containers;
}) })
...@@ -349,7 +349,7 @@ export default { ...@@ -349,7 +349,7 @@ export default {
}, },
get_pod_list(){ get_pod_list(){
this.$http this.$http
.get(`/awecloud/rest/kubernetes/api/v1/log/source/${this.$route.query.namespace}/${this.$route.query.name}/pod`) .get(`/apaas/rest/kubernetes/api/v1/log/source/${this.$route.query.namespace}/${this.$route.query.name}/pod`)
.then((response) => { .then((response) => {
console.log(response); console.log(response);
this.pod_arr = response.data.containerNames this.pod_arr = response.data.containerNames
...@@ -357,7 +357,7 @@ export default { ...@@ -357,7 +357,7 @@ export default {
}) })
}, },
get_now_pod(url){ get_now_pod(url){
var temp_url = `/awecloud/rest/kubernetes/api/v1/log/${this.$route.query.namespace}/${this.$route.query.name}/${this.$route.query.container}` var temp_url = `/apaas/rest/kubernetes/api/v1/log/${this.$route.query.namespace}/${this.$route.query.name}/${this.$route.query.container}`
this.$http this.$http
.get(temp_url,{params:url}) .get(temp_url,{params:url})
...@@ -451,7 +451,7 @@ export default { ...@@ -451,7 +451,7 @@ export default {
},100) },100)
this.$refs.actiondialog.show(); this.$refs.actiondialog.show();
this.$http this.$http
.get(`/awecloud/rest/kubernetes/api/v1/log/file/${this.$route.query.namespace}/${this.$route.query.name}/${this.$route.query.container}?previous=${this.control_arr[2]==1}`) .get(`/apaas/rest/kubernetes/api/v1/log/file/${this.$route.query.namespace}/${this.$route.query.name}/${this.$route.query.container}?previous=${this.control_arr[2]==1}`)
.then((response) => { .then((response) => {
if (response.status == 200) { if (response.status == 200) {
this.process = 100; this.process = 100;
......
module.exports = { module.exports = {
"harbor": "/awecloud/rest/harbor/api", "harbor": "/apaas/rest/harbor/api",
}; };
\ No newline at end of file
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