Prechádzať zdrojové kódy

各环境区分配置

liujiejie 1 týždeň pred
rodič
commit
0327f81fed

+ 15 - 0
.env.demo

@@ -0,0 +1,15 @@
+###
+ # @Author: your name
+ # @Date: 2025-07-17 15:36:25
+ # @LastEditTime: 2025-07-17 15:36:34
+ # @LastEditors: bogon
+ # @Description: In User Settings Edit
+ # @FilePath: /performance-test/.env.demo
+### 
+VUE_APP_MAPVIEW=http://192.168.50.235/tiles/{z}/{x}/{y}.png
+#这里需要在router/index.js 文件中进行判断cockpitComponent;
+#VUE_APP_HOME_COM="../views/admin/cockpitManage/Index.vue"
+VUE_APP_THEM="green"
+VUE_APP_ISSHOWHD='default'
+VUE_APP_UPLOAD="http://192.168.50.235/energy-manage-service/api/check/upload"
+VUE_APP_TITLE='机组功率曲线异常检测数据分析系统'

+ 3 - 1
.env.dev

@@ -1,11 +1,13 @@
 ###
  # @Author: your name
  # @Date: 2025-07-17 14:14:27
- # @LastEditTime: 2025-07-17 14:54:36
+ # @LastEditTime: 2025-07-17 15:56:15
  # @LastEditors: bogon
  # @Description: In User Settings Edit
  # @FilePath: /performance-test/.env.dev
 ### 
+# 地图外网
+# VUE_APP_MAPVIEW=http://106.120.102.238:18000/tiles/{z}/{x}/{y}.png
 VUE_APP_MAPVIEW=http://192.168.50.235/tiles/{z}/{x}/{y}.png
 #这里需要在router/index.js 文件中进行判断cockpitComponent;
 #VUE_APP_HOME_COM="../views/admin/cockpitManage/Index.vue"

+ 6 - 4
.env.hd

@@ -1,13 +1,15 @@
 ###
  # @Author: your name
  # @Date: 2025-07-17 14:13:20
- # @LastEditTime: 2025-07-17 14:54:48
+ # @LastEditTime: 2025-07-17 15:55:05
  # @LastEditors: bogon
  # @Description: In User Settings Edit
  # @FilePath: /performance-test/.env.hd
 ### 
-VUE_APP_MAPVIEW=http://192.168.0.1/tiles/{z}/{x}/{y}.png
+# VUE_APP_MAPVIEW=http://192.168.0.1/tiles/{z}/{x}/{y}.png
+VUE_APP_MAPVIEW=http://192.168.50.235/tiles/{z}/{x}/{y}.png
 VUE_APP_THEM="blue"
 VUE_APP_ISSHOWHD='HD'
-VUE_APP_UPLOAD="http://192.168.0.1/energy-manage-service/api/check/upload"
-VUE_APP_TITLE='风电机组健康诊断平台'
+# VUE_APP_UPLOAD="http://192.168.0.1/energy-manage-service/api/check/upload"
+VUE_APP_UPLOAD="http://192.168.50.235/energy-manage-service/api/check/upload"
+VUE_APP_TITLE='风电机组健康诊断平台'

+ 4 - 1
package.json

@@ -5,8 +5,11 @@
   "scripts": {
     "serve:dev": "vue-cli-service serve --mode dev",
     "serve:hd": "vue-cli-service serve --mode hd",
+    "serve:demo": "vue-cli-service serve --mode demo",
+    "serve:hd": "vue-cli-service serve --mode hd",
     "build:dev": "vue-cli-service build --mode dev",
-    "build:hd": "vue-cli-service build --mode hd"
+    "build:hd": "vue-cli-service build --mode hd",
+    "build:demo": "vue-cli-service build --mode demo"
   },
   "dependencies": {
     "@jiaminghi/data-view": "^2.10.0",

+ 0 - 3
src/components/map/index.vue

@@ -257,9 +257,6 @@ export default {
       layers: [
         new TileLayer({
           source: new XYZ({
-            // url: "http://106.120.102.238:18000/tiles/{z}/{x}/{y}.png", //外网
-            // url: "http://127.0.0.1:8010/tiles/{z}/{x}/{y}.png", //本地
-            // url: "http://192.168.50.235/tiles/{z}/{x}/{y}.png", //内网
             // url: "http://10.96.137.5:9080/tiles/{z}/{x}/{y}.png", //大~#@唐
             // url: "http://192.168.0.1/tiles/{z}/{x}/{y}.png", //华电
             // url: "http://192.168.50.235/tiles/{z}/{x}/{y}.png", //中广核

+ 6 - 6
src/views/home/components/MenuHD.vue

@@ -411,12 +411,12 @@ export default {
 }
 
 // 非华电公司放开这个注释下面的
-// .default .el-submenu__title * {
-//   font-size: 16px;
-// }
-// .default .el-menu-item * {
-//   font-size: 16px;
-// }
+.default .el-submenu__title * {
+  font-size: 16px;
+}
+.default .el-menu-item * {
+  font-size: 16px;
+}
 </style>
 
 <!-- /* 华电时的菜单打开这个 */ -->

+ 0 - 2
src/views/login/Index.vue

@@ -2,9 +2,7 @@
   <div class="background-image" v-loading="loadingView">
     <div class="border">
       <div class="leftLogin">
-        <!-- <h1>机组功率曲线异常检测数据分析系统</h1> -->
         <!-- 华电 -->
-        <!-- <h1>风电机组健康诊断平台</h1> -->
         <h1>{{ title }}</h1>
         <el-divider></el-divider>
         <div class="loginText">

+ 1 - 1
vue.config.js

@@ -66,7 +66,7 @@ module.exports = {
         // target: "http://192.168.5.4:16200", // 石月
         target: "http://192.168.50.235:16200", // 内网
         // target: "http://192.168.5.15:16200",//陈
-        // target: "http://192.168.50.235:16500", //演示环境
+        // target: "http://192.168.50.235:8998", //演示环境
         // target: "http://106.120.102.238:26500", //外网演示环境
         // target: "http://106.120.102.238:16700", // 外网16700  生产16600
         // target: "http://10.96.137.5",