ソースを参照

feat: 修改预测数值截取

sunxiao 1 ヶ月 前
コミット
35abc9b8d9
2 ファイル変更9 行追加4 行削除
  1. 2 1
      .env.development
  2. 7 3
      src/views/business/comparison/index.vue

+ 2 - 1
.env.development

@@ -5,7 +5,8 @@ VITE_APP_TITLE = LibraAI智能体运营平台
 VITE_APP_ENV = 'development'
 
 # 管理系统/开发环境
-VITE_APP_BASE_API =  http://10.0.0.28:8080/
+# VITE_APP_BASE_API =  http://10.0.0.28:8080/
+VITE_APP_BASE_API = 'http://192.168.9.54:8080/'
 
 VITE_APP_BASE_TEST = http://10.0.0.28:8080/
 VITE_APP_BASE_PROD = http://192.168.9.54:8080/

+ 7 - 3
src/views/business/comparison/index.vue

@@ -248,9 +248,9 @@ export default {
       }
       
       const data = await getEchartData({ category: this.activeItem.value, timeBegin, timeEnd });
-  
-      const reusltData = data.hs.data.splice(data.real.data.length - 1, data.hs.data.length - data.real.data.length);
-      const reusltTime = data.hs.time.splice(data.real.time.length - 1, data.hs.time.length - data.real.time.length);
+ 
+      const reusltData = data.hs.data.splice(data.real.data.length, data.hs.data.length - data.real.data.length);
+      const reusltTime = data.hs.time.splice(data.real.time.length, data.hs.time.length - data.real.time.length);
 
       let xAxisData = [];
       // const realOneList = [];
@@ -365,6 +365,10 @@ export default {
           nh3: 'NH₃',
           cod: 'COD',
           ss: 'SS',
+          qyxsy1: '#1缺氧硝酸盐',
+          qyxsy2: '#2缺氧硝酸盐',
+          qynh31: '#1缺氧氨氮',
+          qynh32: '#2缺氧氨氮'
         }
         this.comparisonList = response.rows.map(item => ({ ...item, category: whiteList[item.category] }));
         this.total = response.total;