|
|
@ -196,34 +196,24 @@ |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
close () { |
|
|
|
close () { |
|
|
|
this.$emit('close') |
|
|
|
this.$emit('close') |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
watch: { |
|
|
|
|
|
|
|
checkedTimeout (val) { |
|
|
|
|
|
|
|
if (!val) { |
|
|
|
|
|
|
|
this.timeout = 0 |
|
|
|
|
|
|
|
this.store.commit('dag/setTimeout', _.cloneDeep(this.timeout)) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
created () { |
|
|
|
/** |
|
|
|
|
|
|
|
* reload localParam |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
reloadParam () { |
|
|
|
const dag = _.cloneDeep(this.store.state.dag) |
|
|
|
const dag = _.cloneDeep(this.store.state.dag) |
|
|
|
|
|
|
|
|
|
|
|
let fixedParam = [] |
|
|
|
let fixedParam = [] |
|
|
|
const tasks = this.store.state.dag.tasks |
|
|
|
const tasks = this.store.state.dag.tasks |
|
|
|
for (const task of tasks) { |
|
|
|
for (const task of tasks) { |
|
|
|
const localParam = task.params ? task.params.localParams : [] |
|
|
|
const localParam = task.params ? task.params.localParams : [] |
|
|
|
if (localParam && localParam.length > 0) { |
|
|
|
localParam.forEach(l => { |
|
|
|
fixedParam = fixedParam.concat(localParam) |
|
|
|
if (!fixedParam.some(f => { return f.prop === l.prop })) { |
|
|
|
} |
|
|
|
fixedParam.push(Object.assign({ |
|
|
|
} |
|
|
|
|
|
|
|
fixedParam = fixedParam.map(f => { |
|
|
|
|
|
|
|
return { |
|
|
|
|
|
|
|
prop: f.prop, |
|
|
|
|
|
|
|
value: f.value, |
|
|
|
|
|
|
|
ifFixed: true |
|
|
|
ifFixed: true |
|
|
|
|
|
|
|
}, l)) |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
let globalParams = _.cloneDeep(dag.globalParams) |
|
|
|
let globalParams = _.cloneDeep(dag.globalParams) |
|
|
|
|
|
|
|
|
|
|
@ -237,9 +227,27 @@ |
|
|
|
return g |
|
|
|
return g |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
let udpList = [...fixedParam, ...globalParams].sort(s => { |
|
|
|
this.udpList = [...fixedParam, ...globalParams] |
|
|
|
if (s.ifFixed) { |
|
|
|
this.udpListCache = [...fixedParam, ...globalParams] |
|
|
|
return -1 |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
return 1 |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
this.udpList = udpList |
|
|
|
|
|
|
|
this.udpListCache = udpList |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
watch: { |
|
|
|
|
|
|
|
checkedTimeout (val) { |
|
|
|
|
|
|
|
if (!val) { |
|
|
|
|
|
|
|
this.timeout = 0 |
|
|
|
|
|
|
|
this.store.commit('dag/setTimeout', _.cloneDeep(this.timeout)) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
created () { |
|
|
|
|
|
|
|
const dag = _.cloneDeep(this.store.state.dag) |
|
|
|
|
|
|
|
|
|
|
|
this.name = dag.name |
|
|
|
this.name = dag.name |
|
|
|
this.originalName = dag.name |
|
|
|
this.originalName = dag.name |
|
|
|