|
|
|
@ -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); |
|
|
|
|