更新了组件

This commit is contained in:
weipengfei 2024-02-23 15:51:41 +08:00
parent 01b962d963
commit 41669abfe3
1 changed files with 4 additions and 0 deletions

View File

@ -46,6 +46,8 @@ const options = reactive([
const actIndex = ref(0)
const townLists = ref([])
const emit = defineEmits(['handTown', 'handArea'])
// /
const handChose = (index) => {
actIndex.value = index;
@ -53,6 +55,7 @@ const handChose = (index) => {
options.forEach(item => {
if (item.value == options[index].value) {
sendFn('choserArea', { name: item.label, code: item.value })
emit('handArea', options[actIndex.value].value,)
}
})
}
@ -67,6 +70,7 @@ const handTown = (index)=>{
townLists.value.forEach(item => {
if (item.code == townLists.value[index].code) {
sendFn('choseTown', { name: item.name })
emit('handTown', options[actIndex.value].value, item.code)
}
})
}