Browse Source

[dolphinscheduler-#184] [enhancement] (#1398)

When workgroup referenced by workflow , And there isn’t any instace in
workflow ,the workgroup can be delete . After the workgroup delete , Use the
default workgroup in the page ,Instead of the value id.
pull/2/head
zhukai 5 years ago committed by qiaozhanwei
parent
commit
cbefe382f8
  1. 17
      dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/formModel.vue

17
dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/formModel.vue

@ -369,7 +369,6 @@
}
$(`#${this.id}`).find('span').text(this.name)
// Store the corresponding node data structure
this.$emit('addTaskInfo', {
item: {
@ -455,8 +454,24 @@
this.description = o.description
this.maxRetryTimes = o.maxRetryTimes
this.retryInterval = o.retryInterval
// If the workergroup has been deleted, set the default workergroup
var hasMatch = false;
for (let i = 0; i < this.store.state.security.workerGroupsListAll.length; i++) {
var workerGroupId = this.store.state.security.workerGroupsListAll[i].id
if (o.workerGroupId == workerGroupId) {
hasMatch = true;
break;
}
}
if(!hasMatch){
this.workerGroupId = -1
}else{
this.workerGroupId = o.workerGroupId
}
}
}
this.isContentBox = true
},

Loading…
Cancel
Save