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