Browse Source

fix this issue (#15695)

dev_wenjun_refactorMaster
calvin 9 months ago committed by GitHub
parent
commit
2395ba5ef8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      dolphinscheduler-ui/src/views/projects/workflow/components/dag/use-task-edit.ts

4
dolphinscheduler-ui/src/views/projects/workflow/components/dag/use-task-edit.ts

@ -163,15 +163,17 @@ export function useTaskEdit(options: Options) {
*/ */
function taskConfirm({ data }: any) { function taskConfirm({ data }: any) {
const taskDef = formatParams(data).taskDefinitionJsonObj as NodeData const taskDef = formatParams(data).taskDefinitionJsonObj as NodeData
// override target config // override target config
processDefinition.value.taskDefinitionList = processDefinition.value.taskDefinitionList =
processDefinition.value.taskDefinitionList.map((task) => { processDefinition.value.taskDefinitionList.map((task) => {
if (task.code === currTask.value?.code) { if (task.code === currTask.value?.code) {
setNodeName(task.code + '', taskDef.name) setNodeName(task.code + '', taskDef.name)
let fillColor = '#ffffff' let fillColor = '#ffffff'
if (task.flag === 'YES') { if (taskDef.flag === 'NO') {
fillColor = 'var(--custom-disable-bg)' fillColor = 'var(--custom-disable-bg)'
} }
setNodeFillColor(task.code + '', fillColor) setNodeFillColor(task.code + '', fillColor)
setNodeEdge(String(task.code), data.preTasks) setNodeEdge(String(task.code), data.preTasks)

Loading…
Cancel
Save