Selaa lähdekoodia

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

傅行帆 5 vuotta sitten
vanhempi
commit
c7cee4e5ac

+ 6
- 0
src/pages/statistical/activity/addRegistNum.jsx Näytä tiedosto

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 Näytä tiedosto

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: '',