提交 cbefe382 编写于 作者: Z zhukai 提交者: qiaozhanwei

[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.
上级 f134453b
......@@ -369,7 +369,6 @@
}
$(`#${this.id}`).find('span').text(this.name)
// Store the corresponding node data structure
this.$emit('addTaskInfo', {
item: {
......@@ -455,7 +454,23 @@
this.description = o.description
this.maxRetryTimes = o.maxRetryTimes
this.retryInterval = o.retryInterval
this.workerGroupId = o.workerGroupId
// 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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册