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)
}
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({
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,
'params.orgId':unitId
})
@ -191,6 +191,7 @@ Page({
this.setData({
angencyFwList: arr,
})
this.getTableFwData()
}
})
},
@ -385,7 +386,7 @@ Page({
pageNo: 1,
tableFwData: []
})
this.getTableFwData()
this.getUnitoption(this.data.angencyFwList)
}
},
handelClickShowTree() {

Loading…
Cancel
Save