diff --git a/src/view/components/areaChose.vue b/src/view/components/areaChose.vue index 7d6215c..ab0245c 100644 --- a/src/view/components/areaChose.vue +++ b/src/view/components/areaChose.vue @@ -56,7 +56,7 @@ const handChose = (index) => { getTownListsFn(options[index].value); sendFn('choserArea', { name: options[index].label, code: options[index].value }) - emit('handArea', options[actIndex.value].label,) + emit('handArea', {name:options[actIndex.value].label,code:options[actIndex.value].value},) } const handTown = (index) => { @@ -68,7 +68,7 @@ const handTown = (index) => { townLists.value.forEach(item => { if (item.code == townLists.value[index].code) { sendFn('choseTown', { name: item.name, code: item.code }) - emit('handTown', item.name) + emit('handTown', {name:item.name,code:item.code}) } }) } diff --git a/src/view/plantScreen/index.vue b/src/view/plantScreen/index.vue index b0a5396..1875e9d 100644 --- a/src/view/plantScreen/index.vue +++ b/src/view/plantScreen/index.vue @@ -1,28 +1,15 @@