diff --git a/pages/resiAndHouse/resiAndHouse.js b/pages/resiAndHouse/resiAndHouse.js
index 83c037e..7a76313 100644
--- a/pages/resiAndHouse/resiAndHouse.js
+++ b/pages/resiAndHouse/resiAndHouse.js
@@ -162,9 +162,9 @@ Page({
getAllOrgCategoryCount() {
let parm = {
residentInfo: this.data.keyWord,
- agencyId: this.data.searchOrgIdPath,
- orgId: 'e723c89ee5ed0cc382576833e7c6a220',
- level: 'community'
+ agencyId:App.globalData.user.agencyId,
+ orgId: this.data.searchOrgIdPath,
+ level: 'agency'
}
api.getAllOrgCategoryCount(parm).then(res => {
if (res.code == 0) {
@@ -180,7 +180,7 @@ Page({
}
})
this.setData({
- tabList: res.data.filter(item => item.categoryName == '党员' || item.categoryName == '关注人群' || item.categoryName == '特殊人群' || item.categoryName == '非健康人群' || item.categoryName == '居民')
+ tabList: res.data.filter(item => item.categoryName == '党员' || item.categoryName == '关注人群' || item.categoryName == '特殊人群' || item.categoryName == '非健康人群' || item.categoryName == '居民').reverse()
})
}
}).catch(err => {
@@ -198,7 +198,8 @@ Page({
this.setData({
pageNo: 1,
searchOrgIdPath:e.detail.selectedOptions[e.detail.selectedOptions.length-1].agencyId,
- cascaderName:e.detail.selectedOptions.map(item=>item.agencyName).join(',')
+ cascaderName:e.detail.selectedOptions.map(item=>item.agencyName).join(','),
+ tableData:[]
})
this.getTableData()
},
diff --git a/pages/resiAndHouse/resiAndHouse.wxml b/pages/resiAndHouse/resiAndHouse.wxml
index 45a8b85..2bf1849 100644
--- a/pages/resiAndHouse/resiAndHouse.wxml
+++ b/pages/resiAndHouse/resiAndHouse.wxml
@@ -57,8 +57,8 @@
- 信息完整度:
- 40%
+
diff --git a/utils/api.js b/utils/api.js
index de42fe3..eb232f3 100644
--- a/utils/api.js
+++ b/utils/api.js
@@ -109,7 +109,7 @@ function logout() {
}
// 居民查询
function getResidentBaseInfo(para) {
- return fly.post('actual/base/residentBaseInfo/residentSearch', para)
+ return fly.post('actual/base/residentBaseInfo/residentSearchMP', para)
}
// 房屋查询
function getCommunityHouse(para) {