Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
datax-cloud
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
黄营
datax-cloud
Commits
215d16b3
Commit
215d16b3
authored
Aug 11, 2020
by
yuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
项目初始化
parent
c602c70f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
13 deletions
+16
-13
index.vue
datax-ui/src/views/metadata/datamap/index.vue
+16
-13
No files found.
datax-ui/src/views/metadata/datamap/index.vue
View file @
215d16b3
...
...
@@ -134,6 +134,9 @@ export default {
},
handleList
(
arr
,
idx
,
color
,
category
)
{
arr
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
label
===
null
)
{
return
false
}
// 设置节点大小
let
symbolSize
=
10
switch
(
idx
)
{
...
...
@@ -218,7 +221,7 @@ export default {
}
}
let
itemStyle
=
null
if
(
item
.
list
&&
item
.
list
.
length
!==
0
)
{
if
(
item
.
children
&&
item
.
children
.
length
!==
0
)
{
// 非子节点
itemStyle
=
{
borderColor
:
color
.
c2
,
...
...
@@ -246,10 +249,10 @@ export default {
})
if
(
idx
===
1
)
{
category
=
item
.
name
category
=
item
.
label
}
let
obj
=
{
name
:
item
.
name
,
name
:
item
.
label
,
symbolSize
:
symbolSize
,
category
:
category
,
label
,
...
...
@@ -263,28 +266,28 @@ export default {
root
:
true
})
}
if
(
item
.
list
&&
item
.
list
.
length
===
0
)
{
if
(
item
.
children
&&
item
.
children
.
length
===
0
)
{
obj
=
Object
.
assign
(
obj
,
{
isEnd
:
true
})
}
this
.
chartList
.
push
(
obj
)
if
(
item
.
list
&&
item
.
list
.
length
>
0
)
{
this
.
handleList
(
item
.
list
,
idx
+
1
,
color
,
category
)
if
(
item
.
children
&&
item
.
children
.
length
>
0
)
{
this
.
handleList
(
item
.
children
,
idx
+
1
,
color
,
category
)
}
})
},
handleLink
(
arr
,
idx
,
color
)
{
arr
.
forEach
(
item
=>
{
if
(
item
.
list
)
{
item
.
list
.
forEach
((
item2
,
eq
)
=>
{
if
(
item
.
children
)
{
item
.
children
.
forEach
((
item2
,
eq
)
=>
{
if
(
idx
===
0
)
{
color
=
this
.
colors
.
find
((
itemm
,
eq2
)
=>
eq2
===
eq
%
10
)
}
let
lineStyle
=
null
switch
(
idx
)
{
case
0
:
if
(
item2
.
list
.
length
>
0
)
{
if
(
item2
.
children
.
length
>
0
)
{
lineStyle
=
{
normal
:
{
color
:
'target'
...
...
@@ -307,13 +310,13 @@ export default {
break
}
let
obj
=
{
source
:
item
.
label
,
target
:
item2
.
label
,
source
:
item
.
id
,
target
:
item2
.
id
,
lineStyle
}
this
.
chartLinks
.
push
(
obj
)
if
(
item2
.
list
&&
item
.
list
.
length
>
0
)
{
this
.
handleLink
(
item
.
list
,
idx
+
1
)
if
(
item2
.
children
&&
item
.
children
.
length
>
0
)
{
this
.
handleLink
(
item
.
children
,
idx
+
1
)
}
})
}
...
...
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