From 9a4e2b08e1a87ef05dacf84076b619d0ccebd48b Mon Sep 17 00:00:00 2001 From: zmj <1493694146@qq.com> Date: Sat, 24 Feb 2024 11:47:39 +0800 Subject: [PATCH] add --- src/view/components/areaChose.vue | 4 +- src/view/plantScreen/index.vue | 157 +++++++++++++++++++++++----- src/view/tradeScreen/storeLogin.vue | 5 +- 3 files changed, 132 insertions(+), 34 deletions(-) diff --git a/src/view/components/areaChose.vue b/src/view/components/areaChose.vue index ab0245c..429cb15 100644 --- a/src/view/components/areaChose.vue +++ b/src/view/components/areaChose.vue @@ -55,7 +55,6 @@ const handChose = (index) => { actIndex.value = index; getTownListsFn(options[index].value); sendFn('choserArea', { name: options[index].label, code: options[index].value }) - emit('handArea', {name:options[actIndex.value].label,code:options[actIndex.value].value},) } @@ -73,7 +72,7 @@ const handTown = (index) => { }) } -const getTownListsFn = async (area_code = 510502) => { +const getTownListsFn = async (area_code = 510521) => { let res = await apigetTownLists({ area_code }) townLists.value = res.data; } @@ -89,7 +88,6 @@ const props = defineProps({ // 发送消息 const page = ref(1) const sendFn = (event, data = '') => { - if (data.page) page.value = data.page; sendMsg({ channel: props.channel, event, data }) } diff --git a/src/view/plantScreen/index.vue b/src/view/plantScreen/index.vue index 1875e9d..6c274b6 100644 --- a/src/view/plantScreen/index.vue +++ b/src/view/plantScreen/index.vue @@ -1,12 +1,28 @@