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