Procházet zdrojové kódy

2023-03-20 fix

1. 调整部分字段起初设计时 未考虑多系统配置问题
moccus před 1 rokem
rodič
revize
837d95d12d
3 změnil soubory, kde provedl 17 přidání a 5 odebrání
  1. 10 1
      .env.development
  2. 3 1
      .env.production
  3. 4 3
      src/components/modeControl/detailPages.vue

+ 10 - 1
.env.development

@@ -3,4 +3,13 @@ VUE_APP_WARNING=http://11.0.118.57:8075
 VUE_APP_SHARDINGURL=http://11.0.118.57:8075
 VUE_APP_ADAPTERURL=http://11.0.118.57:8011
 VUE_APP_APIS=11.0.118.57:8100
-VUE_APP_ADAPTERURLS=11.0.118.57:8011
+VUE_APP_ADAPTERURLS=11.0.118.57:8011
+VUE_APP_ENV=SX
+#SX 山西 / HB 河北
+
+#VUE_APP_API=http://192.168.10.18:8099
+#VUE_APP_WARNING=http://192.168.10.18:8075
+#VUE_APP_SHARDINGURL=http://192.168.10.18:8075
+#VUE_APP_ADAPTERURL=http://192.168.10.18:8011
+#VUE_APP_APIS=192.168.10.18:8099
+#VUE_APP_ADAPTERURLS=192.168.10.18:8011

+ 3 - 1
.env.production

@@ -3,4 +3,6 @@ VUE_APP_WARNING=http://11.0.118.57:8075
 VUE_APP_SHARDINGURL=http://11.0.118.57:8075
 VUE_APP_ADAPTERURL=http://11.0.118.57:8011
 VUE_APP_APIS=11.0.118.57:8100
-VUE_APP_ADAPTERURLS=11.0.118.57:8011
+VUE_APP_ADAPTERURLS=11.0.118.57:8011
+VUE_APP_ENV=SX
+#SX 山西 / HB 河北

+ 4 - 3
src/components/modeControl/detailPages.vue

@@ -13,7 +13,7 @@
           src="../../assets/img/controlcenter/daraTrue.png"
           alt=""
         />
-        <div class="titles">国电电力山西新能源开发有限公司</div>
+        <div class="titles">国电电力{{env === 'SX'? '山西': '河北'}}新能源开发有限公司</div>
       </div>
     </template>
     <div class="body">
@@ -105,6 +105,7 @@ export default {
       index: 0,
       powerLineChartData: {},
       intervals: null,
+      env: process.env.VUE_APP_ENV,
     };
   },
   methods: {
@@ -128,11 +129,11 @@ export default {
     },
     async getDate() {
       await this.getPower({
-        PowerSet: "HB_GD_QYG_JS_XX_XX_XXX_CI0125",
+        PowerSet: this.env === 'HB'? "HB_GD_QYG_JS_XX_XX_XXX_CI0125" : "HB_GD_QYG_JS_XX_XX_XXX_CI0125",
         name: "ActualPower",
       });
       await this.getPower({
-        ActualPower: "HB_GD_QYG_JS_XX_XX_XXX_CI0180",
+        ActualPower: this.env === 'HB' ? "HB_GD_QYG_JS_XX_XX_XXX_CI0180" : "HB_GD_QYG_JS_XX_XX_XXX_CI0180",
         name: "theoryPower",
       });
       this.timer = setTimeout(() => {