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

topo

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