|
@@ -147,12 +147,12 @@ class SharePersonNum extends React.Component {
|
147
|
147
|
|
148
|
148
|
if (props.location.query.queryDate) {
|
149
|
149
|
console.log(queryDate, "props.location.query.queryDateprops.location.query.queryDate")
|
150
|
|
- startDate = moment(props.location.query.queryDate).hours(0).minutes(0).seconds(0).milliseconds(0).format('YYYY-MM-DDTHH:mm:ss')+'.000Z';
|
151
|
|
- endDate = moment(props.location.query.queryDate).hours(23).minutes(59).seconds(59).milliseconds(999).format('YYYY-MM-DDTHH:mm:ss')+'.999Z';
|
|
150
|
+ startDate = moment(props.location.query.queryDate).hours(0).minutes(0).seconds(0).milliseconds(0).format('YYYY-MM-DDTHH:mm:ss') + '.000Z';
|
|
151
|
+ endDate = moment(props.location.query.queryDate).hours(23).minutes(59).seconds(59).milliseconds(999).format('YYYY-MM-DDTHH:mm:ss') + '.999Z';
|
152
|
152
|
console.log(startDate, endDate, "endDateendDateendDateendDateendDateendDate")
|
153
|
153
|
} else {
|
154
|
|
- startDate = moment(props.location.query.startDate).hours(0).minutes(0).seconds(0).milliseconds(0).format('YYYY-MM-DDTHH:mm:ss')+'.000Z';
|
155
|
|
- endDate = moment(props.location.query.endDate).hours(23).minutes(59).seconds(59).milliseconds(999).format('YYYY-MM-DDTHH:mm:ss')+'.999Z';
|
|
154
|
+ startDate = moment(props.location.query.startDate).hours(0).minutes(0).seconds(0).milliseconds(0).format('YYYY-MM-DDTHH:mm:ss') + '.000Z';
|
|
155
|
+ endDate = moment(props.location.query.endDate).hours(23).minutes(59).seconds(59).milliseconds(999).format('YYYY-MM-DDTHH:mm:ss') + '.999Z';
|
156
|
156
|
}
|
157
|
157
|
|
158
|
158
|
console.log(startDate)
|
|
@@ -224,11 +224,11 @@ class SharePersonNum extends React.Component {
|
224
|
224
|
activityType = this.props.location.query.activityType;
|
225
|
225
|
|
226
|
226
|
if (this.props.location.query.queryDate) {
|
227
|
|
- startDate = moment(this.props.location.query.queryDate).hours(0).minutes(0).seconds(0).milliseconds(0).format('YYYY-MM-DDTHH:mm:ss')+'.000Z';
|
228
|
|
- endDate = moment(this.props.location.query.queryDate).hours(23).minutes(59).seconds(59).milliseconds(999).format('YYYY-MM-DDTHH:mm:ss')+'.999Z';
|
|
227
|
+ startDate = moment(this.props.location.query.queryDate).hours(0).minutes(0).seconds(0).milliseconds(0).format('YYYY-MM-DDTHH:mm:ss') + '.000Z';
|
|
228
|
+ endDate = moment(this.props.location.query.queryDate).hours(23).minutes(59).seconds(59).milliseconds(999).format('YYYY-MM-DDTHH:mm:ss') + '.999Z';
|
229
|
229
|
} else {
|
230
|
|
- startDate = moment(this.props.location.query.startDate).hours(0).minutes(0).seconds(0).milliseconds(0).format('YYYY-MM-DDTHH:mm:ss')+'.000Z';
|
231
|
|
- endDate = moment(this.props.location.query.endDate).hours(23).minutes(59).seconds(59).milliseconds(999).format('YYYY-MM-DDTHH:mm:ss')+'.999Z';
|
|
230
|
+ startDate = moment(this.props.location.query.startDate).hours(0).minutes(0).seconds(0).milliseconds(0).format('YYYY-MM-DDTHH:mm:ss') + '.000Z';
|
|
231
|
+ endDate = moment(this.props.location.query.endDate).hours(23).minutes(59).seconds(59).milliseconds(999).format('YYYY-MM-DDTHH:mm:ss') + '.999Z';
|
232
|
232
|
}
|
233
|
233
|
this.setState({
|
234
|
234
|
formData: {
|
|
@@ -297,6 +297,7 @@ class SharePersonNum extends React.Component {
|
297
|
297
|
|
298
|
298
|
return (
|
299
|
299
|
<>
|
|
300
|
+ <div align="right" style={{ marginBottom: '16px' }}><Button onClick={this.goback}>返回</Button></div>
|
300
|
301
|
<div>
|
301
|
302
|
<span style={{ marginLeft: '20px' }}>分享内容:{this.state.activityName}</span>
|
302
|
303
|
</div>
|
|
@@ -323,23 +324,21 @@ class SharePersonNum extends React.Component {
|
323
|
324
|
</Button>
|
324
|
325
|
<Button onClick={e => this.handleReset()} style={{ marginLeft: '30px' }}>重置</Button>
|
325
|
326
|
</Form.Item>
|
326
|
|
- </Form>
|
327
|
|
- <div>
|
328
|
|
- <Button type="primary" style={{ float: 'right', margin: '20px 0', marginLeft: '20px', zIndex: 1 }} onClick={this.goback}>
|
329
|
|
- 返回
|
330
|
|
- </Button>
|
331
|
327
|
<AuthButton name="admin.statistical.activity.export" noRight={null}>
|
332
|
|
- <Button type="primary" style={{ float: 'right', margin: '20px 0', zIndex: 1 }} onClick={this.exportActivityStats}>
|
|
328
|
+ <Button type="primary" style={{ float: 'right', zIndex: 1, marginTop: '25px' }} onClick={this.exportActivityStats}>
|
333
|
329
|
导出
|
334
|
330
|
</Button>
|
335
|
331
|
</AuthButton>
|
|
332
|
+ </Form>
|
|
333
|
+ <div>
|
|
334
|
+
|
336
|
335
|
<Table style={{ marginTop: '20px' }} dataSource={this.state.tableData} columns={columns} pagination={{ total: this.state.total }} onChange={this.handleTableChange} scroll={{ y: 500 }}></Table>
|
337
|
336
|
</div>
|
338
|
337
|
<Prompt message={location =>
|
339
|
|
- location.pathname.startsWith("/statistical/activity")
|
340
|
|
- ? true
|
341
|
|
- : localStorage.removeItem("tabState")} />
|
342
|
|
- </>
|
|
338
|
+ location.pathname.startsWith("/statistical/activity")
|
|
339
|
+ ? true
|
|
340
|
+ : localStorage.removeItem("tabState")} />
|
|
341
|
+ </>
|
343
|
342
|
)
|
344
|
343
|
|
345
|
344
|
}
|