Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
R
risk-monitor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
蔡建
risk-monitor
Commits
dff685d2
提交
dff685d2
authored
3月 27, 2026
作者:
张烨
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix:政令-修复思维导图错乱问题
上级
7973bc31
流水线
#128
已通过 于阶段
in 1 分 24 秒
变更
2
流水线
1
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
3 行增加
和
3 行删除
+3
-3
MindGraph.vue
src/views/decree/com/MindGraph.vue
+1
-0
index.vue
src/views/decree/decreeLayout/overview/measures/index.vue
+2
-3
没有找到文件。
src/views/decree/com/MindGraph.vue
浏览文件 @
dff685d2
...
@@ -52,6 +52,7 @@ const onInitGraph = () => {
...
@@ -52,6 +52,7 @@ const onInitGraph = () => {
controlPoints
:
true
,
// 节点间连线的控制点
controlPoints
:
true
,
// 节点间连线的控制点
nodesep
:
10
,
// 同一层节点之间的距离
nodesep
:
10
,
// 同一层节点之间的距离
ranksep
:
100
,
// 不同层节点之间的距离
ranksep
:
100
,
// 不同层节点之间的距离
// begin: [250, 100], // 左上角坐标
},
},
modes
:
{
modes
:
{
default
:
[
default
:
[
...
...
src/views/decree/decreeLayout/overview/measures/index.vue
浏览文件 @
dff685d2
...
@@ -322,19 +322,18 @@ const onDecreeMindMap = async () => {
...
@@ -322,19 +322,18 @@ const onDecreeMindMap = async () => {
let
list
=
onUniqueArray
(
Object
.
values
(
res
.
data
||
{}).
flat
(
1
),
'sectionId'
)
let
list
=
onUniqueArray
(
Object
.
values
(
res
.
data
||
{}).
flat
(
1
),
'sectionId'
)
list
.
forEach
((
item
,
index
)
=>
{
list
.
forEach
((
item
,
index
)
=>
{
nodes
.
push
({
id
:
`node-
${
item
.
orderNum
}
-
${
item
.
sectionId
}
`
,
label
:
item
.
textZh
,
maxWidth
:
600
,
labelCfg
})
nodes
.
push
({
id
:
`node-
${
item
.
orderNum
}
-
${
item
.
sectionId
}
`
,
label
:
item
.
textZh
,
maxWidth
:
600
,
labelCfg
,
layer
:
1
})
if
(
item
.
execAgent
?.
length
)
{
if
(
item
.
execAgent
?.
length
)
{
item
.
execAgent
.
forEach
((
label
,
num
)
=>
{
item
.
execAgent
.
forEach
((
label
,
num
)
=>
{
if
(
!
obj
[
label
])
{
if
(
!
obj
[
label
])
{
obj
[
label
]
=
`
${
index
}
-
${
num
}
`
obj
[
label
]
=
`
${
index
}
-
${
num
}
`
nodes
.
push
({
id
:
`node-
${
obj
[
label
]}
`
,
label
})
nodes
.
push
({
id
:
`node-
${
obj
[
label
]}
`
,
label
,
layer
:
0
})
}
}
edges
.
push
({
id
:
`edge-
${
index
}
-
${
num
}
`
,
source
:
`node-
${
obj
[
label
]}
`
,
target
:
`node-
${
item
.
orderNum
}
-
${
item
.
sectionId
}
`
})
edges
.
push
({
id
:
`edge-
${
index
}
-
${
num
}
`
,
source
:
`node-
${
obj
[
label
]}
`
,
target
:
`node-
${
item
.
orderNum
}
-
${
item
.
sectionId
}
`
})
})
})
}
else
{
}
else
{
edges
.
push
({
id
:
`edge-
${
index
}
`
,
source
:
`root-virtual`
,
target
:
`node-
${
item
.
orderNum
}
-
${
item
.
sectionId
}
`
})
edges
.
push
({
id
:
`edge-
${
index
}
`
,
source
:
`root-virtual`
,
target
:
`node-
${
item
.
orderNum
}
-
${
item
.
sectionId
}
`
})
}
}
nodes
.
push
({
id
:
'root-virtual'
,
label
:
'暂无部门'
})
})
})
setTimeout
(()
=>
{
refMindGraph
.
value
.
onMindGraphData
(
nodes
,
edges
)
},
100
)
setTimeout
(()
=>
{
refMindGraph
.
value
.
onMindGraphData
(
nodes
,
edges
)
},
100
)
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论