Browse Source

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

傅行帆 5 years ago
parent
commit
c7cee4e5ac

+ 6
- 0
src/pages/statistical/activity/addRegistNum.jsx View File

@@ -86,6 +86,7 @@ class SharePersonNum extends React.Component {
86 86
     this.state = {
87 87
       formData: {
88 88
         personFrom: '',
89
+        province: '',
89 90
         pageNum:'',
90 91
         pageSize:'',
91 92
         startDate: startDate,
@@ -119,11 +120,13 @@ class SharePersonNum extends React.Component {
119 120
     let startDate = null
120 121
     let endDate = null
121 122
     const personFrom = this.props.form.getFieldValue("personFrom");
123
+    const province = this.props.form.getFieldValue("province");
122 124
     const { formData } = this.state
123 125
     this.setState({
124 126
       formData: {
125 127
         ...formData,
126 128
         personFrom: personFrom,
129
+        province: province,
127 130
       }
128 131
     }, this.getTableList)
129 132
   }
@@ -177,6 +180,9 @@ class SharePersonNum extends React.Component {
177 180
           <span style={{marginLeft:'20px'}}>分享内容:{this.state.activityName}</span>
178 181
         </div>
179 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 186
         <Form.Item style={{marginTop:'20px', marginBottom:'20px'}}>
181 187
           {getFieldDecorator('personFrom')(
182 188
             <WxDictSelect />,

+ 19
- 19
src/pages/statistical/activity/compenents/Content.jsx View File

@@ -155,24 +155,6 @@ let columns = [
155 155
     dataIndex: 'activityName',
156 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 159
     title: '访问人数',
178 160
     dataIndex: 'visitPersonNum',
@@ -200,6 +182,24 @@ let columns = [
200 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 204
     title: '详情',
205 205
     align: 'center',
@@ -232,7 +232,7 @@ class OverView extends React.Component {
232 232
       radioVal: defaultDays,
233 233
       formData: {
234 234
 
235
-        startDate: moment().subtract(7, 'day').toDate(),
235
+        startDate: moment().subtract(6, 'day').toDate(),
236 236
         endDate: new Date,
237 237
         buildingId: '',
238 238
         targetType: '',