Browse Source

居民搜索

work_tab_bar
mk 1 year ago
parent
commit
39abc9b355
  1. 11
      pages/resiAndHouse/resiAndHouse.js
  2. 4
      pages/resiAndHouse/resiAndHouse.wxml
  3. 2
      utils/api.js

11
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()
},

4
pages/resiAndHouse/resiAndHouse.wxml

@ -57,8 +57,8 @@
</view>
<view class="text-wrapper_9">
<text lines="1" class="text_19">信息完整度:</text>
<text lines="1" class="text_20">40%</text>
<!-- <text lines="1" class="text_19">信息完整度:</text>
<text lines="1" class="text_20">40%</text> -->
</view>
</view>
<view class="box_19">

2
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) {

Loading…
Cancel
Save