Kaynağa Gözat

功能修改

sunzehao 1 gün önce
ebeveyn
işleme
0933a3f9b3

+ 0 - 4
src/views/economicsOperation/windTurbineMonitor/componentsDetail.vue

@@ -33,10 +33,6 @@ import { ElMessage } from "element-plus";
 import { getComponentsData } from "@/api/monthlyPerformanceAnalysis";
 export default {
   props: {
-    componentsData: {
-      type: Array,
-      default: () => [],
-    },
     windModel: {
       type: String,
       default: () => ""

+ 6 - 2
src/views/economicsOperation/windTurbineMonitor/historyDetail.vue

@@ -87,6 +87,10 @@ import dayjs from "dayjs";
 import dataJson from "./dataJson.json";
 export default {
   props: {
+    dateTime: {
+      type: String,
+      default: () => "",
+    },
     hiswindVal: {
       type: String,
       default: () => ""
@@ -115,8 +119,8 @@ export default {
   },
   mounted() {
     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")
+      dayjs(this.dateTime).add(-1, "day").format("YYYY-MM-DD HH:mm:ss"),
+      dayjs(this.dateTime).format("YYYY-MM-DD HH:mm:ss")
     ]
     this.componentsOpt = this.hisuniVal
     // this.changeData(dataJson.data.historyTurbineMonitor)

+ 11 - 9
src/views/economicsOperation/windTurbineMonitor/index.vue

@@ -2,17 +2,17 @@
   <div class="windTurbineMonitor">
     <div class="title">
       <div class="station">
-        风机:
-        <el-select v-model="windSObj" clearable @clear="checkAllWind = false" collapse-tags multiple>
-            <el-option label="全选" :class="{ selected: checkAllWind }" @click="funCheckwindsAll"></el-option>
-            <el-option v-for="item in windSList" :key="item.aname" :label="item.aname" :value="item.aname">
+        机型:
+        <el-select v-model="windModel">
+            <el-option v-for="item in windModelSList" :key="item.value" :label="item.label" :value="item.value">
             </el-option>
         </el-select>
       </div>
       <div class="station">
-        机型:
-        <el-select v-model="windModel">
-            <el-option v-for="item in windModelSList" :key="item.value" :label="item.label" :value="item.value">
+        风机:
+        <el-select v-model="windSObj" clearable @clear="checkAllWind = false" collapse-tags multiple>
+            <el-option label="全选" :class="{ selected: checkAllWind }" @click="funCheckwindsAll"></el-option>
+            <el-option v-for="item in windSList" :key="item.aname" :label="item.aname" :value="item.aname">
             </el-option>
         </el-select>
       </div>
@@ -68,7 +68,7 @@
               > -->
                 <div style="padding: 5px 0">
                     <div style="font-size: 14px">{{item.label}}</div>
-                    <div style="font-size: 12px;color:#90a3b2">{{item.title}}</div>
+                    <div style="font-size: 16px">{{item.title}}</div>
                 </div>
               <!-- </el-tooltip> -->
             </template>
@@ -115,6 +115,7 @@
       <div style="height: 100%">
         <history-detail
           ref="windhistoryDetail"
+          :dateTime="dateTime"
           :hiswindVal="hiswindVal"
           :hisuniVal="hisuniVal"
           :componentsData="componentsData"
@@ -174,7 +175,7 @@ export default {
         label: "联合动力",
         value: "UP2000-130"
       }
-    ]
+    ] 
     // this.tableColumn = [ 
     //   {
     //     label: "日平均风速",
@@ -450,6 +451,7 @@ export default {
   .el-overlay-dialog {
     overflow-y: hidden !important;
     .componentsDia{
+  background: #142446 !important;
       margin-top: 10vh !important;
       .el-dialog__header{
         .dialog-title{