| | |
| | | { label: '浦江镇', value: ' 310112114' }, |
| | | { label: '莘庄工业区', value: ' 310112501' }, |
| | | ], |
| | | // 长宁区 |
| | | 310105: [ |
| | | { label: '华阳路街道', value: '310105001' }, |
| | | { label: '江苏路街道', value: '310105002' }, |
| | | { label: '新华路街道', value: '310105004' }, |
| | | { label: '周家桥街道', value: '310105005' }, |
| | | { label: '天山路街道', value: '310105006' }, |
| | | { label: '仙霞新村街道', value: '310105008' }, |
| | | { label: '虹桥街道', value: '310105009' }, |
| | | { label: '程家桥街道', value: '310105010' }, |
| | | { label: '北新泾街道', value: '310105011' }, |
| | | { label: '新泾镇', value: '310105102' }, |
| | | ], |
| | | }; |
| | | |
| | | function choseTownList(districtCode) { |
| | |
| | | } else if (bInfo && (bInfo.ucArea || bInfo.ucManagementCompany)) { |
| | | towns.unshift({ label: '全部', value: null }); |
| | | } else { |
| | | Towns[districtCode].forEach(d => { |
| | | towns.push(d); |
| | | }); |
| | | if (Towns[districtCode]) { |
| | | |
| | | } else { |
| | | Towns[districtCode].forEach(d => { |
| | | towns.push(d); |
| | | }); |
| | | } |
| | | towns.unshift({ label: '全部', value: null }); |
| | | } |
| | | return towns; |
| | | } |
| | | |
| | | function toLabel(value) { |
| | | for (const iterator of Towns) { |
| | | let r = iterator.value.find(item => { |
| | | for (const key in Towns) { |
| | | let r = Towns[key].find(item => { |
| | | return item.value == value; |
| | | }); |
| | | if (r) { |
| | |
| | | } |
| | | |
| | | function toValue(label) { |
| | | for (const iterator of Towns) { |
| | | let r = iterator.value.find(item => { |
| | | for (const key in Towns) { |
| | | let r = Towns[key].find(item => { |
| | | return item.label == label; |
| | | }); |
| | | if (r) { |