魏超 5 jaren geleden
bovenliggende
commit
fe595065c4

+ 11
- 7
src/pages/statistical/activity/compenents/OverView.jsx Bestand weergeven

@@ -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' }}>

+ 3
- 1
src/pages/statistical/activity/index.jsx Bestand weergeven

@@ -48,14 +48,16 @@ function EditHouse(props) {
48 48
 
49 49
   return (
50 50
     <>
51
+    
51 52
       <Tabs type="card" value={ tab } buttonStyle="solid" onChange={e => tabsCallback(e)}>
52 53
         <TabPane tab="统计总况" key="overView" ></TabPane>
53 54
         <TabPane tab="统计内容" key="content" ></TabPane>
54
-        {/* <Icon type="question-circle" theme="filled" style={{ fontSize: '25px', color: '#F00', marginLeft:'30px'}} /> */}
55 55
       </Tabs>
56 56
       <div style={{ marginTop: '20px' }}>
57 57
         { (tab === 'overView' && <OverView />)}
58 58
         { (tab === 'content' && <Content />)}
59
+        { (tab === 'desc' && <Icon type="question-circle" theme="filled" style={{ fontSize: '25px', color: '#F00', marginLeft:'30px'}} />)}
60
+        
59 61
       </div>
60 62
     </>
61 63
   )

+ 1
- 1
src/pages/statistical/activity/shareNum.jsx Bestand weergeven

@@ -33,7 +33,7 @@ let columns = [
33 33
     key: 'shareType',
34 34
     render: (text, records) => {
35 35
       if (records.sharePersonType === 'drift') { return '游客' }
36
-      if (records.sharePersonType === 'customer') { return '客户' }
36
+      if (records.sharePersonType === 'customer') { return '普通客户' }
37 37
       if (records.sharePersonType === 'Realty Consultant') { return '置业顾问' }
38 38
     },
39 39
   },

+ 1
- 1
src/pages/statistical/activity/sharePersonNum.jsx Bestand weergeven

@@ -85,7 +85,7 @@ let columns = [
85 85
     key: 'sharePersonType',
86 86
     render: (text, records) => {
87 87
       if (records.sharePersonType === 'drift') { return '游客' }
88
-      if (records.sharePersonType === 'customer') { return '客户' }
88
+      if (records.sharePersonType === 'customer') { return '普通客户' }
89 89
       if (records.sharePersonType === 'Realty Consultant') { return '置业顾问' }
90 90
     },
91 91
   },

+ 1
- 6
src/pages/statistical/activity/visitPersonNum.jsx Bestand weergeven

@@ -59,15 +59,10 @@ let columns = [
59 59
     key: 'realtyConsultantPhone',
60 60
   },
61 61
   {
62
-    title: '分享者',
62
+    title: '推广人',
63 63
     dataIndex: 'sharePersonName',
64 64
     key: 'sharePersonName',
65 65
   },
66
-  {
67
-    title: '分享者电话',
68
-    dataIndex: 'sharePersonPhone',
69
-    key: 'sharePersonPhone',
70
-  },
71 66
   {
72 67
     title: '访问次数',
73 68
     dataIndex: 'visitNum',