|
@@ -17,7 +17,7 @@ const { MonthPicker, RangePicker, WeekPicker } = DatePicker;
|
17
|
17
|
|
18
|
18
|
function record(props) {
|
19
|
19
|
const { getFieldDecorator } = props.form
|
20
|
|
-
|
|
20
|
+
|
21
|
21
|
// 获取初始化数据
|
22
|
22
|
const [ data, setData ] = useState({})
|
23
|
23
|
|
|
@@ -138,8 +138,8 @@ function record(props) {
|
138
|
138
|
</Form.Item>
|
139
|
139
|
<Form.Item>
|
140
|
140
|
<span style={{marginRight:'10px'}}>分享时间:</span>
|
141
|
|
- {getFieldDecorator('shareTime')(
|
142
|
|
- <RangePicker placeholder={['开始时间','结束时间']}/>
|
|
141
|
+ {getFieldDecorator('shareTime',{initialValue : [moment(),moment()],})(
|
|
142
|
+ <RangePicker placeholder={['开始时间','结束时间']} />
|
143
|
143
|
)}
|
144
|
144
|
</Form.Item>
|
145
|
145
|
<Form.Item style={{position:'absolute',right:'38px'}}>
|