Commit 6173d950 authored by 刘殿昕's avatar 刘殿昕

namespace请求单个运行状态

parent 7b2060cc
......@@ -80,7 +80,7 @@ export default {
<style scoped>
.com_cell {
display: flex;
justify-content: flex-start;
justify-content: space-between;
padding: 20px 10px;
border-bottom: 2px #f4f7fc solid;
}
......@@ -97,7 +97,7 @@ export default {
}
.com_cell_message {
padding-left: 20px;
width: calc(100% - 420px);
width: calc(100% - 470px);
}
.com_cell_msg_title {
color: #0d1847;
......
......@@ -613,7 +613,8 @@ export default {
});
},
getData() {
this.$api.workbench.getServiceTopology().then((response) => {
console.log(this.namespace)
this.$api.workbench.getServiceRunningTopology({ namespace: this.namespace }).then((response) => {
this.datas = response.data.elements;
});
},
......@@ -626,6 +627,7 @@ export default {
.then((response) => {
if (response.data.success === 1) {
let data = response.data.data;
this.namespace = data.namespace;
if(data.workflows_id){
this.workflows_id = data.workflows_id
}
......
......@@ -82,6 +82,11 @@ const workbench = {
releaseProcess(params) {
return axios.post(`/apaas/serviceapp/v3/workflows/publish`, params)
},
// get service running topology
getServiceRunningTopology(params) {
return axios.get(`/apaas/istio/service/apaas-proxy/overview/${params.namespace}`)
},
}
export default workbench;
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