Browse Source

居民信息不完整列表按管辖范围筛选应该可选到组织的任一级

data-paga-xiaowang
是小王呀\24601 1 year ago
parent
commit
0952122ba1
  1. BIN
      images/index/JM.png
  2. BIN
      images/index/house.png
  3. 7
      subpages/resnoinformation/pages/resnoinformation/resnoinformation.js

BIN
images/index/JM.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

BIN
images/index/house.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

7
subpages/resnoinformation/pages/resnoinformation/resnoinformation.js

@ -29,7 +29,7 @@ Page({
cascaderValue:'', cascaderValue:'',
// 显示长度 // 显示长度
maxLength:10, maxLength:10,
// vue返回的值 // value返回的值
cascaderName:null, cascaderName:null,
//显示菜单 //显示菜单
showStreet:false, showStreet:false,
@ -79,6 +79,11 @@ getTopTreeData() {
onChange(e) { onChange(e) {
// value等于 e.detail.value // value等于 e.detail.value
const { value, tabIndex, selectedOptions } = e.detail; const { value, tabIndex, selectedOptions } = e.detail;
console.log(e.detail)
console.log(selectedOptions)
this.setData({
cascaderName:e.detail.selectedOptions.map(item => item.label).join(' ')
})
// 判断是否是第二层,并且最后自己的level部位building // 判断是否是第二层,并且最后自己的level部位building
if (tabIndex > 0 && selectedOptions[selectedOptions.length - 1].level != 'building') { if (tabIndex > 0 && selectedOptions[selectedOptions.length - 1].level != 'building') {
const level = selectedOptions[selectedOptions.length - 1].level const level = selectedOptions[selectedOptions.length - 1].level

Loading…
Cancel
Save