wangfukang 1 month ago
parent
commit
2f8609c865
  1. 12
      src/views/app/business/expressCompany/expressCompany.vue

12
src/views/app/business/expressCompany/expressCompany.vue

@ -391,9 +391,12 @@ export default {
return ""; return "";
} }
}, },
withRegion(params = {}) {
return { ...params, regionId: this.resolveRegionId() };
},
loadGoods() { loadGoods() {
this.loading = true; this.loading = true;
fishGoodsPage(this.goodsQuery).then(res => { fishGoodsPage(this.withRegion(this.goodsQuery)).then(res => {
this.goodsList = this.records(res); this.goodsList = this.records(res);
this.goodsTotal = this.total(res); this.goodsTotal = this.total(res);
}).finally(() => this.loading = false); }).finally(() => this.loading = false);
@ -404,7 +407,7 @@ export default {
}, },
loadCategories() { loadCategories() {
this.loading = true; this.loading = true;
fishCategoryList({ regionId: this.resolveRegionId() }).then(res => { fishCategoryList(this.withRegion()).then(res => {
this.categoryList = res.result || res || []; this.categoryList = res.result || res || [];
}).finally(() => this.loading = false); }).finally(() => this.loading = false);
}, },
@ -417,15 +420,14 @@ export default {
}, },
loadComplaints() { loadComplaints() {
this.loading = true; this.loading = true;
fishComplaintPage(this.complaintQuery).then(res => { fishComplaintPage(this.withRegion(this.complaintQuery)).then(res => {
this.complaintList = this.records(res); this.complaintList = this.records(res);
this.complaintTotal = this.total(res); this.complaintTotal = this.total(res);
}).finally(() => this.loading = false); }).finally(() => this.loading = false);
}, },
loadAuditLogs() { loadAuditLogs() {
this.loading = true; this.loading = true;
this.auditLogQuery.regionId = this.resolveRegionId(); fishAuditLogPage(this.withRegion(this.auditLogQuery)).then(res => {
fishAuditLogPage(this.auditLogQuery).then(res => {
this.auditLogList = this.records(res); this.auditLogList = this.records(res);
this.auditLogTotal = this.total(res); this.auditLogTotal = this.total(res);
}).finally(() => this.loading = false); }).finally(() => this.loading = false);

Loading…
Cancel
Save