Procházet zdrojové kódy

Merge branch 'dev' of http://git.ycjcjy.com/zhiyuxing/estateagents-admin-manager into dev

xujing před 5 roky
rodič
revize
a86ac414c2

+ 1
- 2
src/pages/statistical/activity/addRegistNum.jsx Zobrazit soubor

@@ -162,8 +162,7 @@ class SharePersonNum extends React.Component {
162 162
       tableData: [],
163 163
       userType: 'all',
164 164
       activityName:  this.props.location.query.activityName
165
-    })
166
-    this.getTableList()
165
+    },this.getTableList)
167 166
   }
168 167
 
169 168
   goback = () => {

+ 1
- 2
src/pages/statistical/activity/shareNum.jsx Zobrazit soubor

@@ -159,8 +159,7 @@ class SharePersonNum extends React.Component {
159 159
       tableData: [],
160 160
       userType: 'all',
161 161
       activityName:  this.props.location.query.activityName
162
-    })
163
-    this.getTableList()
162
+    },this.getTableList)
164 163
   }
165 164
 
166 165
   goback = () => {

+ 1
- 2
src/pages/statistical/activity/sharePersonNum.jsx Zobrazit soubor

@@ -247,8 +247,7 @@ class SharePersonNum extends React.Component {
247 247
       tableData: [],
248 248
       userType: 'all',
249 249
       activityName:  this.props.location.query.activityName
250
-    }) 
251
-    this.getTableList()
250
+    },this.getTableList) 
252 251
   }
253 252
 
254 253
   goback = () => {

+ 31
- 0
src/pages/statistical/activity/visitNum.jsx Zobrazit soubor

@@ -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 = () => {

+ 1
- 2
src/pages/statistical/activity/visitPersonNum.jsx Zobrazit soubor

@@ -178,8 +178,7 @@ class SharePersonNum extends React.Component {
178 178
       tableData: [],
179 179
       userType: 'all',
180 180
       activityName: this.props.location.query.activityName
181
-    })
182
-    this.getTableList()
181
+    },this.getTableList)
183 182
   }
184 183
 
185 184
   goback = () => {