|
|
@ -611,25 +611,27 @@ |
|
|
|
this.failedBranch = o.conditionResult.failedNode[0] |
|
|
|
this.failedBranch = o.conditionResult.failedNode[0] |
|
|
|
} |
|
|
|
} |
|
|
|
// If the workergroup has been deleted, set the default workergroup |
|
|
|
// If the workergroup has been deleted, set the default workergroup |
|
|
|
var hasMatch = false; |
|
|
|
var hasMatch = false; |
|
|
|
for (let i = 0; i < this.store.state.security.workerGroupsListAll.length; i++) { |
|
|
|
for (let i = 0; i < this.store.state.security.workerGroupsListAll.length; i++) { |
|
|
|
var workerGroup = this.store.state.security.workerGroupsListAll[i].id |
|
|
|
var workerGroup = this.store.state.security.workerGroupsListAll[i].id |
|
|
|
if (o.workerGroup == workerGroup) { |
|
|
|
if (o.workerGroup == workerGroup) { |
|
|
|
hasMatch = true; |
|
|
|
hasMatch = true; |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if(!hasMatch){ |
|
|
|
if(!hasMatch){ |
|
|
|
this.workerGroup = 'default' |
|
|
|
this.workerGroup = 'default' |
|
|
|
}else{ |
|
|
|
} else { |
|
|
|
this.workerGroup = o.workerGroup |
|
|
|
this.workerGroup = o.workerGroup |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
this.params = o.params || {} |
|
|
|
this.params = o.params || {} |
|
|
|
this.dependence = o.dependence || {} |
|
|
|
this.dependence = o.dependence || {} |
|
|
|
this.cacheDependence = o.dependence || {} |
|
|
|
this.cacheDependence = o.dependence || {} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
this.workerGroup = this.store.state.security.workerGroupsListAll[0].id |
|
|
|
} |
|
|
|
} |
|
|
|
this.isContentBox = true |
|
|
|
this.isContentBox = true |
|
|
|
}, |
|
|
|
}, |
|
|
|