diff --git a/src/views/oneMap/components/ZHHM_JSPG.vue b/src/views/oneMap/components/ZHHM_JSPG.vue index 308d2bd..78ed958 100644 --- a/src/views/oneMap/components/ZHHM_JSPG.vue +++ b/src/views/oneMap/components/ZHHM_JSPG.vue @@ -3,24 +3,23 @@
- -
降雨日历统计
- - -
内涝积水分析
+ +
产出绩效
- -
典型项目分析
+ +
管理绩效
- -
关键管网分析
+ +
满意度
-
+
+
资金绩效
+
diff --git a/src/views/oneMap/components/ZHHM_JSPG.vue b/src/views/oneMap/components/ZHHM_JSPG.vue index 308d2bd..78ed958 100644 --- a/src/views/oneMap/components/ZHHM_JSPG.vue +++ b/src/views/oneMap/components/ZHHM_JSPG.vue @@ -3,24 +3,23 @@
- -
降雨日历统计
- - -
内涝积水分析
+ +
产出绩效
- -
典型项目分析
+ +
管理绩效
- -
关键管网分析
+ +
满意度
-
+
+
资金绩效
+
diff --git a/vite.config.js b/vite.config.js index be726ab..a3e2acb 100644 --- a/vite.config.js +++ b/vite.config.js @@ -6,6 +6,10 @@ const Timestamp = new Date().getTime(); //随机时间戳 +// const targetUrl = 'http://192.168.20.145:13000'; //张鸿志 +// const targetUrl = 'http://192.168.16.105:13000'; //张亚辉 +const targetUrl = 'https://server2.wh-nf.cn:8088/prod-api'; //线上 + // https://vitejs.dev/config/ export default defineConfig(({ mode, command }) => { const env = loadEnv(mode, process.cwd()); @@ -39,30 +43,22 @@ open: true, proxy: { '/business': { - // target: 'http://192.168.20.145:13000', //张鸿志 网关 - // target: 'https://server1.wh-nf.cn:8132/prod-api', //测试服务 - target: 'https://server2.wh-nf.cn:8088/prod-api', //测试服务 + target: targetUrl, //测试服务 changeOrigin: true, rewrite: p => p.replace(/^\/business/, '/business'), }, '/system': { - // target: 'http://192.168.20.145:13000', //张鸿志 网关 - //target: 'https://server1.wh-nf.cn:8132/prod-api', //测试环境 - target: 'https://server2.wh-nf.cn:8088/prod-api', //测试服务 + target: targetUrl, //测试服务 changeOrigin: true, rewrite: p => p.replace(/^\/system/, '/system'), }, '/auth': { - // target: 'http://192.168.20.145:13000', //张鸿志 网关 - //target: 'https://server1.wh-nf.cn:8132/prod-api', //测试环境 - target: 'https://server2.wh-nf.cn:8088/prod-api', //测试服务 + target: targetUrl, //测试服务 changeOrigin: true, rewrite: p => p.replace(/^\/auth/, '/auth'), }, '/code': { - // target: 'http://192.168.20.145:13000', //张鸿志 网关 - //target: 'https://server1.wh-nf.cn:8132/prod-api', //测试环境 - target: 'https://server2.wh-nf.cn:8088/prod-api', //测试服务 + target: targetUrl, //测试服务 changeOrigin: true, rewrite: p => p.replace(/^\/code/, '/code'), }, @@ -71,13 +67,11 @@ changeOrigin: true, rewrite: p => p.replace(/^\/amap/, ''), }, - "/prod-api": { - // target: 'http://192.168.20.145:13000', //张鸿志 网关 - // target: 'https://server1.wh-nf.cn:8132/prod-api', //测试服务 - target: 'https://server2.wh-nf.cn:8088/prod-api', //测试服务 + '/prod-api': { + target: targetUrl, //测试服务 changeOrigin: true, - logLevel: "debug", - rewrite: (p) => p.replace(/^\/prod-api/, ""), + logLevel: 'debug', + rewrite: p => p.replace(/^\/prod-api/, ''), }, }, },