|
|
@ -268,7 +268,7 @@ |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
...mapActions('dag', ['saveDAGchart', 'updateInstance', 'updateDefinition', 'getTaskState', 'switchProcessDefinitionVersion', 'getProcessDefinitionVersionsPage', 'deleteProcessDefinitionVersion']), |
|
|
|
...mapActions('dag', ['saveDAGchart', 'updateInstance', 'updateDefinition', 'getTaskState', 'switchProcessDefinitionVersion', 'getProcessDefinitionVersionsPage', 'deleteProcessDefinitionVersion']), |
|
|
|
...mapMutations('dag', ['addTasks', 'cacheTasks', 'resetParams', 'setIsEditDag', 'setName', 'addConnects']), |
|
|
|
...mapMutations('dag', ['addTasks', 'cacheTasks', 'resetParams', 'setIsEditDag', 'setName', 'addConnects', 'resetLocalParam']), |
|
|
|
startRunning (item, startNodeList, sourceType) { |
|
|
|
startRunning (item, startNodeList, sourceType) { |
|
|
|
this.startData = item |
|
|
|
this.startData = item |
|
|
|
this.startNodeList = startNodeList |
|
|
|
this.startNodeList = startNodeList |
|
|
@ -377,7 +377,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
// remove tip state dom |
|
|
|
// remove tip state dom |
|
|
|
$('.w').find('.state-p').html('') |
|
|
|
$('.w').find('.state-p').html('') |
|
|
|
|
|
|
|
const newTask = [] |
|
|
|
data.forEach(v1 => { |
|
|
|
data.forEach(v1 => { |
|
|
|
idArr.forEach(v2 => { |
|
|
|
idArr.forEach(v2 => { |
|
|
|
if (v2.name === v1.name) { |
|
|
|
if (v2.name === v1.name) { |
|
|
@ -387,6 +387,12 @@ |
|
|
|
taskList.forEach(item => { |
|
|
|
taskList.forEach(item => { |
|
|
|
if (item.name === v1.name) { |
|
|
|
if (item.name === v1.name) { |
|
|
|
depState = item.state |
|
|
|
depState = item.state |
|
|
|
|
|
|
|
const params = item.taskJson ? JSON.parse(item.taskJson).params : '' |
|
|
|
|
|
|
|
let localParam = params.localParams || [] |
|
|
|
|
|
|
|
newTask.push({ |
|
|
|
|
|
|
|
id: v2.id, |
|
|
|
|
|
|
|
localParam |
|
|
|
|
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
dom.attr('data-state-id', v1.stateId) |
|
|
|
dom.attr('data-state-id', v1.stateId) |
|
|
@ -403,6 +409,9 @@ |
|
|
|
findComponentDownward(this.$root, `${this.type}-details`)._reset() |
|
|
|
findComponentDownward(this.$root, `${this.type}-details`)._reset() |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (!isReset) { |
|
|
|
|
|
|
|
this.resetLocalParam(newTask) |
|
|
|
|
|
|
|
} |
|
|
|
resolve() |
|
|
|
resolve() |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|