diff --git a/spug_web/src/pages/monitor/Form.js b/spug_web/src/pages/monitor/Form.js index b413266..89990ee 100644 --- a/spug_web/src/pages/monitor/Form.js +++ b/spug_web/src/pages/monitor/Form.js @@ -31,7 +31,11 @@ class ComForm extends React.Component { {label: '钉钉', 'value': '3'}, {label: '邮件', 'value': '4'}, {label: '企业微信', 'value': '5'}, - ] + ], + helpMap: { + '1': '返回HTTP状态码200-399则判定为正常,其他为异常。', + '4': '脚本执行退出状态码为 0 则判定为正常,其他为异常。' + } } } @@ -105,8 +109,8 @@ class ComForm extends React.Component { render() { const info = store.record; - const {loading, extra, addr, showTmp, page, modeOptions} = this.state; - const {getFieldDecorator} = this.props.form; + const {loading, extra, addr, showTmp, page, modeOptions, helpMap} = this.state; + const {getFieldDecorator, getFieldValue} = this.props.form; const [b1, b2] = this.verifyButtonStatus(); return (
- + {getFieldDecorator('type', {initialValue: info['type'] || '1'})( this.handleExtra('2', e)}/> - + this.handleExtra('3', e)}/> - this.setState({showTmp: true})}>从模板添加}> + this.setState({showTmp: true})}>从模板添加}> this.handleExtra('4', cleanCommand(e))}/>