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})}/>} )