|
|
@@ -179,11 +179,13 @@ export default {
|
|
179
|
179
|
|
|
180
|
180
|
// 如果是"我的分成",调用分成接口
|
|
181
|
181
|
if (this.activeType === 3) {
|
|
|
182
|
+ // 参考 myCommission.vue 的实现,需要传递 type: 2
|
|
182
|
183
|
result = await uni.$u.api.selectCommissionList({
|
|
183
|
184
|
pageSize: this.commissionQueryParams.pageSize,
|
|
184
|
185
|
pageNum: this.commissionQueryParams.pageNum,
|
|
185
|
186
|
}, {
|
|
186
|
|
- ...this.commissionQueryParams
|
|
|
187
|
+ ...this.commissionQueryParams,
|
|
|
188
|
+ type: '2'
|
|
187
|
189
|
});
|
|
188
|
190
|
console.log('分成列表', result);
|
|
189
|
191
|
} else {
|
|
|
@@ -238,7 +240,15 @@ export default {
|
|
238
|
240
|
this.statisticsSendStatus = [];
|
|
239
|
241
|
return;
|
|
240
|
242
|
}
|
|
241
|
|
- const { data } = await uni.$u.api.statisticsSendStatus({ type: this.activeType });
|
|
|
243
|
+ // 传递完整的查询参数,包括筛选条件,参考 orderCenter.vue 的实现
|
|
|
244
|
+ const params = {
|
|
|
245
|
+ ...this.queryParams,
|
|
|
246
|
+ type: this.activeType,
|
|
|
247
|
+ };
|
|
|
248
|
+ // 移除分页参数
|
|
|
249
|
+ delete params.pageNum;
|
|
|
250
|
+ delete params.pageSize;
|
|
|
251
|
+ const { data } = await uni.$u.api.statisticsSendStatus(params);
|
|
242
|
252
|
// console.log('统计数据是', data)
|
|
243
|
253
|
|
|
244
|
254
|
this.statisticsSendStatus = data;
|
|
|
@@ -449,6 +459,8 @@ export default {
|
|
449
|
459
|
this.page.pageNum = 1;
|
|
450
|
460
|
this.orderList = [];
|
|
451
|
461
|
this.getOrderList();
|
|
|
462
|
+ // 搜索时也要更新统计数据
|
|
|
463
|
+ this.getStatisticsSendStatus();
|
|
452
|
464
|
},
|
|
453
|
465
|
// 处理关键词清空
|
|
454
|
466
|
handleKeywordClear() {
|
|
|
@@ -458,6 +470,8 @@ export default {
|
|
458
|
470
|
this.page.pageNum = 1;
|
|
459
|
471
|
this.orderList = [];
|
|
460
|
472
|
this.getOrderList();
|
|
|
473
|
+ // 清空时也要更新统计数据
|
|
|
474
|
+ this.getStatisticsSendStatus();
|
|
461
|
475
|
},
|
|
462
|
476
|
// 显示筛选弹窗
|
|
463
|
477
|
handleshowFilter() {
|
|
|
@@ -471,6 +485,8 @@ export default {
|
|
471
|
485
|
this.page.pageNum = 1;
|
|
472
|
486
|
this.orderList = [];
|
|
473
|
487
|
this.getOrderList();
|
|
|
488
|
+ // 筛选时也要更新统计数据
|
|
|
489
|
+ this.getStatisticsSendStatus();
|
|
474
|
490
|
},
|
|
475
|
491
|
//切换统计数据的类型
|
|
476
|
492
|
changeStatus(param) {
|