Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
csbr-daop
/
fe-data-trusted-space
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
778ef458
authored
2025-06-26 18:27:50 +0800
by
lihua
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: 解决关系网问题
1 parent
09d852e0
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
3 deletions
src/components/RelationNetwork/index.vue
src/views/data_meta/standard-query-view.vue
src/views/data_meta/standard-query.vue
src/components/RelationNetwork/index.vue
View file @
778ef45
...
...
@@ -247,6 +247,11 @@ const initGraph = () => {
}
const
data
=
item
.
getModel
();
data
.
collapsed
=
collapsed
;
setTimeout
(()
=>
{
graph
.
focusItem
(
item
,
true
,
{
duration
:
400
// 动画时长为500ms
});
},
500
)
return
true
;
},
shouldBegin
:
(
e
)
=>
{
...
...
@@ -472,7 +477,9 @@ const bindEvents = () => {
}
});
lastSelectNode
.
value
=
item
;
detailInfo
.
value
.
guid
=
model
.
guid
;
detailInfo
.
value
=
{};
// detailInfo.value.guid = model.guid;
detailInfoLabel
.
value
=
model
.
label
||
{};
updateTooltipPosition
(
evt
);
detailLoading
.
value
=
true
;
...
...
src/views/data_meta/standard-query-view.vue
View file @
778ef45
...
...
@@ -7,8 +7,8 @@
<div
className=
'g6-component-topbar'
>
<graphTopbar
ref=
"topBarRef"
@
displaySwitchChange=
"displaySwitchChange"
:isGraphDisplay=
"isGraphDisplay"
/>
</div>
<RelationNetwork
v-show=
"graphTreeData?.guid && isGraphDisplay"
ref=
"relationNetworkRef"
:tree-data=
"graphTreeData"
:noContextMenu=
"true"
@
nodeItemClick=
"handleNodeItemClick"
>
<RelationNetwork
v-show=
"graphTreeData?.guid && isGraphDisplay"
ref=
"relationNetworkRef"
:tree-data=
"graphTreeData"
:noContextMenu=
"true"
@
nodeItemClick=
"handleNodeItemClick"
>
</RelationNetwork>
<Sankey
v-show=
"!isGraphDisplay && (sankeyNames?.length || sankeyDataLoading)"
v-loading=
"sankeyDataLoading"
:tree-data=
"sankeyData"
:names=
"sankeyNames"
>
...
...
@@ -128,6 +128,9 @@ const handleNodeItemClick = (graph, nodeItem) => {
graph
.
layout
();
graph
.
setMinZoom
(
0.5
);
graph
.
setMaxZoom
(
5
);
graph
.
focusItem
(
nodeItem
,
true
,
{
duration
:
400
// 动画时长为500ms
});
},
500
);
}
else
{
parentData
.
isLoading
=
false
;
...
...
src/views/data_meta/standard-query.vue
View file @
778ef45
...
...
@@ -204,6 +204,9 @@ const handleNodeItemClick = (graph, nodeItem) => {
graph
.
layout
();
graph
.
setMinZoom
(
0.5
);
graph
.
setMaxZoom
(
5
);
graph
.
focusItem
(
nodeItem
,
true
,
{
duration
:
500
// 动画时长为500ms
});
},
500
);
}
else
{
parentData
.
isLoading
=
false
;
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment