From c960b57e0ba3b073617f6bfeb4d4ca0e9b548f28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=88=E5=85=86=E5=A2=9E?= <你的邮箱@example.com> Date: Mon, 18 May 2026 09:03:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B0=B4=E6=B8=A9=E6=8E=A5=E5=8F=A3=E6=A8=A1?= =?UTF-8?q?=E6=8B=9F=EF=BC=8C=E8=A7=86=E9=A2=91=E7=9B=91=E6=8E=A7=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/.env.development | 9 +- frontend/.lingma/settings.local.json | 4 + frontend/src/api/config.ts | 19 - frontend/src/api/sw/index.ts | 8 + .../components/BaseLayerSwitcher/index.vue | 18 +- frontend/src/components/gis/GisView.vue | 1 + .../src/components/mapController/index.vue | 17 +- frontend/src/main.ts | 1 - .../index.vue | 166 +++--- .../yanchengshuiwenChangeMod/index.vue | 214 ++++---- frontend/src/store/modules/ui.ts | 4 +- .../shiPinJianKong/shiPinJianKongZhuanTi.vue | 504 +++++++++++++++++- 12 files changed, 764 insertions(+), 201 deletions(-) create mode 100644 frontend/.lingma/settings.local.json delete mode 100644 frontend/src/api/config.ts create mode 100644 frontend/src/api/sw/index.ts diff --git a/frontend/.env.development b/frontend/.env.development index 32956c3..b7a10c4 100644 --- a/frontend/.env.development +++ b/frontend/.env.development @@ -3,7 +3,7 @@ # 变量必须以 VITE_ 为前缀才能暴露给外部读取 NODE_ENV='development' -VITE_APP_TITLE = '水电水利建设项目全过程环 境管理信息平台' +VITE_APP_TITLE = '水电水利建设项目全过程环境管理信息平台' VITE_APP_PORT = 3000 VITE_APP_BASE_API = '/dev-api' # 本地环境 @@ -12,14 +12,12 @@ VITE_APP_BASE_API = '/dev-api' # VITE_APP_BASE_URL = 'http://172.16.21.142:8096' # VITE_APP_BASE_URL = 'http://172.16.21.142:8096' # 汤伟 -VITE_APP_BASE_URL = 'http://10.84.121.21:8093' +# VITE_APP_BASE_URL = 'http://10.84.121.21:8093' +VITE_APP_BASE_URL = 'http://192.168.1.162:8093' # 测试环境线上 VITE_APP_TEST_ONLINE_URL = 'https://211.99.26.225:12122' -# 线上服务名称 -VITE_APP_LYGK_SERVER = '/api/dec-lygk-base-server' - @@ -27,3 +25,4 @@ VITE_APP_LYGK_SERVER = '/api/dec-lygk-base-server' VITE_APP_BASE_API_URL = 'http://10.84.121.21:8093' ## 开发环境预览 图片视频地址 VITE_APP_PREVIEW_URL = 'https://211.99.26.225:12125' +# ?menu=systemManageMenu&page=disposeManage \ No newline at end of file diff --git a/frontend/.lingma/settings.local.json b/frontend/.lingma/settings.local.json new file mode 100644 index 0000000..097b7bf --- /dev/null +++ b/frontend/.lingma/settings.local.json @@ -0,0 +1,4 @@ +{ + "permissions": {}, + "outputStyle": "Vibe" +} \ No newline at end of file diff --git a/frontend/src/api/config.ts b/frontend/src/api/config.ts deleted file mode 100644 index 0420952..0000000 --- a/frontend/src/api/config.ts +++ /dev/null @@ -1,19 +0,0 @@ -// src/api/config.ts -// 获取环境变量的辅助函数,兼容 Vite 和 Webpack -const getEnvVar = (key: string) => { - // Vite 使用 import.meta.env - if (import.meta.env) { - return import.meta.env[key]; - } -}; - -export const SERVICE_URLS = { - // ABC 服务基础地址 - lygk: getEnvVar('VITE_APP_LYGK_SERVER'), - - // XYZ 服务基础地址 - eng: getEnvVar('VITE_APP_eng_SERVER'), - - // 默认服务(如果有) - DEFAULT: '' -}; diff --git a/frontend/src/api/sw/index.ts b/frontend/src/api/sw/index.ts new file mode 100644 index 0000000..55da7ca --- /dev/null +++ b/frontend/src/api/sw/index.ts @@ -0,0 +1,8 @@ +import request from '@/utils/request'; +export function getKendoListCust(data: any) { + return request({ + url: '/sw/alongList/qgc/GetKendoListCust', + method: 'post', + data + }); +} diff --git a/frontend/src/components/BaseLayerSwitcher/index.vue b/frontend/src/components/BaseLayerSwitcher/index.vue index 80be1ed..599ba03 100644 --- a/frontend/src/components/BaseLayerSwitcher/index.vue +++ b/frontend/src/components/BaseLayerSwitcher/index.vue @@ -1,5 +1,9 @@ @@ -29,7 +33,7 @@ const props = defineProps({ type: Object, default: () => {}, }, -}) +}); const uiStore = useUiStore(); const drawerOpen = ref(uiStore.drawerOpen); @@ -45,13 +49,17 @@ const layers = [ { key: "BASEMAP-white", name: "地形", img: dixingImg }, { key: "BASEMAP-img", name: "影像", img: yingxiangImg }, ]; -const nineSectionsImg:any = {'s_province_boundaries':nineSectionsShiliangImg,'BASEMAP-white':nineSectionsDixingImg,'BASEMAP-img':nineSectionsYingxiangImg,} +const nineSectionsImg: any = { + s_province_boundaries: nineSectionsShiliangImg, + "BASEMAP-white": nineSectionsDixingImg, + "BASEMAP-img": nineSectionsYingxiangImg, +}; const activeKey = ref(layers[0].key); const handleSwitch = (key: string) => { activeKey.value = key; props.map.baseLayerSwitcher(key); -} +}; \ No newline at end of file + diff --git a/frontend/src/modules/yanchengshuiwenChangeMod/index.vue b/frontend/src/modules/yanchengshuiwenChangeMod/index.vue index dcd6cb1..4411b16 100644 --- a/frontend/src/modules/yanchengshuiwenChangeMod/index.vue +++ b/frontend/src/modules/yanchengshuiwenChangeMod/index.vue @@ -1,69 +1,59 @@ diff --git a/frontend/src/store/modules/ui.ts b/frontend/src/store/modules/ui.ts index 12adb5e..190b921 100644 --- a/frontend/src/store/modules/ui.ts +++ b/frontend/src/store/modules/ui.ts @@ -4,6 +4,7 @@ import { ref } from 'vue'; export const useUiStore = defineStore('ui', () => { // 右侧抽屉状态 const drawerOpen = ref(true); + const mapType = ref('2D'); // 切换抽屉状态 const toggleDrawer = () => { @@ -19,5 +20,6 @@ export const useUiStore = defineStore('ui', () => { drawerOpen, toggleDrawer, setDrawerOpen, + mapType }; -}); \ No newline at end of file +}); diff --git a/frontend/src/views/shiPinJianKong/shiPinJianKongZhuanTi.vue b/frontend/src/views/shiPinJianKong/shiPinJianKongZhuanTi.vue index bc361be..ed08ccb 100644 --- a/frontend/src/views/shiPinJianKong/shiPinJianKongZhuanTi.vue +++ b/frontend/src/views/shiPinJianKong/shiPinJianKongZhuanTi.vue @@ -1,5 +1,503 @@ \ No newline at end of file + + + + +