|
@@ -32,7 +32,7 @@ const header = props => {
|
32
|
32
|
router.go(-1)
|
33
|
33
|
}).catch(err => {
|
34
|
34
|
console.log(err)
|
35
|
|
- message.info(err.msg || err.message)
|
|
35
|
+ // message.info(err.msg || err.message)
|
36
|
36
|
})
|
37
|
37
|
}
|
38
|
38
|
|
|
@@ -58,8 +58,15 @@ const header = props => {
|
58
|
58
|
function onChange(checked) {
|
59
|
59
|
console.log(`switch to ${checked}`);
|
60
|
60
|
setVisible(checked)
|
61
|
|
- }
|
|
61
|
+ props.form.resetFields(['targetName', 'targetType', []]);
|
|
62
|
+ // props.form.resetFields([targetName, targetType])
|
|
63
|
+ // props.form.setFieldsValue({
|
|
64
|
+ // targetName: '',
|
|
65
|
+ // targetType: '',
|
|
66
|
+ // });
|
|
67
|
+ setTargetType()
|
62
|
68
|
|
|
69
|
+ }
|
63
|
70
|
// QrcodeType
|
64
|
71
|
function onTtypeChange(values) {
|
65
|
72
|
console.log(`onTtypeChange to ${values}`);
|
|
@@ -118,7 +125,7 @@ const header = props => {
|
118
|
125
|
{targetType === 'project' && <div>
|
119
|
126
|
{getFieldDecorator('targetName')}
|
120
|
127
|
</div>}
|
121
|
|
- <Form.Item label="是否关联项目">
|
|
128
|
+ <Form.Item label="关联渠道">
|
122
|
129
|
{getFieldDecorator('channelId')(
|
123
|
130
|
<ChannelSelect />,
|
124
|
131
|
)}
|
|
@@ -127,7 +134,7 @@ const header = props => {
|
127
|
134
|
<Form.Item wrapperCol={{ span: 15, offset: 8 }}>
|
128
|
135
|
<div style={{ width: '190px' }}>
|
129
|
136
|
<Button type="primary" style={{ marginRight: '20px' }} htmlType="submit">立即生成</Button>
|
130
|
|
- <Button onClick={() => router.go(-1)} htmlType="submit">取消</Button>
|
|
137
|
+ <Button onClick={() => router.go(-1)} >取消</Button>
|
131
|
138
|
</div>
|
132
|
139
|
</Form.Item>
|
133
|
140
|
</Form>
|