Browse Source

Worker group parameter modification (#2188)

* Delete worker group management page

* Modify workgroupid parameter name

* Worker group parameter modification
pull/2/head
break60 5 years ago committed by GitHub
parent
commit
aa650b4426
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 17
      dolphinscheduler-ui/src/js/conf/home/store/security/actions.js

17
dolphinscheduler-ui/src/js/conf/home/store/security/actions.js

@ -451,10 +451,19 @@ export default {
return new Promise((resolve, reject) => {
io.get(`worker-group/all-groups`, payload, res => {
let list = res.data
list.unshift({
id: 'default',
name: 'Default'
})
if(list.length>0) {
list = list.map(item=>{
return {
id: item,
name: item
}
})
} else {
list.unshift({
id: 'default',
name: 'Default'
})
}
state.workerGroupsListAll = list
resolve(list)
}).catch(e => {

Loading…
Cancel
Save