|
@@ -153,6 +153,37 @@ class SharePersonNum extends React.Component {
|
153
|
153
|
//重置搜索
|
154
|
154
|
handleReset = e => {
|
155
|
155
|
this.props.form.resetFields()
|
|
156
|
+ let startDate;
|
|
157
|
+ let endDate;
|
|
158
|
+ if (this.props.location.query.queryDate){
|
|
159
|
+ startDate = moment(this.props.location.query.queryDate).hours(0).minutes(0).seconds(0).milliseconds(0).toDate();
|
|
160
|
+ endDate = moment(this.props.location.query.queryDate).hours(23).minutes(59).seconds(59).milliseconds(999).toDate();
|
|
161
|
+ }else{
|
|
162
|
+ startDate = moment(this.props.location.query.startDate).hours(0).minutes(0).seconds(0).milliseconds(0).toDate();
|
|
163
|
+ endDate = moment(this.props.location.query.endDate).hours(23).minutes(59).seconds(59).milliseconds(999).toDate();
|
|
164
|
+ }
|
|
165
|
+ console.log(startDate)
|
|
166
|
+ this.setState( {
|
|
167
|
+ formData: {
|
|
168
|
+ personFrom: '',
|
|
169
|
+ pageNum:'',
|
|
170
|
+ pageSize:'',
|
|
171
|
+ startDate: startDate,
|
|
172
|
+ endDate: endDate,
|
|
173
|
+ province:'',
|
|
174
|
+ realtyConsultant:'',
|
|
175
|
+ realtyConsultantPhone:'',
|
|
176
|
+ activityId: this.props.location.query.activityId,
|
|
177
|
+ activityType:this.props.location.query.activityType,
|
|
178
|
+ personId: this.props.location.query.personId,
|
|
179
|
+ buildingId: this.props.location.query.buildingId
|
|
180
|
+ },
|
|
181
|
+ personData: [],
|
|
182
|
+ dataSoures: [],
|
|
183
|
+ tableData: [],
|
|
184
|
+ userType: 'all',
|
|
185
|
+ activityName: this.props.location.query.activityName
|
|
186
|
+ }, this.getTableList)
|
156
|
187
|
}
|
157
|
188
|
|
158
|
189
|
goback = () => {
|