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() { getAllOrgCategoryCount() {
let parm = { let parm = {
residentInfo: this.data.keyWord, residentInfo: this.data.keyWord,
agencyId: this.data.searchOrgIdPath, agencyId:App.globalData.user.agencyId,
orgId: 'e723c89ee5ed0cc382576833e7c6a220', orgId: this.data.searchOrgIdPath,
level: 'community' level: 'agency'
} }
api.getAllOrgCategoryCount(parm).then(res => { api.getAllOrgCategoryCount(parm).then(res => {
if (res.code == 0) { if (res.code == 0) {
@ -180,7 +180,7 @@ Page({
} }
}) })
this.setData({ 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 => { }).catch(err => {
@ -198,7 +198,8 @@ Page({
this.setData({ this.setData({
pageNo: 1, pageNo: 1,
searchOrgIdPath:e.detail.selectedOptions[e.detail.selectedOptions.length-1].agencyId, 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() this.getTableData()
}, },

4
pages/resiAndHouse/resiAndHouse.wxml

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

2
utils/api.js

@ -109,7 +109,7 @@ function logout() {
} }
// 居民查询 // 居民查询
function getResidentBaseInfo(para) { function getResidentBaseInfo(para) {
return fly.post('actual/base/residentBaseInfo/residentSearch', para) return fly.post('actual/base/residentBaseInfo/residentSearchMP', para)
} }
// 房屋查询 // 房屋查询
function getCommunityHouse(para) { function getCommunityHouse(para) {

Loading…
Cancel
Save