mirror of
https://gitee.com/dolphinscheduler/DolphinScheduler.git
synced 2024-12-03 12:48:46 +08:00
fix this issue (#15695)
This commit is contained in:
parent
cd63069317
commit
2395ba5ef8
@ -163,15 +163,17 @@ export function useTaskEdit(options: Options) {
|
||||
*/
|
||||
function taskConfirm({ data }: any) {
|
||||
const taskDef = formatParams(data).taskDefinitionJsonObj as NodeData
|
||||
|
||||
// override target config
|
||||
processDefinition.value.taskDefinitionList =
|
||||
processDefinition.value.taskDefinitionList.map((task) => {
|
||||
if (task.code === currTask.value?.code) {
|
||||
setNodeName(task.code + '', taskDef.name)
|
||||
let fillColor = '#ffffff'
|
||||
if (task.flag === 'YES') {
|
||||
if (taskDef.flag === 'NO') {
|
||||
fillColor = 'var(--custom-disable-bg)'
|
||||
}
|
||||
|
||||
setNodeFillColor(task.code + '', fillColor)
|
||||
|
||||
setNodeEdge(String(task.code), data.preTasks)
|
||||
|
Loading…
Reference in New Issue
Block a user