From 98c817ed9c015b50bfa4cb04d4d718d767a071d5 Mon Sep 17 00:00:00 2001
From: GULIMMO <2820890765@qq.com>
Date: Sat, 11 Nov 2023 19:45:59 +0800
Subject: [PATCH] 门牌码信息接口更新
---
subPackage/workbench/views/rental.vue | 19 +++++++++++++------
1 files changed, 13 insertions(+), 6 deletions(-)
diff --git a/subPackage/workbench/views/rental.vue b/subPackage/workbench/views/rental.vue
index 085ead8..2782260 100644
--- a/subPackage/workbench/views/rental.vue
+++ b/subPackage/workbench/views/rental.vue
@@ -158,7 +158,8 @@
})
}
},
- onLoad() {
+ onLoad() {
+ this.currentRole = uni.getStorageSync('activeRole')
this.getStatistics()
},
onShow() {
@@ -193,11 +194,15 @@
scrollTop: 0, // 滚动到页面的目标位置(单位px)
});
},
- getStatistics(auditStatus = '') {
- let params = {}
+ getStatistics(auditStatus = '') {
+ const { roleName } = this.currentRole
+ let params = {
+ roleName
+ }
if (auditStatus) {
params = {
- auditStatus
+ auditStatus,
+ roleName
}
}
getStatistics(params).then(res => {
@@ -212,7 +217,8 @@
return res.name
},
async getRentalHouseInfo(params = {}) {
- this.loadingStatus = 'loadmore'
+ this.loadingStatus = 'loadmore'
+ const { roleName } = this.currentRole
const {
code,
data: {
@@ -220,7 +226,8 @@
}
} = await getRentalHouseContent({
tenantName: this.keyword,
- ...this.pagingParams,
+ ...this.pagingParams,
+ roleName,
...this.selectParams
})
if (code !== 200) {
--
Gitblit v1.9.3