Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
apaas-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gzga-jzapi
apaas-ui
Commits
47fb5102
Commit
47fb5102
authored
Jan 26, 2021
by
刘殿昕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
topo
parent
90ff6e03
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
src/pages/workbench/fwgl/serviceDetail.vue
src/pages/workbench/fwgl/serviceDetail.vue
+5
-3
src/request/api/workbench.js
src/request/api/workbench.js
+1
-1
No files found.
src/pages/workbench/fwgl/serviceDetail.vue
View file @
47fb5102
...
@@ -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
>
src/request/api/workbench.js
View file @
47fb5102
...
@@ -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
`
)
},
},
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment