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 @@