|
|
@ -632,10 +632,10 @@ JSP.prototype.saveStore = function () { |
|
|
|
// task
|
|
|
|
// task
|
|
|
|
_.map(_.cloneDeep(store.state.dag.tasks), v => { |
|
|
|
_.map(_.cloneDeep(store.state.dag.tasks), v => { |
|
|
|
if (is(v.id)) { |
|
|
|
if (is(v.id)) { |
|
|
|
const preTasks = [] |
|
|
|
let preTasks = [] |
|
|
|
const id = $(`#${v.id}`) |
|
|
|
let id = $(`#${v.id}`) |
|
|
|
const tar = id.attr('data-targetarr') |
|
|
|
let tar = id.attr('data-targetarr') |
|
|
|
const idDep = tar ? id.attr('data-targetarr').split(',') : [] |
|
|
|
let idDep = tar ? id.attr('data-targetarr').split(',') : [] |
|
|
|
if (idDep.length) { |
|
|
|
if (idDep.length) { |
|
|
|
_.map(idDep, v1 => { |
|
|
|
_.map(idDep, v1 => { |
|
|
|
preTasks.push($(`#${v1}`).find('.name-p').text()) |
|
|
|
preTasks.push($(`#${v1}`).find('.name-p').text()) |
|
|
|