This commit is contained in:
weipengfei 2024-01-22 18:08:12 +08:00
parent fb39a007ad
commit db2e8fb6e5
1 changed files with 18 additions and 16 deletions

View File

@ -27,29 +27,30 @@ const options = [
value: '510502', value: '510502',
label: '江阳区', label: '江阳区',
}, },
{ // {
value: '510503', // value: '510503',
label: '纳溪区', // label: '',
}, // },
{ // {
value: '510504', // value: '510504',
label: '龙马潭区', // label: '',
}, // },
{ {
value: '510521', value: '510521',
label: '泸县', label: '泸县',
}, },
{ // {
value: '510522', // value: '510522',
label: '合江县 ', // label: ' ',
}, // },
{ {
value: '510524', value: '510524',
label: '叙永县 ', label: '叙永县 ',
}, {
value: '510525',
label: '古蔺县 ',
}, },
// {
// value: '510525',
// label: ' ',
// },
] ]
// //
const townOptions = [] const townOptions = []
@ -69,6 +70,7 @@ const changeArea = (e) => {
} }
const changeTown = (e) => { const changeTown = (e) => {
console.log(e)
townOptions.forEach(item => { townOptions.forEach(item => {
if (item.value == e) { if (item.value == e) {
sendFn('choseTown', { name: item.label }) sendFn('choseTown', { name: item.label })