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

namespace请求单个运行状态

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