You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by jo...@apache.org on 2020/03/16 03:33:10 UTC
[incubator-dolphinscheduler] branch refactor-worker updated: Worker
group parameter modification (#2188)
This is an automated email from the ASF dual-hosted git repository.
journey pushed a commit to branch refactor-worker
in repository https://gitbox.apache.org/repos/asf/incubator-dolphinscheduler.git
The following commit(s) were added to refs/heads/refactor-worker by this push:
new aa650b4 Worker group parameter modification (#2188)
aa650b4 is described below
commit aa650b4426c27870d5ca41c4aba15165e8dcd55f
Author: break60 <79...@qq.com>
AuthorDate: Mon Mar 16 11:33:04 2020 +0800
Worker group parameter modification (#2188)
* Delete worker group management page
* Modify workgroupid parameter name
* Worker group parameter modification
---
.../src/js/conf/home/store/security/actions.js | 17 +++++++++++++----
1 file changed, 13 insertions(+), 4 deletions(-)
diff --git a/dolphinscheduler-ui/src/js/conf/home/store/security/actions.js b/dolphinscheduler-ui/src/js/conf/home/store/security/actions.js
index 082366f..9ec9f7a 100644
--- a/dolphinscheduler-ui/src/js/conf/home/store/security/actions.js
+++ b/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 => {