|
|
@ -55,6 +55,14 @@ onMounted(() => { |
|
|
|
id: '9', |
|
|
|
id: '9', |
|
|
|
label: 'HTML&CSS&Javascript', |
|
|
|
label: 'HTML&CSS&Javascript', |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
id: '10', |
|
|
|
|
|
|
|
label: 'test', |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
id: '11', |
|
|
|
|
|
|
|
label: 'text2', |
|
|
|
|
|
|
|
}, |
|
|
|
], |
|
|
|
], |
|
|
|
edges: [ |
|
|
|
edges: [ |
|
|
|
{ |
|
|
|
{ |
|
|
@ -129,6 +137,24 @@ onMounted(() => { |
|
|
|
date: '学习基础知识', |
|
|
|
date: '学习基础知识', |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
source: '6', |
|
|
|
|
|
|
|
target: '10', |
|
|
|
|
|
|
|
data: { |
|
|
|
|
|
|
|
type: '第一阶段', |
|
|
|
|
|
|
|
amount: '10学时', |
|
|
|
|
|
|
|
date: '学习基础知识', |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
source: '6', |
|
|
|
|
|
|
|
target: '11', |
|
|
|
|
|
|
|
data: { |
|
|
|
|
|
|
|
type: '第一阶段', |
|
|
|
|
|
|
|
amount: '10学时', |
|
|
|
|
|
|
|
date: '学习基础知识', |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}, |
|
|
|
], |
|
|
|
], |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -336,7 +362,7 @@ onMounted(() => { |
|
|
|
graph.render() |
|
|
|
graph.render() |
|
|
|
|
|
|
|
|
|
|
|
var edges = graph.getEdges() |
|
|
|
var edges = graph.getEdges() |
|
|
|
edges.forEach(function (edge:any) { |
|
|
|
edges.forEach(function (edge: any) { |
|
|
|
var line = edge.getKeyShape() |
|
|
|
var line = edge.getKeyShape() |
|
|
|
var stroke = line.attr('stroke') |
|
|
|
var stroke = line.attr('stroke') |
|
|
|
var targetNode = edge.getTarget() |
|
|
|
var targetNode = edge.getTarget() |
|
|
|