Browse Source

常规消缺

wangb 3 months ago
parent
commit
0cdba91a67
3 changed files with 8 additions and 4 deletions
  1. 2 2
      .env.development
  2. 4 1
      .env.production
  3. 2 1
      src/views/powerPrediction/stationPowerContro.vue

+ 2 - 2
.env.development

@@ -11,8 +11,8 @@ VUE_APP_TITLE = '页面标题'
 # 马力军
 # VUE_APP_LOGIN_URL = 'http://192.168.2.45:48080'
 # 王波
-# VUE_APP_LOGIN_URL = 'http://172.16.12.101:48080'
-VUE_APP_LOGIN_URL = 'http://172.16.12.102:8190'
+VUE_APP_LOGIN_URL = 'http://172.16.12.101:48080'
+# VUE_APP_LOGIN_URL = 'http://172.16.12.102:8190'
 
 # 发电能力分析
 # VUE_APP_GENERAT_URL = 'http://192.168.0.102:9002'

+ 4 - 1
.env.production

@@ -15,10 +15,13 @@ VUE_APP_TITLE = '页面标题'
 # VUE_APP_LOGIN_URL = 'http://123.60.219.66:48080'
 # VUE_APP_LOGIN_URL = 'http://192.168.0.105:48080'
 # VUE_APP_LOGIN_URL = 'http://10.127.7.241:48080'
-VUE_APP_LOGIN_URL = 'http://172.16.12.101:48080'
+# VUE_APP_LOGIN_URL = 'http://172.16.12.101:48080'
 # VUE_APP_LOGIN_URL = 'http://192.168.2.231:48080'
 # VUE_APP_LOGIN_URL = 'http://127.0.0.1:48080'
 
+VUE_APP_LOGIN_URL = 'http://172.16.12.102:48080'
+# VUE_APP_LOGIN_URL = 'http://10.127.7.241:48080'
+
 # 生产环境/重写路径(公共路径)
 
 # 发电能力分析

+ 2 - 1
src/views/powerPrediction/stationPowerContro.vue

@@ -181,6 +181,7 @@ export default {
       };
       apiGetallStationPower(params)
         .then((res) => {
+          console.log(1122, res);
           that.loading = false;
           if (res && res.data) {
             // that.tableData = res.data.power
@@ -191,7 +192,7 @@ export default {
                 time: iv.time,
               };
               iv.power.forEach((ic, idx) => {
-                obj[obj.nameEn + (idx + 1)] = ic.toFixed(2);
+                obj[obj.nameEn + (idx + 1)] = ic > 0 ? ic.toFixed(2) : "/";
               });
               that.tableData.push(obj);
             });