ソースを参照

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
         ...formData,
127
         ...formData,
128
         personFrom: personFrom,
128
         personFrom: personFrom,
129
         province: province,
129
         province: province,
130
+        pageNum: 1,
131
+        pageSize: 999
130
       }
132
       }
131
     }, this.getTableList)
133
     }, this.getTableList)
132
   }
134
   }

+ 3
- 1
src/pages/statistical/activity/compenents/Content.jsx ファイルの表示

292
         endDate: endDate,
292
         endDate: endDate,
293
         buildingId: buildingId,
293
         buildingId: buildingId,
294
         targetType: targetType,
294
         targetType: targetType,
295
-        activityName: activityName
295
+        activityName: activityName,
296
+        pageNum: 1,
297
+        pageSize: 999
296
       }
298
       }
297
     }, this.getTableList)
299
     }, this.getTableList)
298
   }
300
   }

+ 3
- 1
src/pages/statistical/activity/compenents/OverView.jsx ファイルの表示

258
         startDate: startDate,
258
         startDate: startDate,
259
         endDate: endDate,
259
         endDate: endDate,
260
         buildingId: buildingId,
260
         buildingId: buildingId,
261
-        targetType: activityType
261
+        targetType: activityType,
262
+        pageNum: 1,
263
+        pageSize: 999
262
       }
264
       }
263
     }, this.getAllList)
265
     }, this.getAllList)
264
     this.setState({ startDate: startDate, endDate: endDate, buildingId: this.props.form.getFieldValue("buildingId"), targetType: this.props.form.getFieldValue("targetType") })
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
         ...formData,
119
         ...formData,
120
         sharePersonType: sharePersonType,
120
         sharePersonType: sharePersonType,
121
         sharePersonPhone: sharePersonPhone,
121
         sharePersonPhone: sharePersonPhone,
122
-        sharePersonName: sharePersonName
122
+        sharePersonName: sharePersonName,
123
+        pageNum: 1,
124
+        pageSize: 999
123
       }
125
       }
124
     }, this.getTableList)
126
     }, this.getTableList)
125
   }
127
   }

+ 3
- 1
src/pages/statistical/activity/sharePersonNum.jsx ファイルの表示

201
         ...formData,
201
         ...formData,
202
         sharePersonType: sharePersonType,
202
         sharePersonType: sharePersonType,
203
         sharePersonPhone: sharePersonPhone,
203
         sharePersonPhone: sharePersonPhone,
204
-        sharePersonName: sharePersonName
204
+        sharePersonName: sharePersonName,
205
+        pageNum: 1,
206
+        pageSize: 999
205
       }
207
       }
206
     }, this.getTableList)
208
     }, this.getTableList)
207
   }
209
   }

+ 3
- 32
src/pages/statistical/activity/visitNum.jsx ファイルの表示

143
         personFrom: personFrom,
143
         personFrom: personFrom,
144
         province: province,
144
         province: province,
145
         realtyConsultant: realtyConsultant,
145
         realtyConsultant: realtyConsultant,
146
-        realtyConsultantPhone: realtyConsultantPhone
146
+        realtyConsultantPhone: realtyConsultantPhone,
147
+        pageNum: 1,
148
+        pageSize: 999
147
       }
149
       }
148
     }, this.getTableList)
150
     }, this.getTableList)
149
   }
151
   }
151
   //重置搜索
153
   //重置搜索
152
   handleReset = e => {
154
   handleReset = e => {
153
     this.props.form.resetFields()
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
   goback = () => {
158
   goback = () => {

+ 3
- 1
src/pages/statistical/activity/visitPersonNum.jsx ファイルの表示

138
         personFrom: personFrom,
138
         personFrom: personFrom,
139
         province: province,
139
         province: province,
140
         realtyConsultant: realtyConsultant,
140
         realtyConsultant: realtyConsultant,
141
-        realtyConsultantPhone: realtyConsultantPhone
141
+        realtyConsultantPhone: realtyConsultantPhone,
142
+        pageNum: 1,
143
+        pageSize: 999
142
       }
144
       }
143
     }, this.getTableList)
145
     }, this.getTableList)
144
   }
146
   }

+ 2
- 2
src/pages/statistical/building/component/StatsChart.jsx ファイルの表示

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

+ 1
- 0
src/pages/statistical/building/component/StatsChartLine.jsx ファイルの表示

49
               name: '公客数',
49
               name: '公客数',
50
               type: 'line',
50
               type: 'line',
51
               data: data.gkList || []
51
               data: data.gkList || []
52
+              
52
           },
53
           },
53
           {
54
           {
54
               name: '私客数',
55
               name: '私客数',

+ 1
- 1
src/pages/statistical/consultant/visitNum.jsx ファイルの表示

138
             dataIndex: 'sex',
138
             dataIndex: 'sex',
139
             key: 'sex',
139
             key: 'sex',
140
             align: 'center',
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
             title: '访问时间',
144
             title: '访问时间',