提交 a358b58e 编写于 作者: B break60

Modify worker parameters

上级 d23e3b5e
......@@ -611,25 +611,27 @@
this.failedBranch = o.conditionResult.failedNode[0]
}
// 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 workerGroup = this.store.state.security.workerGroupsListAll[i].id
if (o.workerGroup == workerGroup) {
hasMatch = true;
break;
}
var hasMatch = false;
for (let i = 0; i < this.store.state.security.workerGroupsListAll.length; i++) {
var workerGroup = this.store.state.security.workerGroupsListAll[i].id
if (o.workerGroup == workerGroup) {
hasMatch = true;
break;
}
}
if(!hasMatch){
this.workerGroup = 'default'
}else{
this.workerGroup = o.workerGroup
}
if(!hasMatch){
this.workerGroup = 'default'
} else {
this.workerGroup = o.workerGroup
}
this.params = o.params || {}
this.dependence = o.dependence || {}
this.cacheDependence = o.dependence || {}
} else {
this.workerGroup = this.store.state.security.workerGroupsListAll[0].id
}
this.isContentBox = true
},
......
......@@ -311,9 +311,9 @@
name: 'list',
data () {
return {
// 数据
// data
list: [],
// 按钮类型
// btn type
buttonType: '',
strDelete: '',
checkAll: false
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册