Skip to content

Commit 06e9c9d

Browse files
committed
F 自定义发布配置无法添加的问题
1 parent 01d854f commit 06e9c9d

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

spug_web/src/pages/deploy/app/Ext2Setup1.js

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import React from 'react';
77
import { observer } from 'mobx-react';
88
import { Link } from 'react-router-dom';
9-
import { Switch, Col, Form, Select, Button } from "antd";
9+
import { Switch, Col, Form, Select, Button, Input } from "antd";
1010
import envStore from 'pages/config/environment/store';
1111
import store from './store';
1212

@@ -33,6 +33,20 @@ export default observer(function Ext2Setup1() {
3333
checked={info['is_audit']}
3434
onChange={v => info['is_audit'] = v}/>
3535
</Form.Item>
36+
<Form.Item label="结果通知" help="应用发布成功或失败结果通知">
37+
<Input addonBefore={(
38+
<Select
39+
value={info['rst_notify']['mode']} style={{width: 100}} onChange={v => info['rst_notify']['mode'] = v}>
40+
<Select.Option value="0">关闭</Select.Option>
41+
<Select.Option value="1">钉钉</Select.Option>
42+
<Select.Option value="2">Webhook</Select.Option>
43+
</Select>
44+
)}
45+
disabled={info['rst_notify']['mode'] === '0'}
46+
value={info['rst_notify']['value']}
47+
onChange={e => info['rst_notify']['value'] = e.target.value}
48+
placeholder="请输入"/>
49+
</Form.Item>
3650
<Form.Item wrapperCol={{span: 14, offset: 6}}>
3751
<Button
3852
type="primary"

0 commit comments

Comments
 (0)