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) => { return new Promise((resolve, reject) => {
io.get(`worker-group/all-groups`, payload, res => { io.get(`worker-group/all-groups`, payload, res => {
let list = res.data let list = res.data
list.unshift({ if(list.length>0) {
id: 'default', list = list.map(item=>{
name: 'Default' return {
}) id: item,
name: item
}
})
} else {
list.unshift({
id: 'default',
name: 'Default'
})
}
state.workerGroupsListAll = list state.workerGroupsListAll = list
resolve(list) resolve(list)
}).catch(e => { }).catch(e => {

Loading…
Cancel
Save