Browse Source

默认选中单元

data-page-4.3.2
mk 2 years ago
parent
commit
3de394097f
  1. 7
      pages/resiAndHouse/resiAndHouse.js

7
pages/resiAndHouse/resiAndHouse.js

@ -164,9 +164,9 @@ Page({
}) })
this.getUnitoption(res.data) this.getUnitoption(res.data)
} }
let unitId = this.data.tempList.filter(item=>item.level == 'unit')[0].id let unitId = this.data.tempList.filter(item=>item.level == 'unit')[0]?.id
this.setData({ this.setData({
cascaderNameFw:this.data.tempList.map(item=>item.label).join(','), cascaderNameFw:this.data.tempList.map(item=>item.label).splice(0,this.data.tempList.length-1).join(','),
'params1.searchOrgIdPath':unitId, 'params1.searchOrgIdPath':unitId,
'params.orgId':unitId 'params.orgId':unitId
}) })
@ -191,6 +191,7 @@ Page({
this.setData({ this.setData({
angencyFwList: arr, angencyFwList: arr,
}) })
this.getTableFwData()
} }
}) })
}, },
@ -385,7 +386,7 @@ Page({
pageNo: 1, pageNo: 1,
tableFwData: [] tableFwData: []
}) })
this.getTableFwData() this.getUnitoption(this.data.angencyFwList)
} }
}, },
handelClickShowTree() { handelClickShowTree() {

Loading…
Cancel
Save