F 自定义发布配置无法添加的问题

pull/31/head
vapao 2020-02-25 08:55:27 +08:00
parent 01d854fb40
commit 06e9c9d01a
1 changed files with 15 additions and 1 deletions

View File

@ -6,7 +6,7 @@
import React from 'react';
import { observer } from 'mobx-react';
import { Link } from 'react-router-dom';
import { Switch, Col, Form, Select, Button } from "antd";
import { Switch, Col, Form, Select, Button, Input } from "antd";
import envStore from 'pages/config/environment/store';
import store from './store';
@ -33,6 +33,20 @@ export default observer(function Ext2Setup1() {
checked={info['is_audit']}
onChange={v => info['is_audit'] = v}/>
</Form.Item>
<Form.Item label="结果通知" help="应用发布成功或失败结果通知">
<Input addonBefore={(
<Select
value={info['rst_notify']['mode']} style={{width: 100}} onChange={v => info['rst_notify']['mode'] = v}>
<Select.Option value="0">关闭</Select.Option>
<Select.Option value="1">钉钉</Select.Option>
<Select.Option value="2">Webhook</Select.Option>
</Select>
)}
disabled={info['rst_notify']['mode'] === '0'}
value={info['rst_notify']['value']}
onChange={e => info['rst_notify']['value'] = e.target.value}
placeholder="请输入"/>
</Form.Item>
<Form.Item wrapperCol={{span: 14, offset: 6}}>
<Button
type="primary"