Переглянути джерело

修改气象站数据查询

xusl 10 місяців тому
батько
коміт
fcbbca673c

+ 37 - 33
ipp-ap/src/const/crud/weatherstationstatusdata.js

@@ -26,7 +26,11 @@ export const tableOption = {
     , {
       "type": "input",
       "label": "时间",
-      "prop": "time"
+      "prop": "time",
+      formatter: (row, column, cellValue, index) => {
+        const date = new Date(cellValue);
+        return date.toLocaleString(); // 转换为本地时间并显示
+      }
     }
     , {
       "type": "input",
@@ -43,11 +47,11 @@ export const tableOption = {
       "label": "散射辐射(W/㎡)",
       "prop": "diffuseR"
     }
-    , {
-      "type": "input",
-      "label": "斜面辐射(W/㎡)",
-      "prop": "obliqueR"
-    }
+    // , {
+    //   "type": "input",
+    //   "label": "斜面辐射(W/㎡)",
+    //   "prop": "obliqueR"
+    // }
     , {
       "type": "input",
       "label": "环境温度(℃)",
@@ -55,12 +59,12 @@ export const tableOption = {
     }
     , {
       "type": "input",
-      "label": "气压(KPa)",
+      "label": "气压(hPa)",
       "prop": "p"
     }
     , {
       "type": "input",
-      "label": "湿度(%)",
+      "label": "湿度(%RH)",
       "prop": "rh"
     }
     , {
@@ -78,30 +82,30 @@ export const tableOption = {
       "label": "风向(°)",
       "prop": "wd"
     }
-    , {
-      "type": "input",
-      "label": "日照小时数",
-      "prop": "hourDA"
-    }
-    , {
-      "type": "input",
-      "label": "总辐射日累计(MJ/㎡)",
-      "prop": "globalRDA"
-    }
-    , {
-      "type": "input",
-      "label": "直接辐射日累计(MJ/㎡)",
-      "prop": "directRDA"
-    }
-    , {
-      "type": "input",
-      "label": "散射辐射日累计(MJ/㎡)",
-      "prop": "diffuseRDA"
-    }
-    , {
-      "type": "input",
-      "label": "斜面辐射日累计(MJ/㎡)",
-      "prop": "obliqueRDA"
-    }
+    // , {
+    //   "type": "input",
+    //   "label": "日照小时数",
+    //   "prop": "hourDA"
+    // }
+    // , {
+    //   "type": "input",
+    //   "label": "总辐射日累计(MJ/㎡)",
+    //   "prop": "globalRDA"
+    // }
+    // , {
+    //   "type": "input",
+    //   "label": "直接辐射日累计(MJ/㎡)",
+    //   "prop": "directRDA"
+    // }
+    // , {
+    //   "type": "input",
+    //   "label": "散射辐射日累计(MJ/㎡)",
+    //   "prop": "diffuseRDA"
+    // }
+    // , {
+    //   "type": "input",
+    //   "label": "斜面辐射日累计(MJ/㎡)",
+    //   "prop": "obliqueRDA"
+    // }
   ]
 }

+ 28 - 28
ipp-ap/src/views/idp/data/weatherstationstatusdata/index.vue

@@ -165,9 +165,9 @@ export default {
         if (radiationData.diffuseRs != null) {
           diffuseR = radiationData.diffuseRs
         }
-        if (radiationData.obliqueRs != null) {
-          obliqueR = radiationData.obliqueRs
-        }
+        // if (radiationData.obliqueRs != null) {
+        //   obliqueR = radiationData.obliqueRs
+        // }
       }
 
       this.chart = echarts.init(document.getElementById('radiationCharts'))
@@ -198,7 +198,7 @@ export default {
           itemWidth: 14,
           itemHeight: 5,
           itemGap: 13,
-          data: ['总辐射', '直辐射', '散辐射', '斜辐射'],
+          data: ['总辐射', '直辐射', '散辐射'],
           right: '4%',
           textStyle: {
             fontSize: 12,
@@ -208,7 +208,7 @@ export default {
             '总辐射': true,
             '直辐射': true,
             '散辐射': true,
-            '斜辐射': false
+            // '斜辐射': false
           }
         },
         dataZoom: [{
@@ -333,29 +333,29 @@ export default {
             },
             data: diffuseR
           },
-          {
-            name: '斜辐射',
-            type: 'line',
-            smooth: true,
-            symbol: 'circle',
-            symbolSize: 5,
-            showSymbol: false,
-            connectNulls: true,
-            lineStyle: {
-              normal: {
-                width: 2
-              }
-            },
-            itemStyle: {
-              normal: {
-                color: 'rgb(122,27,189)',
-                borderColor: 'rgba(74,2,189,0.27)',
-                borderWidth: 12
-
-              }
-            },
-            data: obliqueR
-          },
+          // {
+          //   name: '斜辐射',
+          //   type: 'line',
+          //   smooth: true,
+          //   symbol: 'circle',
+          //   symbolSize: 5,
+          //   showSymbol: false,
+          //   connectNulls: true,
+          //   lineStyle: {
+          //     normal: {
+          //       width: 2
+          //     }
+          //   },
+          //   itemStyle: {
+          //     normal: {
+          //       color: 'rgb(122,27,189)',
+          //       borderColor: 'rgba(74,2,189,0.27)',
+          //       borderWidth: 12
+          //
+          //     }
+          //   },
+          //   data: obliqueR
+          // },
         ]
       })
     },

+ 0 - 2
ipp-ap/src/views/idp/data/windtowerstatusdata/index.vue

@@ -1194,8 +1194,6 @@ export default {
       param.append('equipmentId', this.equipmentId)
       queryTableData(param).then((res) => {
         this.tableData = res.data.data.records
-
-        console.log(this.tableData)
         this.page.pageSize = res.data.data.size
         this.page.total = res.data.data.total
       })