Kaynağa Gözat

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

xujing 5 yıl önce
ebeveyn
işleme
b6370e8d82

+ 6
- 0
src/pages/statistical/activity/addRegistNum.jsx Dosyayı Görüntüle

86
     this.state = {
86
     this.state = {
87
       formData: {
87
       formData: {
88
         personFrom: '',
88
         personFrom: '',
89
+        province: '',
89
         pageNum:'',
90
         pageNum:'',
90
         pageSize:'',
91
         pageSize:'',
91
         startDate: startDate,
92
         startDate: startDate,
119
     let startDate = null
120
     let startDate = null
120
     let endDate = null
121
     let endDate = null
121
     const personFrom = this.props.form.getFieldValue("personFrom");
122
     const personFrom = this.props.form.getFieldValue("personFrom");
123
+    const province = this.props.form.getFieldValue("province");
122
     const { formData } = this.state
124
     const { formData } = this.state
123
     this.setState({
125
     this.setState({
124
       formData: {
126
       formData: {
125
         ...formData,
127
         ...formData,
126
         personFrom: personFrom,
128
         personFrom: personFrom,
129
+        province: province,
127
       }
130
       }
128
     }, this.getTableList)
131
     }, this.getTableList)
129
   }
132
   }
177
           <span style={{marginLeft:'20px'}}>分享内容:{this.state.activityName}</span>
180
           <span style={{marginLeft:'20px'}}>分享内容:{this.state.activityName}</span>
178
         </div>
181
         </div>
179
         <Form layout="inline" onSubmit={e => this.handleSubmit(e, this.props)}>
182
         <Form layout="inline" onSubmit={e => this.handleSubmit(e, this.props)}>
183
+        <Form.Item style={{marginTop:'20px', marginBottom:'20px'}}>
184
+            {getFieldDecorator('province')(<Input placeholder="请输入归属地"/>)}
185
+        </Form.Item>
180
         <Form.Item style={{marginTop:'20px', marginBottom:'20px'}}>
186
         <Form.Item style={{marginTop:'20px', marginBottom:'20px'}}>
181
           {getFieldDecorator('personFrom')(
187
           {getFieldDecorator('personFrom')(
182
             <WxDictSelect />,
188
             <WxDictSelect />,

+ 19
- 19
src/pages/statistical/activity/compenents/Content.jsx Dosyayı Görüntüle

155
     dataIndex: 'activityName',
155
     dataIndex: 'activityName',
156
     key: 'activityName',
156
     key: 'activityName',
157
   },
157
   },
158
-  {
159
-    title: '分享人数',
160
-    dataIndex: 'sharePersonNum',
161
-    key: 'sharePersonNum',
162
-    sorter: true,
163
-    render: (text, record) => (
164
-      <a style={{ color: '#66B3FF' }} onClick={toSharePersonNum(record)}><span>{record.sharePersonNum}</span></a>
165
-    ),
166
-  },
167
-  {
168
-    title: '分享次数',
169
-    dataIndex: 'shareNum',
170
-    key: 'shareNum',
171
-    sorter: true,
172
-    render: (text, record) => (
173
-      <a style={{ color: '#66B3FF' }} onClick={toShareNum(record)}><span>{record.shareNum}</span></a>
174
-    ),
175
-  },
176
   {
158
   {
177
     title: '访问人数',
159
     title: '访问人数',
178
     dataIndex: 'visitPersonNum',
160
     dataIndex: 'visitPersonNum',
200
       <a style={{ color: '#66B3FF' }} onClick={toAddRegistNum(record)}><span>{record.addRegistNum}</span></a>
182
       <a style={{ color: '#66B3FF' }} onClick={toAddRegistNum(record)}><span>{record.addRegistNum}</span></a>
201
     ),
183
     ),
202
   },
184
   },
185
+  {
186
+    title: '分享人数',
187
+    dataIndex: 'sharePersonNum',
188
+    key: 'sharePersonNum',
189
+    sorter: true,
190
+    render: (text, record) => (
191
+      <a style={{ color: '#66B3FF' }} onClick={toSharePersonNum(record)}><span>{record.sharePersonNum}</span></a>
192
+    ),
193
+  },
194
+  {
195
+    title: '分享次数',
196
+    dataIndex: 'shareNum',
197
+    key: 'shareNum',
198
+    sorter: true,
199
+    render: (text, record) => (
200
+      <a style={{ color: '#66B3FF' }} onClick={toShareNum(record)}><span>{record.shareNum}</span></a>
201
+    ),
202
+  },
203
   {
203
   {
204
     title: '详情',
204
     title: '详情',
205
     align: 'center',
205
     align: 'center',
232
       radioVal: defaultDays,
232
       radioVal: defaultDays,
233
       formData: {
233
       formData: {
234
 
234
 
235
-        startDate: moment().subtract(7, 'day').toDate(),
235
+        startDate: moment().subtract(6, 'day').toDate(),
236
         endDate: new Date,
236
         endDate: new Date,
237
         buildingId: '',
237
         buildingId: '',
238
         targetType: '',
238
         targetType: '',

+ 40
- 1
src/pages/statistical/activity/compenents/OverView.jsx Dosyayı Görüntüle

193
       startDate: '',
193
       startDate: '',
194
       buildingId: [],
194
       buildingId: [],
195
       targetType: [],
195
       targetType: [],
196
+      helpVisible: false,
196
     }
197
     }
197
   }
198
   }
198
 
199
 
335
     }, this.getAllList)
336
     }, this.getAllList)
336
   }
337
   }
337
 
338
 
339
+  setShowHelp = (e) => {
340
+    console.log(e,"sssssssssssssssss")
341
+    this.setState({ ...this.state, helpVisible: e })
342
+  }
338
 
343
 
339
   render() {
344
   render() {
340
     const { radioVal } = this.state
345
     const { radioVal } = this.state
381
             </Button>
386
             </Button>
382
             <Button onClick={e => this.handleReset()} style={{ marginLeft: '30px' }}>重置</Button>
387
             <Button onClick={e => this.handleReset()} style={{ marginLeft: '30px' }}>重置</Button>
383
           </Form.Item>
388
           </Form.Item>
384
-          <Icon type="question-circle" theme="filled" style={{ marginTop:'25px', fontSize: '25px', color: '#F00', marginLeft:'30px'}} onClick={() => setShowHelp(true)}/>
389
+          <Icon type="question-circle" theme="filled" style={{ marginTop:'25px', fontSize: '25px', color: '#F00', marginLeft:'30px'}} onClick={() => this.setShowHelp(true)}/>
385
           
390
           
386
           </Form>     
391
           </Form>     
387
           
392
           
431
           <Table style={{marginTop:'20px'}} dataSource={this.state.tableData} columns={columns} pagination={{ total: this.state.total}} onChange={this.handleTableChange} scroll={{ y: 500 }}></Table>
436
           <Table style={{marginTop:'20px'}} dataSource={this.state.tableData} columns={columns} pagination={{ total: this.state.total}} onChange={this.handleTableChange} scroll={{ y: 500 }}></Table>
432
         </div>
437
         </div>
433
       </div>
438
       </div>
439
+
440
+      <Modal
441
+          title="指标说明"
442
+          visible={this.state.helpVisible}
443
+          onCancel={() => this.setShowHelp(false)}
444
+          footer={null}
445
+        >
446
+          <Row>
447
+          <p style={{ fontSize: '0.106rem', color: '#333', marginBottom: '8px' }}>分享人数:</p>
448
+          <p style={{ fontSize: '0.106rem', color: '#999', marginBottom: '8px' }}>分享小程序活动的总人数</p>
449
+            
450
+            
451
+          </Row>
452
+          <Row>
453
+          <p style={{ fontSize: '0.106rem', color: '#333', marginBottom: '8px' }}>分享次数:</p>
454
+          <p style={{ fontSize: '0.106rem', color: '#999', marginBottom: '8px' }}>触发小程序活动分享的总次数</p>
455
+          </Row>
456
+          
457
+          <Row>
458
+          <p style={{ fontSize: '0.106rem', color: '#333', marginBottom: '8px' }}>新增注册用户:</p>
459
+          <p style={{ fontSize: '0.106rem', color: '#999', marginBottom: '8px' }}>通过分享的活动授权手机号的总人数</p>
460
+          </Row>
461
+          
462
+          <Row>
463
+          <p style={{ fontSize: '0.106rem', color: '#333', marginBottom: '8px' }}>访问人数:</p>
464
+          <p style={{ fontSize: '0.106rem', color: '#999', marginBottom: '8px' }}>访问小程序活动的总人数</p>
465
+          </Row>
466
+          
467
+          <Row>
468
+          <p style={{ fontSize: '0.106rem', color: '#333', marginBottom: '8px' }}>访问次数:</p>
469
+          <p style={{ fontSize: '0.106rem', color: '#999', marginBottom: '8px' }}>访问小程序活动的总次数</p> 
470
+          </Row>
471
+          
472
+        </Modal>
434
     </>
473
     </>
435
     )
474
     )
436
     
475