From 2f8609c86588d4f17426a222457cae78404fdcd7 Mon Sep 17 00:00:00 2001 From: wangfukang <15630117759@163.com> Date: Tue, 11 Aug 2026 15:07:36 +0800 Subject: [PATCH] 1 --- .../app/business/expressCompany/expressCompany.vue | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/views/app/business/expressCompany/expressCompany.vue b/src/views/app/business/expressCompany/expressCompany.vue index 5a13780..764fc2d 100644 --- a/src/views/app/business/expressCompany/expressCompany.vue +++ b/src/views/app/business/expressCompany/expressCompany.vue @@ -391,9 +391,12 @@ export default { return ""; } }, + withRegion(params = {}) { + return { ...params, regionId: this.resolveRegionId() }; + }, loadGoods() { this.loading = true; - fishGoodsPage(this.goodsQuery).then(res => { + fishGoodsPage(this.withRegion(this.goodsQuery)).then(res => { this.goodsList = this.records(res); this.goodsTotal = this.total(res); }).finally(() => this.loading = false); @@ -404,7 +407,7 @@ export default { }, loadCategories() { this.loading = true; - fishCategoryList({ regionId: this.resolveRegionId() }).then(res => { + fishCategoryList(this.withRegion()).then(res => { this.categoryList = res.result || res || []; }).finally(() => this.loading = false); }, @@ -417,15 +420,14 @@ export default { }, loadComplaints() { this.loading = true; - fishComplaintPage(this.complaintQuery).then(res => { + fishComplaintPage(this.withRegion(this.complaintQuery)).then(res => { this.complaintList = this.records(res); this.complaintTotal = this.total(res); }).finally(() => this.loading = false); }, loadAuditLogs() { this.loading = true; - this.auditLogQuery.regionId = this.resolveRegionId(); - fishAuditLogPage(this.auditLogQuery).then(res => { + fishAuditLogPage(this.withRegion(this.auditLogQuery)).then(res => { this.auditLogList = this.records(res); this.auditLogTotal = this.total(res); }).finally(() => this.loading = false);