瀏覽代碼

问题修改

sunzehao 10 小時之前
父節點
當前提交
8389a23f2f

文件差異過大導致無法顯示
+ 0 - 2
src/App.vue


+ 27 - 3
src/views/economicsOperation/windTurbineMonitor/historyDetail.vue

@@ -19,6 +19,13 @@
         <el-input-number v-model="picknum" :min="1" />
         <span class="timeaa">秒</span>
       </div>
+      <div class="station">
+        测点:
+        <el-select v-model="componentsOpt" filterable>
+          <el-option v-for="item in componentsData" :key="item.uniformCode" :label="item.description" :value="item.uniformCode">
+          </el-option>
+        </el-select>
+      </div>
       <div class="but">
         <el-button round size="mini" class="buttons" @click="funGetHistoryTableData"
           >搜 索</el-button
@@ -87,13 +94,18 @@ export default {
     hisuniVal: {
       type: String,
       default: () => ""
-    }
+    },
+    componentsData: {
+      type: Array,
+      default: () => [],
+    },
   },
   data() {
     return {
       picknum: 300,
       pickerTimer: [],
       historyTurbineMonitor: [],
+      componentsOpt: "",
       page: {
         pagesize: 20,
         currentPage: 1,
@@ -102,11 +114,11 @@ export default {
     };
   },
   mounted() {
-    // this.historyTurbineMonitor = dataJson.data.historyTurbineMonitor
     this.pickerTimer = [
       dayjs(new Date()).add(-1, "day").format("YYYY-MM-DD HH:mm:ss"),
       dayjs(new Date()).format("YYYY-MM-DD HH:mm:ss")
     ]
+    this.componentsOpt = this.hisuniVal
     // this.changeData(dataJson.data.historyTurbineMonitor)
     this.funGetHistoryTableData()
   },
@@ -117,7 +129,7 @@ export default {
         startTs: new Date(that.pickerTimer[0]).getTime() / 1000,
         endTs: new Date(that.pickerTimer[1]).getTime() / 1000,
         windturbineId: that.hiswindVal,
-        uniformCode: that.hisuniVal,
+        uniformCode: that.componentsOpt,
         interval: that.picknum
       }
       getComponentsHistoryData(params).then((res) => {
@@ -252,6 +264,7 @@ export default {
         position: relative;
       }
     }
+    
   }
   .economicTable1 {
     height: 55vh;
@@ -272,3 +285,14 @@ export default {
   }
 }
 </style>
+<style lang="less">
+.el-select {
+  .select-trigger{
+    .el-input{
+      .el-input__inner{
+        height: 33px !important;
+      }
+    }
+  }
+}
+</style>

+ 18 - 17
src/views/economicsOperation/windTurbineMonitor/index.vue

@@ -106,7 +106,7 @@
     >
       <template #title>
         <div class="dialog-title">
-          <div class="title">{{hiswindVal}}风机{{hisuniVal}}测点{{dialogTitle}}</div>
+          <div class="title">{{dialogTitle}}</div>
         </div>
       </template>
       <div style="height: 100%">
@@ -114,6 +114,7 @@
           ref="windhistoryDetail"
           :hiswindVal="hiswindVal"
           :hisuniVal="hisuniVal"
+          :componentsData="componentsData"
         >
         </history-detail>
       </div>
@@ -171,22 +172,22 @@ export default {
         value: "UP2000-130"
       }
     ]
-    this.tableColumn = [
-      {
-        label: "日平均风速",
-        title: "m/s",
-        code: "RPJFS",
-        message: "区域集控.惠安风场.一期.风机1107.日平均风速"
-      },
-      {
-        label: "IGBT温度1",
-        title: "℃",
-        code: "AI002",
-        message: "区域集控.惠安风场.一期.风机1106.IGBT温度1"
-      }
-    ]
-    this.componentsData = dataJson.data.components
-    this.dataChange(dataJson.data.tableData)
+    // this.tableColumn = [
+    //   {
+    //     label: "日平均风速",
+    //     title: "m/s",
+    //     code: "RPJFS",
+    //     message: "区域集控.惠安风场.一期.风机1107.日平均风速"
+    //   },
+    //   {
+    //     label: "IGBT温度1",
+    //     title: "℃",
+    //     code: "AI002",
+    //     message: "区域集控.惠安风场.一期.风机1106.IGBT温度1"
+    //   }
+    // ]
+    // this.componentsData = dataJson.data.components
+    // this.dataChange(dataJson.data.tableData)
     this.dateTime = dayjs().format("YYYY-MM-DD HH:mm:ss"),
     this.getWindData();
   },

部分文件因文件數量過多而無法顯示