From c27ed428b41168de9ef4a38fe4631ca4d624bf55 Mon Sep 17 00:00:00 2001 From: vapao Date: Sat, 30 May 2020 18:56:24 +0800 Subject: [PATCH] U Release v2.3.0 --- spug_api/spug/settings.py | 2 +- spug_web/src/libs/index.js | 2 +- spug_web/src/pages/deploy/request/Ext1Form.js | 2 +- spug_web/src/pages/deploy/request/Ext2Form.js | 4 ++-- spug_web/src/pages/exec/task/index.js | 11 ++++++++++- 5 files changed, 15 insertions(+), 6 deletions(-) diff --git a/spug_api/spug/settings.py b/spug_api/spug/settings.py index 7a11738..1515191 100644 --- a/spug_api/spug/settings.py +++ b/spug_api/spug/settings.py @@ -121,7 +121,7 @@ AUTHENTICATION_EXCLUDES = ( re.compile('/apis/.*'), ) -SPUG_VERSION = 'v2.2.6' +SPUG_VERSION = 'v2.3.0' # override default config try: diff --git a/spug_web/src/libs/index.js b/spug_web/src/libs/index.js index 938c98b..dc42bee 100644 --- a/spug_web/src/libs/index.js +++ b/spug_web/src/libs/index.js @@ -8,4 +8,4 @@ import _http from './http'; export * from './functools'; export * from './router'; export const http = _http; -export const VERSION = 'v2.2.6'; +export const VERSION = 'v2.3.0'; diff --git a/spug_web/src/pages/deploy/request/Ext1Form.js b/spug_web/src/pages/deploy/request/Ext1Form.js index 2d79876..7b42c2f 100644 --- a/spug_web/src/pages/deploy/request/Ext1Form.js +++ b/spug_web/src/pages/deploy/request/Ext1Form.js @@ -184,7 +184,7 @@ class Ext1Form extends React.Component { )} - + {info['app_host_ids'].map(id => ( this.handleChange(id)}> {lds.get(hostStore.idMap, `${id}.name`)}({lds.get(hostStore.idMap, `${id}.hostname`)}:{lds.get(hostStore.idMap, `${id}.port`)}) diff --git a/spug_web/src/pages/deploy/request/Ext2Form.js b/spug_web/src/pages/deploy/request/Ext2Form.js index 9be6e9a..bdff63d 100644 --- a/spug_web/src/pages/deploy/request/Ext2Form.js +++ b/spug_web/src/pages/deploy/request/Ext2Form.js @@ -76,7 +76,7 @@ class Ext2Form extends React.Component { )} - + {getFieldDecorator('extra', {initialValue: info['extra']})( )} @@ -86,7 +86,7 @@ class Ext2Form extends React.Component { )} - + {info['app_host_ids'].map(id => ( this.handleChange(id, v)}> {lds.get(hostStore.idMap, `${id}.name`)}({lds.get(hostStore.idMap, `${id}.hostname`)}:{lds.get(hostStore.idMap, `${id}.port`)}) diff --git a/spug_web/src/pages/exec/task/index.js b/spug_web/src/pages/exec/task/index.js index 6672c6c..dc89705 100644 --- a/spug_web/src/pages/exec/task/index.js +++ b/spug_web/src/pages/exec/task/index.js @@ -23,6 +23,10 @@ class TaskIndex extends React.Component { } } + componentDidMount() { + store.hosts = [] + } + handleSubmit = () => { this.setState({loading: true}); const host_ids = store.hosts.map(item => item.id); @@ -38,7 +42,12 @@ class TaskIndex extends React.Component {
{store.hosts.map(item => ( - {item.name}({item.hostname}:{item.port}) + store.hosts = store.hosts.filter(x => x.id !== item.id)}> + {item.name}({item.hostname}:{item.port}) ))}