Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
R
risk-monitor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
蔡建
risk-monitor
Commits
f8767279
提交
f8767279
authored
3月 08, 2026
作者:
刘宇琪
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix g6 liuyuqi
上级
13f19f4e
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
10 行增加
和
13 行删除
+10
-13
RelationGraph.vue
...nction/components/deepMining/components/RelationGraph.vue
+10
-13
没有找到文件。
src/views/exportControl/v2.0SingleSanction/components/deepMining/components/RelationGraph.vue
浏览文件 @
f8767279
<
template
>
<div
class=
"relation-graph-wrapper"
>
<div
class=
"graph-controls"
>
<div
v-for=
"item in controlBtns"
:key=
"item.type"
<div
v-for=
"item in controlBtns"
:key=
"item.type"
:class=
"['control-btn',
{ 'control-btn-active': currentLayoutType === item.type }]"
@click="handleClickControlBtn(item.type)"
>
@click="handleClickControlBtn(item.type)">
<img
:src=
"item.icon"
alt=
""
/>
</div>
</div>
<div
ref=
"containerRef"
class=
"graph-container"
></div>
<div
v-if=
"selectedNode"
class=
"node-popup"
>
<div
class=
"popup-header"
>
<img
:src=
"selectedNode.image || defaultIcon"
alt=
""
class=
"popup-icon"
/>
...
...
@@ -33,9 +30,8 @@
<
script
setup
>
import
{
ref
,
onMounted
,
onUnmounted
,
watch
,
nextTick
}
from
'vue'
import
{
Graph
,
TreeGraph
}
from
'@antv/g6'
import
G6
from
'@antv/g6'
import
{
Close
}
from
'@element-plus/icons-vue'
import
echartsIcon01
from
'../assets/echartsicon01.png'
import
echartsIcon02
from
'../assets/echartsicon02.png'
import
echartsIcon03
from
'../assets/echartsicon03.png'
...
...
@@ -107,7 +103,7 @@ const initNormalGraph = (layoutType, width, height) => {
alphaMin
:
0.001
}
graphInstance
.
value
=
new
Graph
({
graphInstance
.
value
=
new
G
6
.
G
raph
({
container
:
containerRef
.
value
,
width
,
height
,
...
...
@@ -236,7 +232,7 @@ const initCircularGraph = (width, height) => {
centerNode
.
fy
=
centerY
}
graphInstance
.
value
=
new
Graph
({
graphInstance
.
value
=
new
G
6
.
G
raph
({
container
:
containerRef
.
value
,
width
,
height
,
...
...
@@ -342,7 +338,7 @@ const initTreeGraph = (width, height) => {
if
(
!
treeDataSource
)
return
graphInstance
.
value
=
new
TreeGraph
({
graphInstance
.
value
=
new
G6
.
TreeGraph
({
container
:
containerRef
.
value
,
width
,
height
,
...
...
@@ -523,7 +519,7 @@ const processGraphData = (rawData) => {
rawData
.
nodes
.
forEach
((
node
,
index
)
=>
{
const
nodeId
=
String
(
node
.
id
||
index
)
if
(
nodeMap
.
has
(
nodeId
))
{
return
}
...
...
@@ -797,4 +793,4 @@ defineExpose({
}
}
}
</
style
>
</
style
>
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论