From 2c39b8db89337fe55f19d93d9668c0eec52cf730 Mon Sep 17 00:00:00 2001 From: vapao Date: Mon, 7 Sep 2020 15:20:15 +0800 Subject: [PATCH] =?UTF-8?q?U=20=E4=BB=8E=E6=A8=A1=E6=9D=BF=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=91=BD=E4=BB=A4=E5=8F=98=E6=9B=B4=E4=B8=BA=E5=9C=A8?= =?UTF-8?q?=E5=BD=93=E5=89=8D=E5=86=85=E5=AE=B9=E6=9C=AB=E5=B0=BE=E8=BF=BD?= =?UTF-8?q?=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spug_web/src/pages/exec/task/index.js | 2 +- spug_web/src/pages/monitor/Form.js | 2 +- spug_web/src/pages/schedule/Form.js | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/spug_web/src/pages/exec/task/index.js b/spug_web/src/pages/exec/task/index.js index ae3c987..4b6324c 100644 --- a/spug_web/src/pages/exec/task/index.js +++ b/spug_web/src/pages/exec/task/index.js @@ -56,7 +56,7 @@ class TaskIndex extends React.Component { {store.showHost && store.hosts = hosts}/>} - {store.showTemplate && this.setState({body})}/>} + {store.showTemplate && this.setState({body: body + v})}/>} {store.showConsole && } ) diff --git a/spug_web/src/pages/monitor/Form.js b/spug_web/src/pages/monitor/Form.js index ce530dc..2561a31 100644 --- a/spug_web/src/pages/monitor/Form.js +++ b/spug_web/src/pages/monitor/Form.js @@ -252,7 +252,7 @@ class ComForm extends React.Component { {showTmp && this.handleExtra('4', command)} + onOk={v => this.handleExtra('4', extra['4'] + v)} onCancel={() => this.setState({showTmp: false})}/>} ) diff --git a/spug_web/src/pages/schedule/Form.js b/spug_web/src/pages/schedule/Form.js index c77474a..f6244a2 100644 --- a/spug_web/src/pages/schedule/Form.js +++ b/spug_web/src/pages/schedule/Form.js @@ -149,7 +149,7 @@ class ComForm extends React.Component { render() { const info = store.record; const {getFieldDecorator, getFieldValue} = this.props.form; - const {page, args, loading, showTmp, nextRunTime} = this.state; + const {page, args, command, loading, showTmp, nextRunTime} = this.state; const [b1, b2, b3] = this.verifyButtonStatus(); return ( this.setState({showTmp: true})}>从模板添加}> this.setState({command: val})}/> @@ -321,7 +321,7 @@ class ComForm extends React.Component { {showTmp && this.setState({command})} + onOk={v => this.setState({command: command + v})} onCancel={() => this.setState({showTmp: false})}/>} )