|
@@ -192,7 +192,7 @@ class OverView extends React.Component {
|
192
|
192
|
endDate: '',
|
193
|
193
|
startDate: '',
|
194
|
194
|
buildingId: [],
|
195
|
|
- targetType: []
|
|
195
|
+ targetType: [],
|
196
|
196
|
}
|
197
|
197
|
}
|
198
|
198
|
|
|
@@ -243,9 +243,13 @@ class OverView extends React.Component {
|
243
|
243
|
const targetType = this.props.form.getFieldValue("targetType");
|
244
|
244
|
if (this.props.form.getFieldValue("startDate") != undefined){
|
245
|
245
|
startDate = this.props.form.getFieldValue("startDate").toDate()
|
|
246
|
+ }else{
|
|
247
|
+ startDate = moment().subtract(7, 'day').toDate()
|
246
|
248
|
}
|
247
|
249
|
if (this.props.form.getFieldValue("endDate") != undefined){
|
248
|
250
|
endDate = this.props.form.getFieldValue("endDate").toDate()
|
|
251
|
+ }else{
|
|
252
|
+ endDate = new Date
|
249
|
253
|
}
|
250
|
254
|
const { formData } = this.state
|
251
|
255
|
this.setState({
|
|
@@ -263,6 +267,7 @@ class OverView extends React.Component {
|
263
|
267
|
//重置搜索
|
264
|
268
|
handleReset = e => {
|
265
|
269
|
this.props.form.resetFields()
|
|
270
|
+ this.getAllList()
|
266
|
271
|
}
|
267
|
272
|
|
268
|
273
|
exportActivityStats = () => {
|
|
@@ -347,16 +352,12 @@ class OverView extends React.Component {
|
347
|
352
|
</Radio.Group>
|
348
|
353
|
<Form layout="inline" onSubmit={e => this.handleSubmit(e, this.props)}>
|
349
|
354
|
<Form.Item style={{marginTop:'20px', marginBottom:'20px'}}>
|
350
|
|
- {getFieldDecorator('startDate', {initialValue: moment(startDate)
|
351
|
|
-
|
352
|
|
- })(
|
|
355
|
+ {getFieldDecorator('startDate')(
|
353
|
356
|
<DatePicker placeholder="开始日期"/>,
|
354
|
357
|
)}
|
355
|
358
|
</Form.Item>
|
356
|
359
|
<Form.Item style={{marginTop:'20px', marginBottom:'20px'}}>
|
357
|
|
- {getFieldDecorator('endDate', {initialValue: moment(endDate)
|
358
|
|
-
|
359
|
|
- })(
|
|
360
|
+ {getFieldDecorator('endDate')(
|
360
|
361
|
<DatePicker placeholder="结束日期"/>,
|
361
|
362
|
)}
|
362
|
363
|
</Form.Item>
|
|
@@ -380,7 +381,10 @@ class OverView extends React.Component {
|
380
|
381
|
</Button>
|
381
|
382
|
<Button onClick={e => this.handleReset()} style={{ marginLeft: '30px' }}>重置</Button>
|
382
|
383
|
</Form.Item>
|
|
384
|
+ <Icon type="question-circle" theme="filled" style={{ marginTop:'25px', fontSize: '25px', color: '#F00', marginLeft:'30px'}} onClick={() => setShowHelp(true)}/>
|
|
385
|
+
|
383
|
386
|
</Form>
|
|
387
|
+
|
384
|
388
|
<div>
|
385
|
389
|
|
386
|
390
|
<div style={{ display: 'flex', marginBottom: '33px' }}>
|