Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
founder_vue
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
常超
founder_vue
Commits
2883197f
Commit
2883197f
authored
Aug 30, 2021
by
liyuhang19990520
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更改可视化显示配置
parent
217602b1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
18 deletions
+23
-18
src/components/RelationalGraph.vue
+21
-16
src/setting.js
+2
-2
No files found.
src/components/RelationalGraph.vue
View file @
2883197f
...
...
@@ -123,7 +123,7 @@ export default {
label
:
"中心布局"
,
layoutName
:
"center"
,
layoutClassName
:
"seeks-layout-center"
,
distance_coefficient
:
"0.
9
"
,
distance_coefficient
:
"0.
5
"
,
},
],
defaultJunctionPoint
:
"border"
,
...
...
@@ -288,7 +288,7 @@ export default {
}
});
seeksRGGraph
.
graphSetting
.
layouter
.
stop
();
},
1
0
);
},
300
0
);
}
);
}
else
{
...
...
@@ -341,14 +341,8 @@ export default {
* @return {*}
*/
createNode
(
data
,
boo
)
{
//先给根节点上色,在管后面的节点
data
.
forEach
((
item
)
=>
{
if
(
item
.
children
&&
Array
.
isArray
(
item
.
children
)
&&
item
.
children
.
length
>
0
)
{
this
.
createNode
(
item
.
children
);
}
if
(
!
this
.
nodeArr
.
find
((
i
)
=>
i
.
id
==
item
.
name
))
{
let
base64
=
"data:image/jpg;base64,"
+
item
.
img
;
if
(
!
item
.
img
)
base64
=
this
.
selectIcon
(
item
.
type
,
true
);
...
...
@@ -367,6 +361,15 @@ export default {
});
}
});
data
.
forEach
((
item
)
=>
{
if
(
item
.
children
&&
Array
.
isArray
(
item
.
children
)
&&
item
.
children
.
length
>
0
)
{
this
.
createNode
(
item
.
children
);
}
});
},
/**
* @description: 处理link
...
...
@@ -384,13 +387,15 @@ export default {
this
.
createLink
(
item
.
children
,
item
.
name
);
}
if
(
parentId
)
{
this
.
linkArr
.
push
({
from
:
parentId
,
to
:
item
.
name
,
text
:
item
.
value
||
""
,
color
:
"#1789DB"
,
fontColor
:
"#000"
,
});
if
(
parentId
!==
item
.
name
)
{
this
.
linkArr
.
push
({
from
:
parentId
,
to
:
item
.
name
,
text
:
item
.
value
||
""
,
color
:
"#1789DB"
,
fontColor
:
"#000"
,
});
}
}
});
},
...
...
src/setting.js
View file @
2883197f
/*
* @Author: your name
* @Date: 2021-06-20 11:48:40
* @LastEditTime: 2021-08-
27 12:18:3
0
* @LastEditTime: 2021-08-
30 09:12:5
0
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \control_platform\src\settings.js
...
...
@@ -22,5 +22,5 @@ module.exports = {
// 湖南可视化
BaseURL3
:
"/hnapi"
,
// 打包方式阿里云(aly) 和 公安网(gaw)
packType
:
'
gaw
'
packType
:
'
aly
'
}
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