From d0675eb007317dc645ca5b895a96ae73fcd27ae6 Mon Sep 17 00:00:00 2001 From: zmj <1493694146@qq.com> Date: Fri, 23 Feb 2024 23:49:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E7=8F=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/view/components/areaChose.vue | 4 +- src/view/plantScreen/index.vue | 132 ++++++++---------------------- src/view/tradeScreen/index.vue | 5 +- 3 files changed, 40 insertions(+), 101 deletions(-) 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 @@