|
|
@ -489,6 +489,9 @@ JSP.prototype.removeNodes = function ($id) { |
|
|
|
}) |
|
|
|
}) |
|
|
|
// delete node
|
|
|
|
// delete node
|
|
|
|
this.JspInstance.remove($id) |
|
|
|
this.JspInstance.remove($id) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// delete dom
|
|
|
|
|
|
|
|
$(`#${$id}`).remove() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
@ -557,7 +560,7 @@ JSP.prototype.copyNodes = function ($id) { |
|
|
|
// Add new node
|
|
|
|
// Add new node
|
|
|
|
store.commit('dag/addTasks', newNodeInfo) |
|
|
|
store.commit('dag/addTasks', newNodeInfo) |
|
|
|
// Add node location information
|
|
|
|
// Add node location information
|
|
|
|
store.commit('dag/setLocations', { |
|
|
|
store.commit('dag/addLocations', { |
|
|
|
[newId]: { |
|
|
|
[newId]: { |
|
|
|
name: newName, |
|
|
|
name: newName, |
|
|
|
targetarr: '', |
|
|
|
targetarr: '', |
|
|
@ -642,6 +645,8 @@ JSP.prototype.saveStore = function () { |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
console.log(tasksAll()) |
|
|
|
|
|
|
|
|
|
|
|
_.map(tasksAll(), v => { |
|
|
|
_.map(tasksAll(), v => { |
|
|
|
locations[v.id] = { |
|
|
|
locations[v.id] = { |
|
|
|
name: v.name, |
|
|
|
name: v.name, |
|
|
@ -651,6 +656,8 @@ JSP.prototype.saveStore = function () { |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
console.log(locations) |
|
|
|
|
|
|
|
|
|
|
|
// Storage node
|
|
|
|
// Storage node
|
|
|
|
store.commit('dag/setTasks', tasks) |
|
|
|
store.commit('dag/setTasks', tasks) |
|
|
|
// Store coordinate information
|
|
|
|
// Store coordinate information
|
|
|
|