|
@@ -4,7 +4,7 @@ import { PageContainer } from '@ant-design/pro-layout';
|
4
|
4
|
import Container from '@/components/Container';
|
5
|
5
|
import request from '@/utils/request';
|
6
|
6
|
|
7
|
|
-import ProForm, { ProFormSelect } from '@ant-design/pro-form';
|
|
7
|
+import ProForm, { ProFormSelect, ProFormText } from '@ant-design/pro-form';
|
8
|
8
|
import UploadImage from '@/components/UploadImage';
|
9
|
9
|
import { notification, Form, Button } from 'antd';
|
10
|
10
|
|
|
@@ -77,6 +77,13 @@ const HotEdit = (props) => {
|
77
|
77
|
>
|
78
|
78
|
<Container loading={loading}>
|
79
|
79
|
<ProForm form={form} onFinish={handleSubmit}>
|
|
80
|
+ <ProFormText
|
|
81
|
+ label="标题"
|
|
82
|
+ placeholder="输入标题"
|
|
83
|
+ name="targetTitle"
|
|
84
|
+ rules={[{ required: true, message: '请填写标题' }]}
|
|
85
|
+ />
|
|
86
|
+
|
80
|
87
|
<Form.Item
|
81
|
88
|
name="poster"
|
82
|
89
|
label="图片"
|
|
@@ -124,21 +131,6 @@ const HotEdit = (props) => {
|
124
|
131
|
// }
|
125
|
132
|
}}
|
126
|
133
|
/>
|
127
|
|
-
|
128
|
|
- {/* <Select
|
129
|
|
- showSearch
|
130
|
|
- value={this.state.value}
|
131
|
|
- placeholder={this.props.placeholder}
|
132
|
|
- style={this.props.style}
|
133
|
|
- defaultActiveFirstOption={false}
|
134
|
|
- showArrow={false}
|
135
|
|
- filterOption={false}
|
136
|
|
- onSearch={this.handleSearch}
|
137
|
|
- onChange={this.handleChange}
|
138
|
|
- notFoundContent={null}
|
139
|
|
- >
|
140
|
|
- {options}
|
141
|
|
- </Select> */}
|
142
|
134
|
</ProForm>
|
143
|
135
|
</Container>
|
144
|
136
|
</PageContainer>
|