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
f2f67696
Commit
f2f67696
authored
Oct 10, 2020
by
yuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
项目初始化
parent
56a87d51
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
8 deletions
+19
-8
index.vue
datax-ui/src/views/standard/dictmapping/index.vue
+19
-8
No files found.
datax-ui/src/views/standard/dictmapping/index.vue
View file @
f2f67696
...
@@ -140,7 +140,7 @@ export default {
...
@@ -140,7 +140,7 @@ export default {
// 连线的source和target Anchor
// 连线的source和target Anchor
Anchors
:
[
'Right'
,
'Left'
],
Anchors
:
[
'Right'
,
'Left'
],
// 鼠标不能拖动删除线
// 鼠标不能拖动删除线
ConnectionsDetachable
:
fals
e
,
ConnectionsDetachable
:
tru
e
,
// 删除线的时候节点不删除
// 删除线的时候节点不删除
DeleteEndpointsOnDetach
:
false
,
DeleteEndpointsOnDetach
:
false
,
// 连线的样式,有四种默认类型:Bezier(贝塞尔曲线),Straight(直线),Flowchart(流程图),State machine(状态机)
// 连线的样式,有四种默认类型:Bezier(贝塞尔曲线),Straight(直线),Flowchart(流程图),State machine(状态机)
...
@@ -210,17 +210,28 @@ export default {
...
@@ -210,17 +210,28 @@ export default {
})
})
},
},
initEndpoint
()
{
initEndpoint
()
{
console
.
log
(
this
.
leftTableDataList
.
length
)
const
_this
=
this
this
.
leftTableDataList
.
filter
(
item
=>
item
.
status
===
'1'
).
forEach
(
function
(
item
,
index
,
arr
)
{
// 过滤掉已映射数据
this
.
jsPlumb
.
addEndpoint
(
'item_left_'
+
item
.
id
,
{
this
.
leftTableDataList
.
filter
(
item
=>
item
.
status
===
'0'
).
forEach
(
function
(
item
,
index
,
arr
)
{
_this
.
jsPlumb
.
addEndpoint
(
'item_left_'
+
item
.
id
,
{
anchors
:
[
'Right'
],
anchors
:
[
'Right'
],
uuid
:
item
.
id
uuid
:
item
.
id
},{
isSource
:
true
,
isTarget
:
true
,
connector
:
[
'Straight'
]
})
})
this
.
rightTableDataList
.
forEach
(
function
(
item
,
index
,
arr
)
{
_this
.
jsPlumb
.
addEndpoint
(
'item_right_'
+
item
.
id
,
{
anchors
:
[
'Left'
],
uuid
:
item
.
id
},{
isSource
:
true
,
isTarget
:
true
,
connector
:
[
'Straight'
]
})
})
})
})
// this.jsPlumb.addEndpoint('item_right', {
// anchors: ['Left'],
// uuid: 'toId'
// })
// const connection = this.jsPlumb.connect({ uuids: ['fromId', 'toId'] })
// const connection = this.jsPlumb.connect({ uuids: ['fromId', 'toId'] })
// // 初始化label
// // 初始化label
// connection.getOverlay('label-1').setLabel('映射连线')
// connection.getOverlay('label-1').setLabel('映射连线')
...
...
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