Commit 47fb5102 authored by 刘殿昕's avatar 刘殿昕

topo

parent 90ff6e03
......@@ -259,7 +259,7 @@
</nor-card>
</div>
<nor-card title="服务调用拓扑图" class="service_card_charts">
<Topology :datas="datas" />
<Topology :datas="datas" class="topology" />
</nor-card>
</div>
<p class="service_title"><span></span>服务调用列表</p>
......@@ -1396,9 +1396,8 @@ export default {
});
},
getData() {
console.log(this.namespace);
this.$api.workbench
.getServiceRunningTopology({ namespace: this.namespace })
.getServiceRunningTopology({ service_id: this.$route.params.id })
.then((response) => {
this.datas = response.data.elements;
});
......@@ -2014,4 +2013,7 @@ export default {
.trans_log {
width: 100%;
}
.topology {
height: 500px;
}
</style>
......@@ -85,7 +85,7 @@ const workbench = {
// get service running topology
getServiceRunningTopology(params) {
return axios.get(`/apaas/istio/v3/api/namespaces/graph`)
return axios.get(`/apaas/istio/v3/api/namespaces/graph?service=apaas-proxy-${params.service_id}&duration=600s`)
},
}
......
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