From c635d78b479510ebe2556a420948effcd30a0731 Mon Sep 17 00:00:00 2001 From: skyouc Date: 星期六, 21 十二月 2024 18:40:43 +0800 Subject: [PATCH] 新建德森项目分支 --- zy-asrs-admin/src/views/loc/locMap/index.vue | 108 +++++++++++++++++++++++++++--------------------------- 1 files changed, 54 insertions(+), 54 deletions(-) diff --git a/zy-asrs-admin/src/views/loc/locMap/index.vue b/zy-asrs-admin/src/views/loc/locMap/index.vue index 2930318..9d30cef 100644 --- a/zy-asrs-admin/src/views/loc/locMap/index.vue +++ b/zy-asrs-admin/src/views/loc/locMap/index.vue @@ -1,54 +1,54 @@ -<script setup> -import { getCurrentInstance, ref, computed, reactive } from 'vue'; -import { useRouter } from "vue-router"; -import { get, post, postBlob } from '@/utils/request.js' -import { message, Modal } from 'ant-design-vue'; -import { logout } from '@/config.js'; -import { formatMessage } from '@/utils/localeUtils.js'; -import MapView from '@/components/loc/map/index.vue' -import LocMapView from './locMap.vue' -import { - FormOutlined, - CameraOutlined, -} from "@ant-design/icons-vue"; - -const currentPage = ref("map") - -const switchPage = () => { - let tmp = '' - if (currentPage.value == 'map') { - tmp = 'locMap' - } - if (currentPage.value == 'locMap') { - tmp = 'map' - } - currentPage.value = tmp; -} - -</script> - -<script> -export default { - name: '搴撲綅鍦板浘' -} -</script> - -<template> - <a-float-button :style="{ - right: '24px', - bottom: '100px' - }" @click="switchPage()"> - <template #icon> - <div v-if="currentPage == 'map'"> - <FormOutlined /> - </div> - <div v-else> - <CameraOutlined /> - </div> - </template> - </a-float-button> - <MapView v-if="currentPage == 'map'" /> - <LocMapView v-else /> -</template> - -<style></style> +<script setup> +import { getCurrentInstance, ref, computed, reactive } from 'vue'; +import { useRouter } from "vue-router"; +import { get, post, postBlob } from '@/utils/request.js' +import { message, Modal } from 'ant-design-vue'; +import { logout } from '@/config.js'; +import { formatMessage } from '@/utils/localeUtils.js'; +import MapView from '@/components/loc/map/index.vue' +import LocMapView from './locMap.vue' +import { + FormOutlined, + CameraOutlined, +} from "@ant-design/icons-vue"; + +const currentPage = ref("map") + +const switchPage = () => { + let tmp = '' + if (currentPage.value == 'map') { + tmp = 'locMap' + } + if (currentPage.value == 'locMap') { + tmp = 'map' + } + currentPage.value = tmp; +} + +</script> + +<script> +export default { + name: '搴撲綅鍦板浘' +} +</script> + +<template> + <a-float-button :style="{ + right: '24px', + bottom: '100px' + }" @click="switchPage()"> + <template #icon> + <div v-if="currentPage == 'map'"> + <FormOutlined /> + </div> + <div v-else> + <CameraOutlined /> + </div> + </template> + </a-float-button> + <MapView v-if="currentPage == 'map'" /> + <LocMapView v-else /> +</template> + +<style></style> -- Gitblit v1.9.1