Преглед на файлове

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

zhoulisen преди 5 години
родител
ревизия
d105607ee7

+ 2
- 0
src/pages/statistical/activity/addRegistNum.jsx Целия файл

@@ -127,6 +127,8 @@ class SharePersonNum extends React.Component {
127 127
         ...formData,
128 128
         personFrom: personFrom,
129 129
         province: province,
130
+        pageNum: 1,
131
+        pageSize: 999
130 132
       }
131 133
     }, this.getTableList)
132 134
   }

+ 3
- 1
src/pages/statistical/activity/compenents/Content.jsx Целия файл

@@ -292,7 +292,9 @@ class OverView extends React.Component {
292 292
         endDate: endDate,
293 293
         buildingId: buildingId,
294 294
         targetType: targetType,
295
-        activityName: activityName
295
+        activityName: activityName,
296
+        pageNum: 1,
297
+        pageSize: 999
296 298
       }
297 299
     }, this.getTableList)
298 300
   }

+ 3
- 1
src/pages/statistical/activity/compenents/OverView.jsx Целия файл

@@ -258,7 +258,9 @@ class OverView extends React.Component {
258 258
         startDate: startDate,
259 259
         endDate: endDate,
260 260
         buildingId: buildingId,
261
-        targetType: activityType
261
+        targetType: activityType,
262
+        pageNum: 1,
263
+        pageSize: 999
262 264
       }
263 265
     }, this.getAllList)
264 266
     this.setState({ startDate: startDate, endDate: endDate, buildingId: this.props.form.getFieldValue("buildingId"), targetType: this.props.form.getFieldValue("targetType") })

+ 3
- 1
src/pages/statistical/activity/shareNum.jsx Целия файл

@@ -119,7 +119,9 @@ class SharePersonNum extends React.Component {
119 119
         ...formData,
120 120
         sharePersonType: sharePersonType,
121 121
         sharePersonPhone: sharePersonPhone,
122
-        sharePersonName: sharePersonName
122
+        sharePersonName: sharePersonName,
123
+        pageNum: 1,
124
+        pageSize: 999
123 125
       }
124 126
     }, this.getTableList)
125 127
   }

+ 3
- 1
src/pages/statistical/activity/sharePersonNum.jsx Целия файл

@@ -201,7 +201,9 @@ class SharePersonNum extends React.Component {
201 201
         ...formData,
202 202
         sharePersonType: sharePersonType,
203 203
         sharePersonPhone: sharePersonPhone,
204
-        sharePersonName: sharePersonName
204
+        sharePersonName: sharePersonName,
205
+        pageNum: 1,
206
+        pageSize: 999
205 207
       }
206 208
     }, this.getTableList)
207 209
   }

+ 3
- 32
src/pages/statistical/activity/visitNum.jsx Целия файл

@@ -143,7 +143,9 @@ class SharePersonNum extends React.Component {
143 143
         personFrom: personFrom,
144 144
         province: province,
145 145
         realtyConsultant: realtyConsultant,
146
-        realtyConsultantPhone: realtyConsultantPhone
146
+        realtyConsultantPhone: realtyConsultantPhone,
147
+        pageNum: 1,
148
+        pageSize: 999
147 149
       }
148 150
     }, this.getTableList)
149 151
   }
@@ -151,37 +153,6 @@ class SharePersonNum extends React.Component {
151 153
   //重置搜索
152 154
   handleReset = e => {
153 155
     this.props.form.resetFields()
154
-    let startDate;
155
-    let endDate;
156
-    if (this.props.location.query.queryDate){
157
-      startDate = moment(this.props.location.query.queryDate).hours(0).minutes(0).seconds(0).milliseconds(0).toDate();
158
-      endDate = moment(this.props.location.query.queryDate).hours(23).minutes(59).seconds(59).milliseconds(999).toDate();
159
-    }else{
160
-      startDate = moment(this.props.location.query.startDate).hours(0).minutes(0).seconds(0).milliseconds(0).toDate();
161
-      endDate = moment(this.props.location.query.endDate).hours(23).minutes(59).seconds(59).milliseconds(999).toDate();
162
-    }
163
-    this.setState({
164
-      formData: {
165
-        personFrom: '',
166
-        pageNum:'',
167
-        pageSize:'',
168
-        startDate: startDate,
169
-        endDate: endDate,
170
-        province:'',
171
-        realtyConsultant:'',
172
-        realtyConsultantPhone:'',
173
-        activityId: this.props.location.query.activityId,
174
-        activityType:this.props.location.query.activityType,
175
-        personId: this.props.location.query.personId,
176
-        buildingId: this.props.location.query.buildingId
177
-      },
178
-      personData: [],  
179
-      dataSoures: [],
180
-      tableData: [],
181
-      userType: 'all',
182
-      activityName:  this.props.location.query.activityName
183
-    })
184
-    this.getTableList()
185 156
   }
186 157
 
187 158
   goback = () => {

+ 3
- 1
src/pages/statistical/activity/visitPersonNum.jsx Целия файл

@@ -138,7 +138,9 @@ class SharePersonNum extends React.Component {
138 138
         personFrom: personFrom,
139 139
         province: province,
140 140
         realtyConsultant: realtyConsultant,
141
-        realtyConsultantPhone: realtyConsultantPhone
141
+        realtyConsultantPhone: realtyConsultantPhone,
142
+        pageNum: 1,
143
+        pageSize: 999
142 144
       }
143 145
     }, this.getTableList)
144 146
   }

+ 2
- 2
src/pages/statistical/building/component/StatsChart.jsx Целия файл

@@ -41,10 +41,10 @@ class StatsChart extends React.Component {
41 41
             barBorderRadius: [50, 50, 0, 0],
42 42
             color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
43 43
               offset: 0,
44
-              color: '#FD8A95'
44
+              color: '#FFC6AA'
45 45
             }, {
46 46
               offset: 1,
47
-              color: '#F13043'
47
+              color: '#FF7E48'
48 48
             }]),
49 49
             shadowColor: 'rgba(0, 0, 0, 0.4)',
50 50
 

+ 1
- 0
src/pages/statistical/building/component/StatsChartLine.jsx Целия файл

@@ -49,6 +49,7 @@ class StatsChart extends React.Component {
49 49
               name: '公客数',
50 50
               type: 'line',
51 51
               data: data.gkList || []
52
+              
52 53
           },
53 54
           {
54 55
               name: '私客数',

+ 1
- 1
src/pages/statistical/consultant/visitNum.jsx Целия файл

@@ -138,7 +138,7 @@ function record(props) {
138 138
             dataIndex: 'sex',
139 139
             key: 'sex',
140 140
             align: 'center',
141
-            render: (_, record) => <span>{record.sex == 1 ? '男' : '女'}</span>,
141
+            render: (_, record) => <span>{record.sex == null ? '未知': (record.sex == 1 ? '男' : '女')}</span>,
142 142
         },
143 143
         {
144 144
             title: '访问时间',