Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
szse
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
zhaochengxiang
szse
Commits
dce4bc47
Commit
dce4bc47
authored
Apr 07, 2021
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化关系图
parent
a06a1b59
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
18 deletions
+6
-18
Org.jsx
src/view/Manage/Map/Component/Org.jsx
+1
-1
Relation.jsx
src/view/Manage/Map/Component/Relation.jsx
+3
-15
Tree.jsx
src/view/Manage/Map/Component/Tree.jsx
+1
-1
MapContent.jsx
src/view/Manage/Map/MapContent.jsx
+1
-1
No files found.
src/view/Manage/Map/Component/Org.jsx
View file @
dce4bc47
...
...
@@ -260,7 +260,7 @@ class Org extends React.Component {
if
(
!
children
&&
loadMoreData
)
{
loadMoreData
(
model
.
dirId
||
''
,
nodeId
);
}
}
else
{
}
else
if
(
model
.
dbType
!==
'Root'
)
{
//通过资产id跳转到资产详情页
// model.tableModelId
// history && history.push(`${ContextPath}/home`);
...
...
src/view/Manage/Map/Component/Relation.jsx
View file @
dce4bc47
...
...
@@ -155,17 +155,11 @@ class Relation extends React.Component {
],
},
layout
:
{
type
:
'
compactBox
'
,
type
:
'
dendrogram
'
,
direction
:
'RL'
,
getId
:
function
getId
(
d
)
{
return
d
.
id
;
},
getHeight
:
()
=>
{
return
26
;
},
getWidth
:
()
=>
{
return
26
;
},
getVGap
:
()
=>
{
return
20
;
},
...
...
@@ -185,13 +179,6 @@ class Relation extends React.Component {
type
:
'cubic-horizontal'
,
size
:
2
,
color
:
'#e2e2e2'
,
// style: {
// endArrow: {
// path: 'M 0,0 L 12, 6 L 9,0 L 12, -6 Z',
// fill: '#91d5ff',
// d: -40,
// },
// }
},
});
...
...
@@ -230,12 +217,13 @@ class Relation extends React.Component {
const
nodeId
=
node
.
get
(
'id'
);
const
model
=
node
.
getModel
();
console
.
log
(
'model'
,
model
);
if
(
model
.
dbType
===
'Dir'
)
{
const
children
=
model
.
children
;
if
(
!
children
&&
loadMoreData
)
{
loadMoreData
(
model
.
dirId
||
''
,
nodeId
);
}
}
else
{
}
else
if
(
model
.
dbType
!==
'Root'
)
{
//通过资产id跳转到资产详情页
// model.tableModelId
// history && history.push(`${ContextPath}/home`);
...
...
src/view/Manage/Map/Component/Tree.jsx
View file @
dce4bc47
...
...
@@ -221,7 +221,7 @@ class Tree extends React.Component {
if
(
!
children
&&
loadMoreData
)
{
loadMoreData
(
model
.
dirId
||
''
,
nodeId
);
}
}
else
{
}
else
if
(
model
.
dbType
!==
'Root'
)
{
//通过资产id跳转到资产详情页
// model.tableModelId
// history && history.push(`${ContextPath}/home`);
...
...
src/view/Manage/Map/MapContent.jsx
View file @
dce4bc47
...
...
@@ -79,7 +79,7 @@ class MapContent extends React.Component {
return
{
text
:
topic
.
name
||
''
,
id
:
`t
${
topic
.
id
}
`
,
dbType
:
'
Dir
'
,
dbType
:
'
Root
'
,
children
:
data
};
}
...
...
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