Modify worker parameters

This commit is contained in:
break60 2020-04-21 09:40:15 +08:00
parent d23e3b5ee6
commit a358b58ef8
2 changed files with 16 additions and 14 deletions

View File

@ -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
},

View File

@ -311,9 +311,9 @@
name: 'list',
data () {
return {
//
// data
list: [],
//
// btn type
buttonType: '',
strDelete: '',
checkAll: false