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
e5f183e3
Commit
e5f183e3
authored
Apr 08, 2021
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
地图优化
parent
a3bfb14b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
9 deletions
+12
-9
Org.jsx
src/view/Manage/Map/Component/Org.jsx
+2
-2
Relation.jsx
src/view/Manage/Map/Component/Relation.jsx
+1
-1
SquareItem.jsx
src/view/Manage/Map/Component/SquareItem.jsx
+7
-4
Tree.jsx
src/view/Manage/Map/Component/Tree.jsx
+2
-2
No files found.
src/view/Manage/Map/Component/Org.jsx
View file @
e5f183e3
...
...
@@ -67,7 +67,7 @@ class Org extends React.Component {
const
bbox
=
text
.
getBBox
();
if
(
cfg
.
dbType
===
'Dir'
)
{
if
(
cfg
.
dbType
===
'
Root'
||
cfg
.
dbType
===
'
Dir'
)
{
if
(
!
cfg
.
children
)
{
group
.
addShape
(
'marker'
,
{
attrs
:
{
...
...
@@ -96,7 +96,7 @@ class Org extends React.Component {
rect
.
attr
({
x
:
bbox
.
minX
-
10
,
y
:
bbox
.
minY
-
10
,
width
:
bbox
.
width
+
(
cfg
.
dbType
===
'Dir'
&&
(
!
cfg
.
children
||
((
cfg
.
children
||
[]).
length
>
0
))
?
38
:
20
),
width
:
bbox
.
width
+
(
(
cfg
.
dbType
===
'Root'
||
cfg
.
dbType
===
'Dir'
)
&&
(
!
cfg
.
children
||
((
cfg
.
children
||
[]).
length
>
0
))
?
38
:
20
),
height
:
bbox
.
height
+
20
,
});
...
...
src/view/Manage/Map/Component/Relation.jsx
View file @
e5f183e3
...
...
@@ -78,7 +78,7 @@ class Relation extends React.Component {
const
bbox
=
text
.
getBBox
();
if
(
cfg
.
dbType
===
'Dir'
)
{
if
(
cfg
.
dbType
===
'
Root'
||
cfg
.
dbType
===
'
Dir'
)
{
if
(
!
cfg
.
children
)
{
group
.
addShape
(
'marker'
,
{
attrs
:
{
...
...
src/view/Manage/Map/Component/SquareItem.jsx
View file @
e5f183e3
import
React
from
'react'
;
import
{
Card
}
from
'antd'
;
import
{
FolderAddOutlined
,
FileOutlined
}
from
'@ant-design/icons'
;
import
'./SquareItem.less'
;
...
...
@@ -24,15 +25,17 @@ class SquareItem extends React.Component {
{
item
&&
(
item
.
dbType
===
'Dir'
?
<
Card
title=
{
<
div
className=
'pointer'
onClick=
{
this
.
onItemClick
}
>
{
item
.
dirName
||
''
}
<
div
className=
'd-flex pointer'
style=
{
{
alignItems
:
'center'
}
}
onClick=
{
this
.
onItemClick
}
>
<
FolderAddOutlined
className=
'mr-1'
/>
<
span
>
{
item
.
dirName
||
''
}
</
span
>
</
div
>
}
>
<
p
>
{
`数据资产: ${item.tableModelCount}`
}
</
p
>
<
p
>
{
`资产编目: ${item.subDirCount}`
}
</
p
>
</
Card
>
:
<
Card
title=
{
<
div
className=
'pointer'
onClick=
{
this
.
onItemClick
}
>
{
item
.
name
||
''
}
<
div
className=
'd-flex pointer'
style=
{
{
alignItems
:
'center'
}
}
onClick=
{
this
.
onItemClick
}
>
<
FileOutlined
className=
'mr-1'
/>
<
span
>
{
item
.
name
||
''
}
</
span
>
</
div
>
}
>
<
p
>
{
`所属系统: ${item.system||''}`
}
</
p
>
...
...
src/view/Manage/Map/Component/Tree.jsx
View file @
e5f183e3
...
...
@@ -68,7 +68,7 @@ class Tree extends React.Component {
const
bbox
=
text
.
getBBox
();
if
(
cfg
.
dbType
===
'Dir'
)
{
if
(
cfg
.
dbType
===
'
Root'
||
cfg
.
dbType
===
'
Dir'
)
{
if
(
!
cfg
.
children
)
{
group
.
addShape
(
'marker'
,
{
attrs
:
{
...
...
@@ -97,7 +97,7 @@ class Tree extends React.Component {
rect
.
attr
({
x
:
bbox
.
minX
-
10
,
y
:
bbox
.
minY
-
10
,
width
:
bbox
.
width
+
(
cfg
.
dbType
===
'Dir'
&&
(
!
cfg
.
children
||
((
cfg
.
children
||
[]).
length
>
0
))
?
38
:
20
),
width
:
bbox
.
width
+
(
(
cfg
.
dbType
===
'Root'
||
cfg
.
dbType
===
'Dir'
)
&&
(
!
cfg
.
children
||
((
cfg
.
children
||
[]).
length
>
0
))
?
38
:
20
),
height
:
bbox
.
height
+
20
,
});
...
...
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