浏览代码

冲突修改

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 1 月之前
父节点
当前提交
1bf3b792f6

+ 54 - 31
src/App.vue

@@ -4,10 +4,15 @@
     <!-- <div class="warningMask"></div> -->
     <TitleBar class="titleBar" />
     <div class="left" v-if="!webMisc">
-      <Menu :lockMaskDisplay="lockMaskDisplay" :voiceCV="voiceCV" :temperatureNum="temperatureNum" @handleChange="handleChange"
-        @handleSearch="handleSearch" />
+      <Menu
+        :lockMaskDisplay="lockMaskDisplay"
+        :voiceCV="voiceCV"
+        :temperatureNum="temperatureNum"
+        @handleChange="handleChange"
+        @handleSearch="handleSearch"
+      />
     </div>
-    <div class="right">
+    <!-- <div class="right">
       <el-col>
         <el-row>
           <el-col>
@@ -25,14 +30,17 @@
           </el-col>
         </el-row>
       </el-col>
-    </div>
+    </div> -->
     <div class="Dialog" v-show="state">
       <div class="D-" @click="none">-</div>
     </div>
     <StatusBar class="statusBar" @getData="getData" />
     <router-view />
     <AllMatrices v-model="matricesDisplay" />
-    <SYZDetails v-model="syzDialogShow" :activeTabStation="activeTabStation"></SYZDetails>
+    <SYZDetails
+      v-model="syzDialogShow"
+      :activeTabStation="activeTabStation"
+    ></SYZDetails>
     <AGCDetails v-model="agcDisplay"></AGCDetails>
     <WebMisc v-model="webMisc"></WebMisc>
     <TemperatureMatrix v-model="temperatureDisplay" />
@@ -44,7 +52,6 @@
     <Record v-model="recordDisplay" />
     <State v-model="stateDisplay" />
     <Setting v-model="settingDisplay" />
-    
   </div>
 </template>
 <script>
@@ -85,14 +92,14 @@ export default {
       actionDisplay: false, //查询-动作查询
       lockMaskDisplay: false, //锁屏
       voiceCV: false,
-      webMisc: false,//样本库
+      webMisc: false, //样本库
       syzDialogShow: false,
       settingDisplay: false,
       recordDisplay: false, //查询-推荐记录
       stateDisplay: false, //查询-状态变化查询
       calendarDisplay: false, //查询-日历查询
       temperatureNum: 0, //温度矩阵故障数
-      activeTabStation: '',
+      activeTabStation: "",
     };
   },
   components: {
@@ -132,7 +139,10 @@ export default {
     initData: function () {
       let mb = MessageBridge.getInstance();
       let temperature = [
-        { key: "/topic/temperature-count", action: this.debounceTemperatureMessage },
+        {
+          key: "/topic/temperature-count",
+          action: this.debounceTemperatureMessage,
+        },
       ];
       let vss = [
         { key: "/topic/voice-control", action: this.windturbineMessage },
@@ -141,7 +151,7 @@ export default {
       mb.register(temperature);
     },
     debounceTemperatureMessage: debounce(function (msg) {
-      this.temperatureMessage(msg)
+      this.temperatureMessage(msg);
     }, 1000),
     temperatureMessage(msg) {
       let json = JSON.parse(msg);
@@ -150,22 +160,22 @@ export default {
     windturbineMessage(msg) {
       let arr = msg.split("-");
       if (msg === "CLOSE") {
-        this.handleClosed()
+        this.handleClosed();
       }
       if (msg === "OPEN_FJJZ-ALL") {
-        this.handleChange(2)
+        this.handleChange(2);
       }
       if (msg === "OPEN_WDJZ-ALL") {
-        this.handleChange(3)
+        this.handleChange(3);
       }
       if (msg === "OPEN_AGC-ALL") {
-        this.handleChange(5)
+        this.handleChange(5);
       }
       if (arr[0] === "OPEN_SYZ") {
-        this.activeTabStation = arr[1]
-        this.handleClosed()
+        this.activeTabStation = arr[1];
+        this.handleClosed();
         setTimeout(() => {
-          this.handleChange(4,true)
+          this.handleChange(4, true);
         }, 3000);
       }
     },
@@ -193,7 +203,7 @@ export default {
         this.$store.commit("activeTab", syzArray[0].name);
       });
     },
-    handleChange(val,flag) {
+    handleChange(val, flag) {
       if (val !== 10) {
         this.matricesDisplay = false;
         this.syzDialogShow = false;
@@ -204,27 +214,38 @@ export default {
         this.warningDisplay = false;
         this.statusDisplay = false;
         this.actionDisplay = false;
-        this.settingDisplay = false
+        this.settingDisplay = false;
         this.calendarDisplay = false;
         this.recordDisplay = false;
         this.stateDisplay = false;
       }
 
       switch (val) {
+        case 1:
+          this.$router.push({
+            path: "/",
+          });
+          break;
         case 2:
-          this.matricesDisplay = true;
+          //   this.matricesDisplay = true;
+          this.$router.push({
+            path: "/AllMatrices",
+          });
           break;
         case 3:
-          this.temperatureDisplay = true;
+          //   this.temperatureDisplay = true;
+          this.$router.push({
+            path: "/TemperatureMatrix",
+          });
           break;
         case 4:
           if (flag) {
             this.syzDialogShow = true;
           } else {
-            this.activeTabStation = ''
+            this.activeTabStation = "";
             this.syzDialogShow = true;
           }
-          
+
           break;
         case 5:
           this.agcDisplay = true;
@@ -258,7 +279,7 @@ export default {
       this.warningDisplay = false;
       this.statusDisplay = false;
       this.actionDisplay = false;
-      this.settingDisplay = false
+      this.settingDisplay = false;
       this.calendarDisplay = false;
       this.recordDisplay = false;
       this.stateDisplay = false;
@@ -461,11 +482,13 @@ body {
   width: 100%;
   height: 100%;
   position: absolute;
-  background-image: radial-gradient(circle,
-      rgb(255, 0, 0, 0),
-      rgb(255, 0, 0, 0),
-      rgb(255, 0, 0, 0),
-      rgb(255, 0, 0));
+  background-image: radial-gradient(
+    circle,
+    rgb(255, 0, 0, 0),
+    rgb(255, 0, 0, 0),
+    rgb(255, 0, 0, 0),
+    rgb(255, 0, 0)
+  );
   animation: fade 2000ms infinite;
   -webkit-animation: fade 2000ms infinite;
   z-index: 999;
@@ -525,11 +548,11 @@ body {
   border-radius: 6px !important;
 }
 
-.el-table--enable-row-hover .el-table__body tr:hover>td {
+.el-table--enable-row-hover .el-table__body tr:hover > td {
   color: rgba(37, 116, 219, 0.8) !important;
 }
 
-.el-table__body tr.current-row>td {
+.el-table__body tr.current-row > td {
   color: rgba(37, 116, 219, 0.8) !important;
 }
 </style>

+ 23 - 35
src/components/BasicInformationDetail.vue

@@ -216,8 +216,7 @@
               </el-table-column>
               <el-table-column prop="alertText" label="故障信息" width="280">
               </el-table-column>
-              <el-table-column prop="rank" label="故障级别">
-              </el-table-column>
+              <el-table-column prop="rank" label="故障级别"> </el-table-column>
             </el-table>
           </el-scrollbar>
         </div>
@@ -241,6 +240,8 @@ import BasicDataDetails from "./basicDataDetails.vue";
 import StandAloneImg from "./StandAloneImg.vue";
 import dayjs from "dayjs";
 import api from "api/index";
+
+import dataJson from "./windturbinJsondata.json";
 export default {
   name: "BasicInformationDetail",
   components: {
@@ -255,14 +256,6 @@ export default {
     },
     windturbine: Object,
   },
-  mounted() {
-    this.getLocks();
-    // this.getHealthDate()
-    this.getWarning();
-    this.getDetial();
-    this.records();
-  },
-
   data() {
     return {
       display: false,
@@ -344,22 +337,17 @@ export default {
       refreshTimer: "",
     };
   },
+  mounted() {
+    // this.getLocks();
+    // this.getWarning();
+    // this.getDetial();
+    // this.records();
+    this.dataValues = dataJson.dataValues;
+    this.recordData = dataJson.recordData;
+    this.showData = dataJson.showData;
+    this.warning = dataJson.warning;
+  },
   methods: {
-    getHealthDate() {
-      api
-        .getHealthDate(
-          this.windturbine.stationId,
-          this.windturbine.windturbineId
-        )
-        .then((msg) => {
-          if (msg.data.code === 200) {
-            this.healthInfo = msg.data.data;
-          }
-        })
-        .catch((err) => {
-          console.log(err);
-        });
-    },
     getDetial() {
       api.getDetial(this.windturbine.windturbineId).then((msg) => {
         this.dataValues = msg.data;
@@ -416,23 +404,24 @@ export default {
         });
     },
     async getWarning() {
-      await api.getAlarmSnap({
+      await api
+        .getAlarmSnap({
           stationid: this.windturbine.stationId,
-          category1: 'windturbine',
+          category1: "windturbine",
           windturbineid: this.windturbine.windturbineId,
           isopened: 1,
         })
         .then((msg) => {
           if (msg.data) {
             this.warning = msg.data;
-            // this.warningDeal() 
+            // this.warningDeal()
           }
         })
         .catch((err) => {
           console.log(err);
         });
     },
-    warningDeal(){
+    warningDeal() {
       let parts = "";
       switch (this.showIndex) {
         case 1:
@@ -451,12 +440,11 @@ export default {
           parts = "yy";
           break;
       }
-      this.warning.forEach(item =>{
-        if(item.category3 === parts){
-          this.showWarningList.push(item)
+      this.warning.forEach((item) => {
+        if (item.category3 === parts) {
+          this.showWarningList.push(item);
         }
-      })
-
+      });
     },
     listedChange() {
       switch (this.selectValue) {
@@ -491,7 +479,7 @@ export default {
       this.getLocks();
       this.intervals = setInterval(this.getDetial, 1000);
       this.records();
-      this.getWarning()
+      this.getWarning();
       this.refreshTimer = setInterval(this.refreshData, 3000);
     },
     end() {

+ 3 - 0
src/components/WindturbineDetailPages.vue

@@ -140,6 +140,8 @@ import api from "api/index";
 import BasicInformationDetail from "./BasicInformationDetail.vue";
 import BackgroundData from "utils/BackgroundData";
 import Fault from "utils/fault";
+
+import dataJson from "./windturbinJsondata.json";
 export default {
   components: {
     BasicInformationDetail,
@@ -223,6 +225,7 @@ export default {
   },
   created() {
     this.getUniformCodes();
+    this.baseDate = dataJson.baseDate;
     // this.getWindturbineFdc();
   },
 

文件差异内容过多而无法显示
+ 397 - 367
src/components/allMatrices.vue


文件差异内容过多而无法显示
+ 1216 - 0
src/components/allMatricesNoDia.vue


+ 570 - 0
src/components/allMatricesNoDiaJson.json

@@ -0,0 +1,570 @@
+{
+    "stationArr": [
+        [
+            {
+                "stationId": 0,
+                "station": "风场HZJ",
+                "code": "A01",
+                "i": 123,
+                "u": 321,
+                "p": 213,
+                "status": 2
+            },
+            {
+                "stationId": 0,
+                "station": "风场HZJ",
+                "code": "A01",
+                "i": 123,
+                "u": 321,
+                "p": 213,
+                "status": 2
+            },
+            {
+                "stationId": 0,
+                "station": "风场HZJ",
+                "code": "A01",
+                "i": 123,
+                "u": 321,
+                "p": 213,
+                "status": 2
+            },
+            {
+                "stationId": 0,
+                "station": "风场HZJ",
+                "code": "A01",
+                "i": 123,
+                "u": 321,
+                "p": 213,
+                "status": 2
+            },
+            {
+                "stationId": 0,
+                "station": "风场HZJ",
+                "code": "A01",
+                "i": 123,
+                "u": 321,
+                "p": 213,
+                "status": 2
+            },
+            {
+                "stationId": 0,
+                "station": "风场HZJ",
+                "code": "A01",
+                "i": 123,
+                "u": 321,
+                "p": 213,
+                "status": 2
+            },
+            {
+                "stationId": 0,
+                "station": "风场HZJ",
+                "code": "A01",
+                "i": 123,
+                "u": 321,
+                "p": 213,
+                "status": 2
+            },
+            {
+                "stationId": 0,
+                "station": "风场HZJ",
+                "code": "A01",
+                "i": 123,
+                "u": 321,
+                "p": 213,
+                "status": 3
+            },
+            {
+                "stationId": 0,
+                "station": "风场HZJ",
+                "code": "A01",
+                "i": 123,
+                "u": 321,
+                "p": 213,
+                "status": 2
+            },
+            {
+                "stationId": 0,
+                "station": "风场HZJ",
+                "code": "A01",
+                "i": 123,
+                "u": 321,
+                "p": 213,
+                "status": 3
+            },
+            {
+                "stationId": 0,
+                "station": "风场HZJ",
+                "code": "A01",
+                "i": 123,
+                "u": 321,
+                "p": 213,
+                "status": 2
+            },
+            {
+                "stationId": 0,
+                "station": "风场HZJ",
+                "code": "A01",
+                "i": 123,
+                "u": 321,
+                "p": 213,
+                "status": 3
+            },
+            {
+                "stationId": 0,
+                "station": "风场HZJ",
+                "code": "A01",
+                "i": 123,
+                "u": 321,
+                "p": 213,
+                "status": 2
+            },
+            {
+                "stationId": 0,
+                "station": "风场HZJ",
+                "code": "A01",
+                "i": 123,
+                "u": 321,
+                "p": 213,
+                "status": 3
+            },
+            {
+                "stationId": 0,
+                "station": "风场HZJ",
+                "code": "A01",
+                "i": 123,
+                "u": 321,
+                "p": 213,
+                "status": 2
+            },
+            {
+                "stationId": 0,
+                "station": "风场HZJ",
+                "code": "A01",
+                "i": 123,
+                "u": 321,
+                "p": 213,
+                "status": 3
+            }
+        ],
+        [
+            {
+                "stationId": 1,
+                "windturbineId": "风场HZJ",
+                "modelId": "10523",
+                "windSpeed": 123,
+                "power": 321,
+                "rollSpeed": 213,
+                "status": 2
+            },
+            {
+                "stationId": 1,
+                "windturbineId": "风场HZJ",
+                "modelId": "10523",
+                "windSpeed": 123,
+                "power": 321,
+                "rollSpeed": 213,
+                "status": 3
+            },
+            {
+                "stationId": 1,
+                "windturbineId": "风场HZJ",
+                "modelId": "10523",
+                "windSpeed": 123,
+                "power": 321,
+                "rollSpeed": 213,
+                "status": 2
+            },
+            {
+                "stationId": 1,
+                "windturbineId": "风场HZJ",
+                "modelId": "10523",
+                "windSpeed": 123,
+                "power": 321,
+                "rollSpeed": 213,
+                "status": 3
+            },
+            {
+                "stationId": 1,
+                "windturbineId": "风场HZJ",
+                "modelId": "10523",
+                "windSpeed": 123,
+                "power": 321,
+                "rollSpeed": 213,
+                "status": 2
+            },
+            {
+                "stationId": 1,
+                "windturbineId": "风场HZJ",
+                "modelId": "10523",
+                "windSpeed": 123,
+                "power": 321,
+                "rollSpeed": 213,
+                "status": 3
+            },
+            {
+                "stationId": 1,
+                "windturbineId": "风场HZJ",
+                "modelId": "10523",
+                "windSpeed": 123,
+                "power": 321,
+                "rollSpeed": 213,
+                "status": 2
+            },
+            {
+                "stationId": 1,
+                "windturbineId": "风场HZJ",
+                "modelId": "10523",
+                "windSpeed": 123,
+                "power": 321,
+                "rollSpeed": 213,
+                "status": 3
+            }
+        ],
+        [
+            {
+                "stationId": 1,
+                "windturbineId": "风场HZJ",
+                "modelId": "10523",
+                "windSpeed": 123,
+                "power": 321,
+                "rollSpeed": 213,
+                "status": 2
+            },
+            {
+                "stationId": 1,
+                "windturbineId": "风场HZJ",
+                "modelId": "10523",
+                "windSpeed": 123,
+                "power": 321,
+                "rollSpeed": 213,
+                "status": 3
+            },
+            {
+                "stationId": 1,
+                "windturbineId": "风场HZJ",
+                "modelId": "10523",
+                "windSpeed": 123,
+                "power": 321,
+                "rollSpeed": 213,
+                "status": 2
+            },
+            {
+                "stationId": 1,
+                "windturbineId": "风场HZJ",
+                "modelId": "10523",
+                "windSpeed": 123,
+                "power": 321,
+                "rollSpeed": 213,
+                "status": 3
+            },
+            {
+                "stationId": 1,
+                "windturbineId": "风场HZJ",
+                "modelId": "10523",
+                "windSpeed": 123,
+                "power": 321,
+                "rollSpeed": 213,
+                "status": 2
+            },
+            {
+                "stationId": 1,
+                "windturbineId": "风场HZJ",
+                "modelId": "10523",
+                "windSpeed": 123,
+                "power": 321,
+                "rollSpeed": 213,
+                "status": 3
+            },
+            {
+                "stationId": 1,
+                "windturbineId": "风场HZJ",
+                "modelId": "10523",
+                "windSpeed": 123,
+                "power": 321,
+                "rollSpeed": 213,
+                "status": 2
+            },
+            {
+                "stationId": 1,
+                "windturbineId": "风场HZJ",
+                "modelId": "10523",
+                "windSpeed": 123,
+                "power": 321,
+                "rollSpeed": 213,
+                "status": 3
+            },
+            {
+                "stationId": 1,
+                "windturbineId": "风场HZJ",
+                "modelId": "10523",
+                "windSpeed": 123,
+                "power": 321,
+                "rollSpeed": 213,
+                "status": 2
+            },
+            {
+                "stationId": 1,
+                "windturbineId": "风场HZJ",
+                "modelId": "10523",
+                "windSpeed": 123,
+                "power": 321,
+                "rollSpeed": 213,
+                "status": 3
+            }
+        ],
+        [
+            {
+                "stationId": 1,
+                "windturbineId": "风场HZJ",
+                "modelId": "10523",
+                "windSpeed": 123,
+                "power": 321,
+                "rollSpeed": 213,
+                "status": 2
+            },
+            {
+                "stationId": 1,
+                "windturbineId": "风场HZJ",
+                "modelId": "10523",
+                "windSpeed": 123,
+                "power": 321,
+                "rollSpeed": 213,
+                "status": 3
+            },
+            {
+                "stationId": 1,
+                "windturbineId": "风场HZJ",
+                "modelId": "10523",
+                "windSpeed": 123,
+                "power": 321,
+                "rollSpeed": 213,
+                "status": 2
+            },
+            {
+                "stationId": 1,
+                "windturbineId": "风场HZJ",
+                "modelId": "10523",
+                "windSpeed": 123,
+                "power": 321,
+                "rollSpeed": 213,
+                "status": 3
+            },
+            {
+                "stationId": 1,
+                "windturbineId": "风场HZJ",
+                "modelId": "10523",
+                "windSpeed": 123,
+                "power": 321,
+                "rollSpeed": 213,
+                "status": 2
+            },
+            {
+                "stationId": 1,
+                "windturbineId": "风场HZJ",
+                "modelId": "10523",
+                "windSpeed": 123,
+                "power": 321,
+                "rollSpeed": 213,
+                "status": 3
+            }
+        ],
+        [
+            {
+                "stationId": 1,
+                "windturbineId": "风场HZJ",
+                "modelId": "10523",
+                "windSpeed": 123,
+                "power": 321,
+                "rollSpeed": 213,
+                "status": 2
+            },
+            {
+                "stationId": 1,
+                "windturbineId": "风场HZJ",
+                "modelId": "10523",
+                "windSpeed": 123,
+                "power": 321,
+                "rollSpeed": 213,
+                "status": 3
+            },
+            {
+                "stationId": 1,
+                "windturbineId": "风场HZJ",
+                "modelId": "10523",
+                "windSpeed": 123,
+                "power": 321,
+                "rollSpeed": 213,
+                "status": 2
+            },
+            {
+                "stationId": 1,
+                "windturbineId": "风场HZJ",
+                "modelId": "10523",
+                "windSpeed": 123,
+                "power": 321,
+                "rollSpeed": 213,
+                "status": 3
+            },
+            {
+                "stationId": 1,
+                "windturbineId": "风场HZJ",
+                "modelId": "10523",
+                "windSpeed": 123,
+                "power": 321,
+                "rollSpeed": 213,
+                "status": 2
+            },
+            {
+                "stationId": 1,
+                "windturbineId": "风场HZJ",
+                "modelId": "10523",
+                "windSpeed": 123,
+                "power": 321,
+                "rollSpeed": 213,
+                "status": 3
+            }
+        ],
+        [
+            {
+                "stationId": 0,
+                "station": "风场HZJ",
+                "code": "A01",
+                "i": 123,
+                "u": 321,
+                "p": 213,
+                "status": 2
+            },
+            {
+                "stationId": 0,
+                "station": "风场HZJ",
+                "code": "A01",
+                "i": 123,
+                "u": 321,
+                "p": 213,
+                "status": 3
+            },
+            {
+                "stationId": 0,
+                "station": "风场HZJ",
+                "code": "A01",
+                "i": 123,
+                "u": 321,
+                "p": 213,
+                "status": 2
+            },
+            {
+                "stationId": 0,
+                "station": "风场HZJ",
+                "code": "A01",
+                "i": 123,
+                "u": 321,
+                "p": 213,
+                "status": 3
+            },
+            {
+                "stationId": 0,
+                "station": "风场HZJ",
+                "code": "A01",
+                "i": 123,
+                "u": 321,
+                "p": 213,
+                "status": 2
+            },
+            {
+                "stationId": 0,
+                "station": "风场HZJ",
+                "code": "A01",
+                "i": 123,
+                "u": 321,
+                "p": 213,
+                "status": 3
+            },
+            {
+                "stationId": 0,
+                "station": "风场HZJ",
+                "code": "A01",
+                "i": 123,
+                "u": 321,
+                "p": 213,
+                "status": 2
+            },
+            {
+                "stationId": 0,
+                "station": "风场HZJ",
+                "code": "A01",
+                "i": 123,
+                "u": 321,
+                "p": 213,
+                "status": 3
+            },
+            {
+                "stationId": 0,
+                "station": "风场HZJ",
+                "code": "A01",
+                "i": 123,
+                "u": 321,
+                "p": 213,
+                "status": 2
+            },
+            {
+                "stationId": 0,
+                "station": "风场HZJ",
+                "code": "A01",
+                "i": 123,
+                "u": 321,
+                "p": 213,
+                "status": 3
+            }
+        ]
+    ],
+    "stationOverviewInfos": [
+        {
+            "realTimePower": {
+                "value": 123123
+            },
+            "averageWindSpeed": {
+                "value": 123123
+            }
+        },
+        {
+            "realTimePower": {
+                "value": 123123
+            },
+            "averageWindSpeed": {
+                "value": 123123
+            }
+        },
+        {
+            "realTimePower": {
+                "value": 123123
+            },
+            "averageWindSpeed": {
+                "value": 123123
+            }
+        },
+        {
+            "realTimePower": {
+                "value": 123123
+            },
+            "averageWindSpeed": {
+                "value": 123123
+            }
+        },
+        {
+            "realTimePower": {
+                "value": 123123
+            },
+            "averageWindSpeed": {
+                "value": 123123
+            }
+        },
+        {
+            "realTimePower": {
+                "value": 123123
+            },
+            "averageWindSpeed": {
+                "value": 123123
+            }
+        }
+    ]
+}

+ 13 - 5
src/components/check/areaCard.vue

@@ -48,6 +48,8 @@ import BackgroundData from "utils/BackgroundData";
 import MatrixBlock from "../matrixBlock.vue";
 import OperationRecords from "./operationRecords.vue";
 import WindturbineDetailPages from "../WindturbineDetailPages.vue";
+
+import dataJson from "./dataJson.json";
 export default {
   props: {
     title: {
@@ -76,8 +78,9 @@ export default {
     };
   },
   created() {
-    this.dataDeal();
-    this.intervals = setInterval(this.dataDeal, 1000);
+    // this.dataDeal();
+    // this.intervals = setInterval(this.dataDeal, 1000);
+    this.showList = dataJson.showList;
     this.arr = BackgroundData.getInstance().checkouts;
   },
   methods: {
@@ -88,8 +91,13 @@ export default {
         let arr = [];
         let checks = BackgroundData.getInstance().checkouts;
         checks.forEach((item) => {
-          if (item.status === this.$store.state.windturbinelist[item.windturbineId].status) {
-            showList.push(this.$store.state.windturbinelist[item.windturbineId]);
+          if (
+            item.status ===
+            this.$store.state.windturbinelist[item.windturbineId].status
+          ) {
+            showList.push(
+              this.$store.state.windturbinelist[item.windturbineId]
+            );
           } else {
             BackgroundData.getInstance().removeCheckouts(item);
           }
@@ -112,7 +120,7 @@ export default {
           });
           flag = false;
         }
-      }else{
+      } else {
         this.showList = [];
       }
     },

+ 44 - 0
src/components/check/dataJson.json

@@ -0,0 +1,44 @@
+{
+    "showList": [
+        {
+            "status": 3,
+            "windSpeed": 12,
+            "power": 34212,
+            "rollSpeed": 15,
+            "windturbineId": "风场_A01",
+            "modelId": "12342431543"
+        },
+        {
+            "status": 5,
+            "windSpeed": 12,
+            "power": 34212,
+            "rollSpeed": 15,
+            "windturbineId": "风场_A02",
+            "modelId": "12342431543"
+        },
+        {
+            "status": 1,
+            "windSpeed": 12,
+            "power": 34212,
+            "rollSpeed": 15,
+            "windturbineId": "风场_A03",
+            "modelId": "12342431543"
+        },
+        {
+            "status": 3,
+            "windSpeed": 12,
+            "power": 34212,
+            "rollSpeed": 15,
+            "windturbineId": "风场_A04",
+            "modelId": "12342431543"
+        },
+        {
+            "status": 3,
+            "windSpeed": 12,
+            "power": 34212,
+            "rollSpeed": 15,
+            "windturbineId": "风场_A05",
+            "modelId": "12342431543"
+        }
+    ]
+}

+ 24 - 15
src/components/control/areaCard.vue

@@ -106,6 +106,8 @@ import MessageBridge from "utils/MessageBridge";
 import api from "api/index";
 import { debounce } from "lodash";
 import StationSvgDetailPages from "../stationSvgDetailPages.vue";
+
+import dataJson from "./dataJson.json";
 export default {
   name: "gy-card",
   components: {
@@ -117,10 +119,16 @@ export default {
     this.initData();
     this.suggestion();
     this.getControlType();
-    this.handleWindturbineChange();
-    this.intervals = setInterval(this.handleWindturbineChange, 3000);
-    this.suggestion();
-    this.sugIntervals = setInterval(this.suggestion, 15000);
+    // this.handleWindturbineChange();
+    // this.intervals = setInterval(this.handleWindturbineChange, 3000);
+    // this.suggestion();
+    // this.sugIntervals = setInterval(this.suggestion, 15000);
+
+    this.controlTypeList = dataJson.data;
+    this.startList = dataJson.startList;
+    this.stopList = dataJson.stopList;
+    this.maintainList = dataJson.maintainList;
+    this.unMaintainList = dataJson.unMaintainList;
   },
   emits: ["parentRun"],
   props: {
@@ -266,7 +274,7 @@ export default {
         } else if (arr[0] === "CLOSE") {
           this.dialogVisible = false;
           this.svgVisible = false;
-        }  else if (
+        } else if (
           arr[0] === "CONTROL_START" ||
           arr[0] === "CONTROL_STOP" ||
           arr[0] === "CONTROL_MAINTAIN" ||
@@ -613,11 +621,12 @@ export default {
         for (let v in msg.data) {
           let val = msg.data[v];
           if (val.errorCode > 0) {
-                    iserror = true;
-                    mss += `${val.windturbineId}  ${this.controlErorCodes[val.errorCode]
-                        }\n`;
+            iserror = true;
+            mss += `${val.windturbineId}  ${
+              this.controlErorCodes[val.errorCode]
+            }\n`;
           } else {
-              mss += `${val.windturbineId}\n`;
+            mss += `${val.windturbineId}\n`;
           }
         }
         let tp = iserror ? "warning" : "success";
@@ -983,12 +992,12 @@ export default {
 </style>
 
 <style lang="less">
-.currentScroll{
-    .matrix{
-        .titleSty {
-            font-size: 14px;
-            font-weight: bold;
-        }
+.currentScroll {
+  .matrix {
+    .titleSty {
+      font-size: 14px;
+      font-weight: bold;
     }
+  }
 }
 </style>

+ 175 - 0
src/components/control/dataJson.json

@@ -0,0 +1,175 @@
+{
+    "data": [
+        {
+            "name": "风场_A01"
+        }
+    ],
+    "startList": [
+        {
+            "status": 3,
+            "windSpeed": 12,
+            "power": 34212,
+            "rollSpeed": 15,
+            "windturbineId": "风场_A01",
+            "modelId": "12342431543"
+        },
+        {
+            "status": 5,
+            "windSpeed": 12,
+            "power": 34212,
+            "rollSpeed": 15,
+            "windturbineId": "风场_A02",
+            "modelId": "12342431543"
+        },
+        {
+            "status": 1,
+            "windSpeed": 12,
+            "power": 34212,
+            "rollSpeed": 15,
+            "windturbineId": "风场_A03",
+            "modelId": "12342431543"
+        },
+        {
+            "status": 3,
+            "windSpeed": 12,
+            "power": 34212,
+            "rollSpeed": 15,
+            "windturbineId": "风场_A04",
+            "modelId": "12342431543"
+        },
+        {
+            "status": 3,
+            "windSpeed": 12,
+            "power": 34212,
+            "rollSpeed": 15,
+            "windturbineId": "风场_A05",
+            "modelId": "12342431543"
+        }
+    ],
+    "stopList": [
+        {
+            "status": 3,
+            "windSpeed": 12,
+            "power": 34212,
+            "rollSpeed": 15,
+            "windturbineId": "风场_A01",
+            "modelId": "12342431543"
+        },
+        {
+            "status": 5,
+            "windSpeed": 12,
+            "power": 34212,
+            "rollSpeed": 15,
+            "windturbineId": "风场_A02",
+            "modelId": "12342431543"
+        },
+        {
+            "status": 1,
+            "windSpeed": 12,
+            "power": 34212,
+            "rollSpeed": 15,
+            "windturbineId": "风场_A03",
+            "modelId": "12342431543"
+        },
+        {
+            "status": 3,
+            "windSpeed": 12,
+            "power": 34212,
+            "rollSpeed": 15,
+            "windturbineId": "风场_A04",
+            "modelId": "12342431543"
+        },
+        {
+            "status": 3,
+            "windSpeed": 12,
+            "power": 34212,
+            "rollSpeed": 15,
+            "windturbineId": "风场_A05",
+            "modelId": "12342431543"
+        }
+    ],
+    "maintainList": [
+        {
+            "status": 3,
+            "windSpeed": 12,
+            "power": 34212,
+            "rollSpeed": 15,
+            "windturbineId": "风场_A01",
+            "modelId": "12342431543"
+        },
+        {
+            "status": 5,
+            "windSpeed": 12,
+            "power": 34212,
+            "rollSpeed": 15,
+            "windturbineId": "风场_A02",
+            "modelId": "12342431543"
+        },
+        {
+            "status": 1,
+            "windSpeed": 12,
+            "power": 34212,
+            "rollSpeed": 15,
+            "windturbineId": "风场_A03",
+            "modelId": "12342431543"
+        },
+        {
+            "status": 3,
+            "windSpeed": 12,
+            "power": 34212,
+            "rollSpeed": 15,
+            "windturbineId": "风场_A04",
+            "modelId": "12342431543"
+        },
+        {
+            "status": 3,
+            "windSpeed": 12,
+            "power": 34212,
+            "rollSpeed": 15,
+            "windturbineId": "风场_A05",
+            "modelId": "12342431543"
+        }
+    ],
+    "unMaintainList": [
+        {
+            "status": 3,
+            "windSpeed": 12,
+            "power": 34212,
+            "rollSpeed": 15,
+            "windturbineId": "风场_A01",
+            "modelId": "12342431543"
+        },
+        {
+            "status": 5,
+            "windSpeed": 12,
+            "power": 34212,
+            "rollSpeed": 15,
+            "windturbineId": "风场_A02",
+            "modelId": "12342431543"
+        },
+        {
+            "status": 1,
+            "windSpeed": 12,
+            "power": 34212,
+            "rollSpeed": 15,
+            "windturbineId": "风场_A03",
+            "modelId": "12342431543"
+        },
+        {
+            "status": 3,
+            "windSpeed": 12,
+            "power": 34212,
+            "rollSpeed": 15,
+            "windturbineId": "风场_A04",
+            "modelId": "12342431543"
+        },
+        {
+            "status": 3,
+            "windSpeed": 12,
+            "power": 34212,
+            "rollSpeed": 15,
+            "windturbineId": "风场_A05",
+            "modelId": "12342431543"
+        }
+    ]
+}

+ 29 - 0
src/components/focus/dataJson.json

@@ -0,0 +1,29 @@
+{
+    "data": [
+        {
+            "showType": "测试",
+            "name": "风场_A01",
+            "createTime": "2025-05-21"
+        },
+        {
+            "showType": "测试",
+            "name": "风场_A01",
+            "createTime": "2025-05-21"
+        },
+        {
+            "showType": "测试",
+            "name": "风场_A01",
+            "createTime": "2025-05-21"
+        },
+        {
+            "showType": "测试",
+            "name": "风场_A01",
+            "createTime": "2025-05-21"
+        },
+        {
+            "showType": "测试",
+            "name": "风场_A01",
+            "createTime": "2025-05-21"
+        }
+    ]
+}

+ 14 - 10
src/components/focus/focusCard.vue

@@ -31,11 +31,7 @@
     @close="close"
   >
   </WindturbineDetailPages>
-  <StationSvgDetailPages
-    v-model="svgVisible"
-    :svgWeb="svgWeb"
-    @close="close"
-  >
+  <StationSvgDetailPages v-model="svgVisible" :svgWeb="svgWeb" @close="close">
   </StationSvgDetailPages>
 </template>
 
@@ -46,6 +42,8 @@ import StationSvgDetailPages from "../stationSvgDetailPages.vue";
 import WindturbineDetailPages from "../WindturbineDetailPages.vue";
 import api from "api/index";
 import dayjs from "dayjs";
+
+import dataJson from "./dataJson.json";
 export default {
   name: "RecommendedArea",
   props: ["datas"],
@@ -83,8 +81,10 @@ export default {
     WindturbineDetailPages,
   },
   created() {
-    this.datacontrol();
-    this.getAGCStation();
+    // this.datacontrol();
+    // this.getAGCStation();
+
+    this.values = dataJson.data;
   },
   methods: {
     getAGCStation() {
@@ -113,7 +113,7 @@ export default {
     },
     closed() {
       clearInterval(this.intervalTimer);
-      this.intervalTimer = null
+      this.intervalTimer = null;
     },
     close() {
       this.svgVisible = false;
@@ -159,8 +159,12 @@ export default {
                 this.dialogData.data[item.tag] = {
                   name: item.name,
                   value: res.data[v].doubleValue
-                    ? res.data[v].doubleValue === 0? 0 : Number((res.data[v].doubleValue * calc).toFixed(2))
-                    : res.data[v].booleanValue? 1: 0,
+                    ? res.data[v].doubleValue === 0
+                      ? 0
+                      : Number((res.data[v].doubleValue * calc).toFixed(2))
+                    : res.data[v].booleanValue
+                    ? 1
+                    : 0,
                 };
               }
             });

+ 16 - 0
src/components/modeControl/dataJson.json

@@ -0,0 +1,16 @@
+{
+    "data": {
+        "realTimePower": {
+            "value": 512
+        },
+        "agcPowerSet": {
+            "value": 466
+        },
+        "windEnergyRate": {
+            "value": 82
+        },
+        "curveFollowingRate": {
+            "value": 52
+        }
+    }
+}

文件差异内容过多而无法显示
+ 662 - 619
src/components/modeControl/modeControl.vue


+ 39 - 31
src/components/problem/areaCard.vue

@@ -118,6 +118,8 @@ import WindturbineDetailPages from "../WindturbineDetailPages.vue";
 import MatrixBlock from "../matrixBlock.vue";
 import api from "api/index";
 import { debounce } from "lodash";
+
+import dataJson from "./dataJson.json";
 export default {
   name: "gy-card",
   components: {
@@ -191,8 +193,16 @@ export default {
     this.deal();
     this.getLocks();
     // this.initData()
-    this.windturbineMessage();
-    this.intervals = setInterval(this.windturbineMessage, 3000);
+
+    // this.windturbineMessage();
+    // this.intervals = setInterval(this.windturbineMessage, 3000);
+
+    this.statusRepair = dataJson.statusRepair;
+    this.faultList = dataJson.faultList;
+    this.maintainList = dataJson.maintainList;
+    this.offlineList = dataJson.offlineList;
+    this.listedList = dataJson.listedList;
+    this.unpaidList = dataJson.unpaidList;
   },
   methods: {
     // initData: function () {
@@ -206,14 +216,14 @@ export default {
     //   this.windturbineMessage(msg);
     // }, 1000),
     windturbineMessage() {
-      api.getWindturbine().then(res =>{
-        this.windturbineList = res.data
+      api.getWindturbine().then((res) => {
+        this.windturbineList = res.data;
         let json = res.data;
-      this.maintainList = [];
+        this.maintainList = [];
         this.offlineList = [];
         this.listedList = [];
         this.faultList = [];
-        this.statusRepair = []
+        this.statusRepair = [];
         this.unpaidList = [];
         let faultRecord = [];
         let flashingList = this.$store.state.faultList || [];
@@ -241,8 +251,8 @@ export default {
               (item) => val.windturbineId === item.windturbineID
             )[0]?.value;
           }
-          if(val.abnormalState === true) {
-            this.statusRepair.push(val)
+          if (val.abnormalState === true) {
+            this.statusRepair.push(val);
           }
           switch (val.status) {
             case 4:
@@ -266,8 +276,7 @@ export default {
           }
         }
         this.$store.commit("faultList", faultRecord);
-      })
-      
+      });
     },
     deal() {
       let json = this.windturbineList;
@@ -275,7 +284,7 @@ export default {
       this.unpaidList = [];
       this.faultList = [];
       this.maintainList = [];
-      this.statusRepair = []
+      this.statusRepair = [];
       this.offlineList = [];
       this.listedList = [];
 
@@ -288,8 +297,8 @@ export default {
             val.active = true;
           }
         });
-        if(val.abnormalState === true){
-          this.statusRepair.push(val)
+        if (val.abnormalState === true) {
+          this.statusRepair.push(val);
         }
         switch (val.status) {
           case 4:
@@ -568,7 +577,6 @@ export default {
     //           val.flashing = true;
     //         }
     //       }
-
     //       if (val.lockValue === 9) {
     //         val.lockValues = this.lockValues.filter(
     //           (item) => val.windturbineId === item.windturbineID
@@ -677,22 +685,22 @@ export default {
 </style>
 
 <style lang="less">
-.tit1{
-    .title{
-        font-size: 14px;
-        font-weight: bold;
-        color: #bfbfbf;
-    }
-    .num {
-        color: #fff;
-        display: inline-block;
-        width: 30px;
-        height: 30px;
-        background-color: rgba(37, 116, 219, 1);
-        border-radius: 50%;
-        line-height: 30px;
-        text-align: center;
-        box-sizing: border-box;
-    }
+.tit1 {
+  .title {
+    font-size: 14px;
+    font-weight: bold;
+    color: #bfbfbf;
+  }
+  .num {
+    color: #fff;
+    display: inline-block;
+    width: 30px;
+    height: 30px;
+    background-color: rgba(37, 116, 219, 1);
+    border-radius: 50%;
+    line-height: 30px;
+    text-align: center;
+    box-sizing: border-box;
+  }
 }
 </style>

+ 254 - 0
src/components/problem/dataJson.json

@@ -0,0 +1,254 @@
+{
+    "statusRepair": [
+        {
+            "status": 3,
+            "windSpeed": 12,
+            "power": 34212,
+            "rollSpeed": 15,
+            "windturbineId": "风场_A01",
+            "modelId": "12342431543"
+        },
+        {
+            "status": 5,
+            "windSpeed": 12,
+            "power": 34212,
+            "rollSpeed": 15,
+            "windturbineId": "风场_A02",
+            "modelId": "12342431543"
+        },
+        {
+            "status": 1,
+            "windSpeed": 12,
+            "power": 34212,
+            "rollSpeed": 15,
+            "windturbineId": "风场_A03",
+            "modelId": "12342431543"
+        },
+        {
+            "status": 3,
+            "windSpeed": 12,
+            "power": 34212,
+            "rollSpeed": 15,
+            "windturbineId": "风场_A04",
+            "modelId": "12342431543"
+        },
+        {
+            "status": 3,
+            "windSpeed": 12,
+            "power": 34212,
+            "rollSpeed": 15,
+            "windturbineId": "风场_A05",
+            "modelId": "12342431543"
+        }
+    ],
+    "faultList": [
+        {
+            "status": 3,
+            "windSpeed": 12,
+            "power": 34212,
+            "rollSpeed": 15,
+            "windturbineId": "风场_A01",
+            "modelId": "12342431543"
+        },
+        {
+            "status": 5,
+            "windSpeed": 12,
+            "power": 34212,
+            "rollSpeed": 15,
+            "windturbineId": "风场_A02",
+            "modelId": "12342431543"
+        },
+        {
+            "status": 1,
+            "windSpeed": 12,
+            "power": 34212,
+            "rollSpeed": 15,
+            "windturbineId": "风场_A03",
+            "modelId": "12342431543"
+        },
+        {
+            "status": 3,
+            "windSpeed": 12,
+            "power": 34212,
+            "rollSpeed": 15,
+            "windturbineId": "风场_A04",
+            "modelId": "12342431543"
+        },
+        {
+            "status": 3,
+            "windSpeed": 12,
+            "power": 34212,
+            "rollSpeed": 15,
+            "windturbineId": "风场_A05",
+            "modelId": "12342431543"
+        }
+    ],
+    "maintainList": [
+        {
+            "status": 3,
+            "windSpeed": 12,
+            "power": 34212,
+            "rollSpeed": 15,
+            "windturbineId": "风场_A01",
+            "modelId": "12342431543"
+        },
+        {
+            "status": 5,
+            "windSpeed": 12,
+            "power": 34212,
+            "rollSpeed": 15,
+            "windturbineId": "风场_A02",
+            "modelId": "12342431543"
+        },
+        {
+            "status": 1,
+            "windSpeed": 12,
+            "power": 34212,
+            "rollSpeed": 15,
+            "windturbineId": "风场_A03",
+            "modelId": "12342431543"
+        },
+        {
+            "status": 3,
+            "windSpeed": 12,
+            "power": 34212,
+            "rollSpeed": 15,
+            "windturbineId": "风场_A04",
+            "modelId": "12342431543"
+        },
+        {
+            "status": 3,
+            "windSpeed": 12,
+            "power": 34212,
+            "rollSpeed": 15,
+            "windturbineId": "风场_A05",
+            "modelId": "12342431543"
+        }
+    ],
+    "offlineList": [
+        {
+            "status": 3,
+            "windSpeed": 12,
+            "power": 34212,
+            "rollSpeed": 15,
+            "windturbineId": "风场_A01",
+            "modelId": "12342431543"
+        },
+        {
+            "status": 5,
+            "windSpeed": 12,
+            "power": 34212,
+            "rollSpeed": 15,
+            "windturbineId": "风场_A02",
+            "modelId": "12342431543"
+        },
+        {
+            "status": 1,
+            "windSpeed": 12,
+            "power": 34212,
+            "rollSpeed": 15,
+            "windturbineId": "风场_A03",
+            "modelId": "12342431543"
+        },
+        {
+            "status": 3,
+            "windSpeed": 12,
+            "power": 34212,
+            "rollSpeed": 15,
+            "windturbineId": "风场_A04",
+            "modelId": "12342431543"
+        },
+        {
+            "status": 3,
+            "windSpeed": 12,
+            "power": 34212,
+            "rollSpeed": 15,
+            "windturbineId": "风场_A05",
+            "modelId": "12342431543"
+        }
+    ],
+    "listedList": [
+        {
+            "status": 3,
+            "windSpeed": 12,
+            "power": 34212,
+            "rollSpeed": 15,
+            "windturbineId": "风场_A01",
+            "modelId": "12342431543"
+        },
+        {
+            "status": 5,
+            "windSpeed": 12,
+            "power": 34212,
+            "rollSpeed": 15,
+            "windturbineId": "风场_A02",
+            "modelId": "12342431543"
+        },
+        {
+            "status": 1,
+            "windSpeed": 12,
+            "power": 34212,
+            "rollSpeed": 15,
+            "windturbineId": "风场_A03",
+            "modelId": "12342431543"
+        },
+        {
+            "status": 3,
+            "windSpeed": 12,
+            "power": 34212,
+            "rollSpeed": 15,
+            "windturbineId": "风场_A04",
+            "modelId": "12342431543"
+        },
+        {
+            "status": 3,
+            "windSpeed": 12,
+            "power": 34212,
+            "rollSpeed": 15,
+            "windturbineId": "风场_A05",
+            "modelId": "12342431543"
+        }
+    ],
+    "unpaidList": [
+        {
+            "status": 3,
+            "windSpeed": 12,
+            "power": 34212,
+            "rollSpeed": 15,
+            "windturbineId": "风场_A01",
+            "modelId": "12342431543"
+        },
+        {
+            "status": 5,
+            "windSpeed": 12,
+            "power": 34212,
+            "rollSpeed": 15,
+            "windturbineId": "风场_A02",
+            "modelId": "12342431543"
+        },
+        {
+            "status": 1,
+            "windSpeed": 12,
+            "power": 34212,
+            "rollSpeed": 15,
+            "windturbineId": "风场_A03",
+            "modelId": "12342431543"
+        },
+        {
+            "status": 3,
+            "windSpeed": 12,
+            "power": 34212,
+            "rollSpeed": 15,
+            "windturbineId": "风场_A04",
+            "modelId": "12342431543"
+        },
+        {
+            "status": 3,
+            "windSpeed": 12,
+            "power": 34212,
+            "rollSpeed": 15,
+            "windturbineId": "风场_A05",
+            "modelId": "12342431543"
+        }
+    ]
+}

+ 982 - 0
src/components/temperatureMatrixNoDia.vue

@@ -0,0 +1,982 @@
+<template>
+  <div class="TemperatureMatrix">
+    <div class="body" @contextmenu="contextmenu">
+      <div class="title">
+        <div
+          :class="current === item.id ? 'title-onItem' : 'title-item'"
+          v-for="(item, index) in stationList"
+          :key="index"
+          @click="handleChange(item.id, item.name)"
+        >
+          {{ item.name }}
+        </div>
+        <div class="select">
+          <el-checkbox
+            style="margin-right: 20px"
+            :indeterminate="isIndeterminate"
+            v-model="checkAll"
+            @change="handleCheckChange"
+            >全选
+          </el-checkbox>
+          <el-checkbox-group
+            v-model="checkedCities"
+            @change="handleCheckedCitiesChange"
+          >
+            <el-checkbox v-for="item in checkboxs" :label="item" :key="item"
+              >{{ item }}
+            </el-checkbox>
+          </el-checkbox-group>
+          <div class="bpickers">
+            <!-- <div class="search"> -->
+            <div class="date">日期:</div>
+            <el-date-picker
+              class="pickers"
+              @change="changes"
+              v-model="timeValue"
+              type="datetimerange"
+              range-separator="至"
+              start-placeholder="开始日期"
+              end-placeholder="结束日期"
+            >
+            </el-date-picker>
+            <!-- </div> -->
+            <div style="margin-left: 10px">
+              <el-button type="info" size="small" @click="exportExcel()"
+                >导出
+              </el-button>
+            </div>
+          </div>
+        </div>
+      </div>
+      <div class="tables">
+        <el-table
+          id="tableId"
+          ref="multipleTable"
+          :data="tableData"
+          class="table"
+          style="width: 100%"
+          height="83vh"
+          stripe
+          :header-cell-style="{
+            background: 'rgb(30,30,30)',
+            color: 'rgb(220,220,220)',
+            padding: '4px',
+            fontSize: '14px',
+            border: 'solid 0.5px #000000',
+          }"
+          :cell-style="{
+            height: '40px',
+            background: 'rgb(30,30,30)',
+            color: 'rgb(220,220,220)',
+            padding: '3px',
+            fontSize: '12px',
+            'border-top': '0px solid #000000',
+            'border-bottom': '1px solid #000000',
+            'border-right': '1px solid #000000',
+          }"
+          @cell-click="handleCellClick"
+          @selection-change="handleSelectionChange"
+        >
+          <el-table-column type="selection" width="50"></el-table-column>
+          <el-table-column prop="code" label="风机" width="90" align="center">
+          </el-table-column>
+          <el-table-column label="状态" width="60" align="center">
+            <template #default="scope">
+              <span>
+                {{ windturbineStatus[scope.row?.status]?.name }}
+              </span>
+            </template>
+          </el-table-column>
+          <el-table-column
+            prop="windSpeed"
+            width="50"
+            label="风速"
+            align="center"
+          >
+          </el-table-column>
+          <el-table-column prop="power" width="60" label="功率" align="center">
+          </el-table-column>
+          <el-table-column
+            prop="rollSpeed"
+            width="70"
+            label="发电机转速"
+            align="center"
+          >
+          </el-table-column>
+          <el-table-column
+            v-for="(item, index) in contentList"
+            :key="index"
+            :label="item.name"
+            align="center"
+          >
+            <el-table-column
+              v-for="(res, index) in item.children"
+              :key="index"
+              :label="res.name"
+              width="61"
+              align="center"
+            >
+              <template #default="scope">
+                <span
+                  :id="scope.row.id === tableData.length - 3 ? 'lastTable' : ''"
+                  :class="
+                    scope.row[`${res.keyname}Status`] === 'OverLimit'
+                      ? 'overModle'
+                      : scope.row[`${res.keyname}Status`] === 'CrossingLimit'
+                      ? 'crossModle'
+                      : scope.row[`${res.keyname}Status`] === 'BadPoint'
+                      ? 'badModle'
+                      : ''
+                  "
+                >
+                  {{ scope.row[res.keyname] ? scope.row[res.keyname] : "" }}
+                </span>
+              </template>
+            </el-table-column>
+          </el-table-column>
+        </el-table>
+      </div>
+    </div>
+  </div>
+</template>
+
+<script>
+import api from "api/index";
+import BackgroundData from "utils/BackgroundData";
+import XLSX from "xlsx-js-style";
+import dayjs from "dayjs";
+
+import dataJson from "./temperatureMatrixNoDiaJson.json";
+
+// import XLSXStyle from 'xlsx-style';
+const cityOptions = ["越限", "超限", "坏点"];
+export default {
+  data() {
+    return {
+      timeValue: [],
+      windturbineStatus: [
+        {
+          type: 0,
+          name: "停机",
+        },
+        {
+          type: 1,
+          name: "上电",
+        },
+        {
+          type: 2,
+          name: "待机",
+        },
+        {
+          type: 3,
+          name: "启动",
+        },
+        {
+          type: 4,
+          name: "并网",
+        },
+        {
+          type: 5,
+          name: "故障",
+        },
+        {
+          type: 6,
+          name: "维护",
+        },
+        {
+          type: 7,
+          name: "离线",
+        },
+      ],
+      contentList: [],
+      hanb: "",
+      tableData: [],
+      totablejs: [],
+      stationList: [],
+      current: "",
+      intervals: null,
+      multipleSelection: [],
+      chooseList: [],
+      refreshFlag: false,
+      statusList: [
+        {
+          name: "正常",
+          lable: "Normal",
+        },
+        {
+          name: "越限",
+          lable: "CrossingLimit",
+        },
+        {
+          name: "超限",
+          lable: "OverLimit",
+        },
+        {
+          name: "坏点",
+          lable: "BadPoint",
+        },
+      ],
+      checkboxs: cityOptions,
+      checkedCities: ["越限", "超限", "坏点"],
+      checkAll: true,
+      isIndeterminate: true,
+      controlErorCodes: [
+        "控制成功",
+        "控制命令发送失败",
+        "无效的控制地址",
+        "被控设备异常",
+        "无效的控制功能",
+        "网络连接错误,检查场站通信",
+        "控制结果读取超时",
+        "未知错误",
+        "控制命令错误",
+        "收到无法识别数据",
+        "未读取到数据包",
+        "未知错误",
+        "风机操作过频繁",
+        "风机被挂牌",
+        "风机操作与风机状态不符",
+        "需要登录",
+      ],
+      pagenum: 1,
+    };
+  },
+  mounted() {
+    this.$nextTick(() => {
+      this.contentList = dataJson.column;
+      this.tableData = dataJson.data;
+    });
+  },
+  methods: {
+    cheshi() {
+      const lastTable = document.getElementById("lastTable").getClientRects();
+      const tableId = document.getElementById("tableId").getClientRects();
+      if (lastTable[0].top < tableId[0].bottom) {
+        this.pagenum = this.pagenum + 1;
+        this.getData();
+      }
+    },
+    handleCheckChange(val) {
+      this.tableData = [];
+      this.pagenum = 1;
+      this.checkedCities = val ? cityOptions : [];
+      this.isIndeterminate = false;
+      this.multipleSelection = [];
+      this.getData();
+    },
+    handleCheckedCitiesChange(value) {
+      let checkedCount = value.length;
+      this.checkAll = checkedCount === this.checkboxs.length;
+      this.isIndeterminate =
+        checkedCount > 0 && checkedCount < this.checkboxs.length;
+      this.multipleSelection = [];
+      this.tableData = [];
+      this.pagenum = 1;
+      this.getData();
+    },
+    opened() {
+      let date = new Date();
+      this.timeValue[0] =
+        new Date(new Date().toLocaleDateString()).getTime() - 86400000;
+      this.timeValue[1] = new Date(new Date().toLocaleDateString()).getTime();
+
+      this.$nextTick(() => {
+        let tableDom = this.$refs.multipleTable?.$refs?.bodyWrapper;
+        let time = null;
+        tableDom.addEventListener("scroll", () => {
+          if (time !== null) {
+            clearTimeout(time);
+          }
+          time = setTimeout(() => {
+            this.cheshi();
+          }, 100);
+        });
+      });
+      let stationList = [];
+      console.log("61", stationList);
+      let stations = this.$store.state.stationList;
+      stations.forEach((item) => {
+        if (item.id.indexOf("FDC") != -1) {
+          stationList.push(item);
+        }
+      });
+      this.stationList = stationList;
+      this.current = stationList[0].id;
+      this.coordinates = [];
+      this.getData();
+      this.intervals = setInterval(this.handleData, 60000);
+    },
+    closed() {
+      clearInterval(this.intervals);
+      this.intervals = null;
+    },
+    handleChange(val, nb) {
+      this.current = val;
+      this.hanb = nb;
+      this.tableData = [];
+      this.pagenum = 1;
+      this.getData();
+    },
+    handleCellClick(val) {
+      this.$refs.multipleTable.toggleRowSelection(val);
+    },
+    handleSelectionChange(val) {
+      this.multipleSelection = val;
+    },
+    handleData() {
+      this.tableData = [];
+      this.pagenum = 1;
+      this.getData();
+    },
+    getData() {
+      let selectStatus = "";
+      let statusArr = [];
+      if (this.checkedCities.length < 3) {
+        this.checkedCities.forEach((item) => {
+          let status = this.statusList.filter((val) => val.name === item)[0];
+          if (status.lable) {
+            statusArr.push(status.lable);
+          }
+        });
+      }
+      selectStatus = statusArr.join(",");
+      api
+        .temperatureInfo({
+          id:
+            this.current === "all"
+              ? ""
+              : this.stationList.filter((item) => item.id === this.current)[0]
+                  .id,
+          status: selectStatus,
+          pagenum: this.pagenum,
+          pagesize: 200,
+        })
+        .then((res) => {
+          if (res.data.length) {
+            let contentList = [];
+            let tableDatas = [];
+            // console.log(contentList);
+            // console.log(tableDatas);
+            res.data.forEach((item, index) => {
+              let tableData = {};
+              tableData.code = item.code;
+              tableData.windturbineId = item.windturbineId;
+
+              tableData.windSpeed = item.windSpeed.toFixed(1);
+              tableData.status = Number(item.status);
+              tableData.stationId = item.stationId;
+              tableData.rollSpeed = item.rollSpeed.toFixed(1);
+              tableData.power = item.power.toFixed(1);
+              item.temperatureComponentInfos.forEach((val) => {
+                if (index === 0) {
+                  let obj = {
+                    children: [],
+                  };
+                  obj.name = val.name;
+                  val.temperatureItemInfos.forEach((temp) => {
+                    if (index === 0) {
+                      let str = {};
+                      str.name = temp.name;
+                      str.keyname = `${val.name}${temp.name}`;
+                      obj.children.push(str);
+                    }
+                    tableData[`${val.name}${temp.name}`] =
+                      temp.value.toFixed(1);
+                    tableData[`${val.name}${temp.name}Status`] = temp.status;
+                  });
+                  contentList.push(obj);
+                } else {
+                  val.temperatureItemInfos.forEach((temp) => {
+                    tableData[`${val.name}${temp.name}`] =
+                      temp.value.toFixed(1);
+                    tableData[`${val.name}${temp.name}Status`] = temp.status;
+                  });
+                }
+              });
+              tableDatas.push(tableData);
+              // console.log('ha',tableData);
+            });
+            this.contentList = contentList;
+            let arr = [];
+            this.contentList.forEach((item) => {
+              item.children.forEach((val) => {
+                arr.push(val.name);
+              });
+            });
+            if (tableDatas.length) {
+              this.tableData = [...this.tableData, ...tableDatas];
+
+              this.tableData.forEach((item, index) => {
+                item.id = index;
+              });
+            }
+
+            this.multipleSelection.forEach((item) => {
+              if (item) {
+                let tables = this.tableData.filter(
+                  (val) => val.code === item.code
+                )[0];
+                this.$nextTick(() => {
+                  this.$refs.multipleTable.toggleRowSelection(tables, true);
+                });
+              }
+            });
+          }
+        });
+    },
+
+    async exportExcel() {
+      let fjcode = [];
+      // console.log('sb',this.tableData);
+      this.tableData.forEach((ele) => {
+        fjcode.push(ele.windturbineId);
+      });
+      let str = fjcode.join(",");
+      await api
+        .getnb({
+          windturbineIds: str,
+          startTs: dayjs(this.timeValue[0]).valueOf(),
+          endTs: dayjs(this.timeValue[1]).valueOf(),
+        })
+        .then((res) => {
+          //  if (res.data.length) {
+          let contentList = [];
+          let tableDatas = [];
+          res.data.forEach((item, index) => {
+            let tablejs = {};
+            tablejs.code = item.code;
+            tablejs.windturbineId = item.windturbineId;
+            tablejs.windSpeed = item.windSpeed.toFixed(1);
+            tablejs.status = Number(item.status);
+            tablejs.stationId = item.stationId;
+            tablejs.rollSpeed = item.rollSpeed.toFixed(1);
+            tablejs.power = item.power.toFixed(1);
+            item.temperatureComponentInfos.forEach((val) => {
+              if (index === 0) {
+                let obj = {
+                  children: [],
+                };
+                obj.name = val.name;
+                val.temperatureItemInfos.forEach((temp) => {
+                  if (index === 0) {
+                    let str = {};
+                    str.name = temp.name;
+                    str.keyname = `${val.name}${temp.name}`;
+                    obj.children.push(str);
+                  }
+                  tablejs[`${val.name}${temp.name}`] = temp.value.toFixed(1);
+                  tablejs[`${val.name}${temp.name}Status`] = temp.status;
+                });
+                contentList.push(obj);
+              } else {
+                val.temperatureItemInfos.forEach((temp) => {
+                  tablejs[`${val.name}${temp.name}`] = temp.value.toFixed(1);
+                  tablejs[`${val.name}${temp.name}Status`] = temp.status;
+                });
+              }
+            });
+            tableDatas.push(tablejs);
+            this.totablejs.push(tablejs);
+          });
+        });
+      const headers = [
+        "时间",
+        "机组编号",
+        "状态",
+        "风速",
+        "功率",
+        "发电机转速",
+        "主轴叶轮侧温度",
+        "主轴齿轮箱侧温度",
+        "塔底柜温度",
+        "机舱柜温度",
+        "机舱温度",
+        "滑环温度",
+        "环境温度",
+        "发电机U1绕组温度",
+        "发电机U2绕组温度",
+        "发电机V1绕组温度",
+        "发电机V2绕组温度",
+        "发电机W1绕组温度",
+        "发电机W2绕组温度",
+        "轴a温度",
+        "轴b温度",
+        "变桨电池柜1温度",
+        "变桨电池柜2温度",
+        "变桨电池柜3温度",
+        "液压压力",
+        "液压油温",
+        "齿轮箱入口温度",
+        "齿轮箱油温",
+        "齿轮箱轴1温度",
+        "齿轮箱轴2温度",
+      ];
+      let data = this.totablejs.map((item) => [
+        item.code,
+        item.windturbineId,
+        item.status,
+        item.windSpeed,
+        item.power,
+        item.rollSpeed,
+        item.主轴叶轮侧温度,
+        item.主轴齿轮箱侧温度,
+        item.其他塔底柜温度,
+        item.其他机舱柜温度,
+        item.其他机舱温度,
+        item.其他滑环温度,
+        item.其他环境温度,
+        item.发电机U1绕组温度,
+        item.发电机U2绕组温度,
+        item.发电机V1绕组温度,
+        item.发电机V2绕组温度,
+        item.发电机W1绕组温度,
+        item.发电机W2绕组温度,
+        item.发电机轴a温度,
+        item.发电机轴b温度,
+        item.变桨电池柜1温度,
+        item.变桨电池柜2温度,
+        item.变桨电池柜3温度,
+        item.液压压力,
+        item.液压油温,
+        item.齿轮箱入口油温,
+        item.齿轮箱油温,
+        item.齿轮箱轴1温度,
+        item.齿轮箱轴2温度,
+      ]);
+      let dataStatus = this.totablejs.map((item) => [
+        item.主轴叶轮侧温度Status,
+        item.主轴齿轮箱侧温度Status,
+        item.其他塔底柜温度Status,
+        item.其他机舱柜温度Status,
+        item.其他机舱温度Status,
+        item.其他滑环温度Status,
+        item.其他环境温度Status,
+        item.发电机U1绕组温度Status,
+        item.发电机U2绕组温度Status,
+        item.发电机V1绕组温度Status,
+        item.发电机V2绕组温度Status,
+        item.发电机W1绕组温度Status,
+        item.发电机W2绕组温度Status,
+        item.发电机轴a温度Status,
+        item.发电机轴b温度Status,
+        item.变桨电池柜1温度Status,
+        item.变桨电池柜2温度Status,
+        item.变桨电池柜3温度Status,
+        item.液压压力Status,
+        item.液压油温Status,
+        item.齿轮箱入口油温Status,
+        item.齿轮箱油温Status,
+        item.齿轮箱轴1温度Status,
+        item.齿轮箱轴2温度Status,
+      ]);
+
+      data.forEach((ele) => {
+        if (ele[2] == 0) {
+          ele[2] = "停机";
+        } else if (ele[2] == 1) {
+          ele[2] = "上电";
+        } else if (ele[2] == 2) {
+          ele[2] = "待机";
+        } else if (ele[2] == 3) {
+          ele[2] = "启动";
+        } else if (ele[2] == 4) {
+          ele[2] = "并网";
+        } else if (ele[2] == 5) {
+          ele[2] = "故障";
+        } else if (ele[2] == 6) {
+          ele[2] = "维护";
+        } else if (ele[2] == 7) {
+          ele[2] = "离线";
+        }
+      });
+
+      const colors = {
+        BadPoint: { fill: { fgColor: { rgb: "C4C4C4" } } },
+        OverLimit: { fill: { fgColor: { rgb: "BB3439" } } },
+        CrossingLimit: { fill: { fgColor: { rgb: "E0871C" } } },
+        Normal: {},
+      };
+
+      const worksheet = XLSX.utils.aoa_to_sheet([headers, ...data]);
+      const workbook = XLSX.utils.book_new();
+
+      // 设置单元格的颜色
+      for (let row = 0; row < dataStatus.length; row++) {
+        let kr = dataStatus[row];
+        for (let i = 0; i < kr.length; i++) {
+          const status = kr[i];
+          let rn = this.getExcelColumn(i + 7) + `${row + 2}`;
+          worksheet[rn].s = colors[status]; // 设置颜色
+        }
+      }
+      worksheet["!cols"] = [{ wpx: 18 * 7.5 }];
+
+      XLSX.utils.book_append_sheet(workbook, worksheet, "Sheet1");
+      // XLSX.writeFile(workbook, `${this.hanb}温度矩阵.xlsx`);
+      const excelBuffer = XLSX.write(workbook, {
+        bookType: "xlsx",
+        type: "array",
+      });
+      this.saveAsExcelFile(excelBuffer, `${this.hanb}温度矩阵`);
+      // this.saveAsExcelFile()
+    },
+
+    saveAsExcelFile(buffer, fileName) {
+      const data = new Blob([buffer], { type: "application/octet-stream" });
+      if (typeof window.navigator.msSaveBlob !== "undefined") {
+        // IE10+
+        window.navigator.msSaveBlob(data, fileName + ".xlsx");
+      } else {
+        // Others
+        const url = window.URL.createObjectURL(data);
+        const link = document.createElement("a");
+        link.href = url;
+        link.setAttribute("download", fileName + ".xlsx");
+        document.body.appendChild(link);
+        link.click();
+        document.body.removeChild(link);
+      }
+    },
+    /* 右键菜单 */
+    contextmenu() {
+      const remote = require("electron").remote;
+      let that = this;
+      let menuTemplate = [];
+      menuTemplate = [
+        {
+          label: "启动",
+          click() {
+            that.sendCommand({ controlType: "1", deviceType: "Manual" });
+          },
+        },
+        {
+          label: "停机",
+          click() {
+            that.sendCommand({ controlType: "2", deviceType: "Manual" });
+          },
+        },
+        {
+          label: "复位",
+          click() {
+            that.sendCommand({ controlType: "5", deviceType: "Manual" });
+          },
+        },
+        {
+          label: "维护",
+          click() {
+            that.sendCommand({ controlType: "6", deviceType: "Manual" });
+          },
+        },
+        {
+          label: "取消维护",
+          click() {
+            that.sendCommand({ controlType: "8", deviceType: "Manual" });
+          },
+        },
+        {
+          label: "挂牌",
+          submenu: [
+            {
+              label: "检修",
+              click() {
+                that.sendLock({ value: "CheckLock" });
+              },
+            },
+            {
+              label: "故障维修",
+              click() {
+                that.sendLock({ value: "FaultLock" });
+              },
+            },
+            {
+              label: "场内受累检修",
+              click() {
+                that.sendLock({ value: "StationCheckLock" });
+              },
+            },
+            {
+              label: "场内受累故障",
+              click() {
+                that.sendLock({ value: "StationFaulLock" });
+              },
+            },
+            {
+              label: "场外受累电网",
+              click() {
+                that.sendLock({ value: "StationPowerLineLock" });
+              },
+            },
+            {
+              label: "场外受累天气",
+              click() {
+                that.sendLock({ value: "StationWeatherLock" });
+              },
+            },
+          ],
+        },
+        {
+          label: "取消挂牌",
+          click() {
+            that.sendLock({ value: "UnLock" });
+          },
+        },
+      ];
+      const menu = remote.Menu.buildFromTemplate(menuTemplate);
+
+      menu.popup(remote.getCurrentWindow());
+    },
+    sendCommand(msg) {
+      let sendList = [];
+      let bd = BackgroundData.getInstance();
+      if (!bd.LoginUser) {
+        this.$notify({
+          title: "请登录",
+          message: "控制风机需要先登录!",
+          type: "warning",
+          position: "bottom-right",
+          offset: 60,
+          duration: 3000,
+        });
+        return;
+      }
+      this.multipleSelection.forEach((item) => {
+        sendList.push(
+          this.$store.state.windturbinelist[item.code.replace("-", "_")]
+        );
+      });
+
+      if (sendList.length > 0) {
+        let pairs = {};
+        sendList.forEach((item) => {
+          let ct = {
+            windturbineId: item.windturbineId,
+            stationId: item.stationId,
+            projectId: item.projectId,
+            modelId: item.modelId,
+            controlType: Number(msg.controlType),
+            lockType: item.lockType,
+            userName: `system_${bd.LoginUser.name}`,
+            userId: 0,
+            auto: false,
+            deviceType: msg.deviceType,
+          };
+          pairs[ct.windturbineId] = ct;
+        });
+        api.windturbControl(pairs).then((res) => {
+          if (res) {
+            this.controlSuccess(res);
+          }
+        });
+      }
+    },
+    sendLock(msg) {
+      let bd = BackgroundData.getInstance();
+      if (!bd.LoginUser) {
+        this.$notify({
+          title: "请登录",
+          message: "控制风机需要先登录!",
+          type: "warning",
+          position: "bottom-right",
+          offset: 60,
+          duration: 3000,
+        });
+        return;
+      }
+      let sendList = [];
+      this.multipleSelection.forEach((item) => {
+        sendList.push(
+          this.$store.state.windturbinelist[item.code.replace("-", "_")]
+        );
+      });
+      if (sendList.length > 0) {
+        let pairs = {};
+        sendList.forEach((item) => {
+          let ct = {
+            windturbineId: item.windturbineId,
+            stationId: item.stationId,
+            projectId: item.projectId,
+            modelId: item.modelId,
+            lockType: msg.value,
+            userName: `system_${bd.LoginUser.name}`,
+            userId: 0,
+          };
+          pairs[ct.windturbineId] = ct;
+        });
+        api.windturbControlLock(pairs).then((res) => {
+          if (res) {
+            this.controlSuccess(res);
+          }
+        });
+      }
+    },
+    /* 控制成功 */
+    controlSuccess(msg) {
+      let bd = BackgroundData.getInstance();
+      for (let id in msg.data) {
+        let val = msg.data[id];
+        if (val.errorCode !== "0") {
+          bd.removeCheckouts(val);
+        }
+      }
+      let mss = ""; // 信息
+      let iserror = false; // 是否有控制错误的风机
+      for (let v in msg.data) {
+        let val = msg.data[v];
+        if (val.errorCode > 0) {
+          iserror = true;
+          mss += `${val.windturbineId}  ${
+            this.controlErorCodes[val.errorCode]
+          }\n`;
+        }
+      }
+      let tp = iserror ? "warning" : "success";
+      // if (!iserror) {
+      //   mss = "控制成功";
+      // }
+
+      this.$notify({
+        title: "控制",
+        message: mss,
+        type: tp,
+        position: "bottom-right",
+        offset: 60,
+        duration: 3000,
+      });
+    },
+    /* 控制失败 */
+    controlError(err) {
+      this.$notify({
+        title: "控制出现错误",
+        message: err.message,
+        type: "warning",
+        position: "bottom-right",
+        offset: 60,
+        duration: 3000,
+      });
+    },
+    getExcelColumn(n) {
+      var ordA = 65;
+      var ordZ = 90;
+      var len = ordZ - ordA + 1;
+      var s = "";
+      while (n > 0) {
+        var rem = (n - 1) % len;
+        s = String.fromCharCode(rem + ordA) + s;
+        n = (n - rem - 1) / len;
+      }
+      return s;
+    },
+  },
+};
+</script>
+<style lang="less" scoped>
+.TemperatureMatrix {
+  padding-left: 3%;
+  padding-top: 2%;
+  .body {
+    background-color: #000000;
+    height: 89vh;
+    width: 102%;
+    margin-left: -1%;
+    margin-top: -40px;
+  }
+
+  .title {
+    display: flex;
+    flex-direction: row;
+    align-items: center;
+    margin-left: 1vw;
+    padding-top: 8px;
+    position: absolute;
+    width: 100%;
+    background-color: #000000;
+    padding-bottom: 10px;
+
+    .title-item {
+      background-color: #242424;
+      border-radius: 4px;
+      padding: 8px 27px 7px 25px;
+      font-size: 14px;
+      color: #b4bdc0;
+      margin-right: 10px;
+    }
+
+    .title-onItem {
+      background-color: rgba(37, 116, 219, 1);
+      border-radius: 4px;
+      padding: 8px 27px 7px 25px;
+      font-size: 14px;
+      color: #b4bdc0;
+      margin-right: 10px;
+    }
+  }
+
+  .tables {
+    margin-left: 1vw;
+    padding-top: 50px;
+  }
+
+  .el-table {
+    position: static;
+    background-color: #141414;
+    border: 1px solid #000000;
+  }
+
+  .select {
+    display: flex;
+    flex-direction: row;
+    align-items: center;
+    margin-left: 30px;
+
+    .date {
+      margin-right: 10px;
+      font-size: 16px;
+      color: #ffffff;
+    }
+  }
+
+  .overModle {
+    background-color: rgba(186, 50, 55, 1);
+    position: absolute;
+    width: 100%;
+    height: 100%;
+    top: 0;
+    left: 0;
+    display: flex;
+    align-items: center;
+    justify-content: center;
+  }
+
+  .crossModle {
+    background-color: #e0861a;
+    position: absolute;
+    width: 100%;
+    height: 100%;
+    top: 0;
+    left: 0;
+    display: flex;
+    align-items: center;
+    justify-content: center;
+  }
+
+  .badModle {
+    background-color: #999999;
+    position: absolute;
+    width: 100%;
+    height: 100%;
+    top: 0;
+    left: 0;
+    display: flex;
+    align-items: center;
+    justify-content: center;
+  }
+
+  .bpickers {
+    display: flex;
+    flex-direction: row;
+    align-items: center;
+    justify-content: space-between;
+    margin-left: 20px;
+  }
+}
+</style>

+ 270 - 0
src/components/temperatureMatrixNoDiaJson.json

@@ -0,0 +1,270 @@
+{
+    "column": [
+        {
+            "name": "模拟数据1",
+            "children": [
+                {
+                    "name": "模拟数据1",
+                    "keyname": "ces"
+                },
+                {
+                    "name": "模拟数据1",
+                    "keyname": "ces"
+                }
+            ]
+        },
+        {
+            "name": "模拟数据2",
+            "children": [
+                {
+                    "name": "模拟数据2",
+                    "keyname": "ces"
+                },
+                {
+                    "name": "模拟数据2",
+                    "keyname": "ces"
+                }
+            ]
+        },
+        {
+            "name": "模拟数据3",
+            "children": [
+                {
+                    "name": "模拟数据3",
+                    "keyname": "ces"
+                },
+                {
+                    "name": "模拟数据3",
+                    "keyname": "ces"
+                }
+            ]
+        },
+        {
+            "name": "模拟数据4",
+            "children": [
+                {
+                    "name": "模拟数据4",
+                    "keyname": "ces"
+                },
+                {
+                    "name": "模拟数据4",
+                    "keyname": "ces"
+                }
+            ]
+        },
+        {
+            "name": "模拟数据5",
+            "children": [
+                {
+                    "name": "模拟数据5",
+                    "keyname": "ces"
+                },
+                {
+                    "name": "模拟数据5",
+                    "keyname": "ces"
+                }
+            ]
+        },
+        {
+            "name": "模拟数据6",
+            "children": [
+                {
+                    "name": "模拟数据6",
+                    "keyname": "ces"
+                },
+                {
+                    "name": "模拟数据6",
+                    "keyname": "ces"
+                }
+            ]
+        },
+        {
+            "name": "模拟数据7",
+            "children": [
+                {
+                    "name": "模拟数据7",
+                    "keyname": "ces"
+                },
+                {
+                    "name": "模拟数据7",
+                    "keyname": "ces"
+                }
+            ]
+        },
+        {
+            "name": "模拟数据8",
+            "children": [
+                {
+                    "name": "模拟数据8",
+                    "keyname": "ces"
+                },
+                {
+                    "name": "模拟数据8",
+                    "keyname": "ces"
+                }
+            ]
+        },
+        {
+            "name": "模拟数据9",
+            "children": [
+                {
+                    "name": "模拟数据9",
+                    "keyname": "ces"
+                },
+                {
+                    "name": "模拟数据9",
+                    "keyname": "ces"
+                }
+            ]
+        },
+        {
+            "name": "模拟数据10",
+            "children": [
+                {
+                    "name": "模拟数据10",
+                    "keyname": "ces"
+                },
+                {
+                    "name": "模拟数据10",
+                    "keyname": "ces"
+                }
+            ]
+        },
+        {
+            "name": "模拟数据11",
+            "children": [
+                {
+                    "name": "模拟数据11",
+                    "keyname": "ces"
+                },
+                {
+                    "name": "模拟数据11",
+                    "keyname": "ces"
+                }
+            ]
+        },
+        {
+            "name": "模拟数据12",
+            "children": [
+                {
+                    "name": "模拟数据12",
+                    "keyname": "ces"
+                },
+                {
+                    "name": "模拟数据12",
+                    "keyname": "ces"
+                }
+            ]
+        }
+    ],
+    "data": [
+        {
+            "code": "风机_A01",
+            "status": 2,
+            "windSpeed": 15,
+            "power": 14232,
+            "rollSpeed": 12,
+            "ces": "测试",
+            "cesStatus": "OverLimit"
+        },
+        {
+            "code": "风机_A02",
+            "status": 3,
+            "windSpeed": 15,
+            "power": 14232,
+            "rollSpeed": 12,
+            "ces": "测试",
+            "cesStatus": "OverLimit"
+        },
+        {
+            "code": "风机_A03",
+            "status": 4,
+            "windSpeed": 15,
+            "power": 14232,
+            "rollSpeed": 12,
+            "ces": "测试",
+            "cesStatus": "BadPoint"
+        },
+        {
+            "code": "风机_A04",
+            "status": 6,
+            "windSpeed": 15,
+            "power": 14232,
+            "rollSpeed": 12,
+            "ces": "测试",
+            "cesStatus": "OverLimit"
+        },
+        {
+            "code": "风机_A05",
+            "status": 5,
+            "windSpeed": 15,
+            "power": 14232,
+            "rollSpeed": 12,
+            "ces": "测试",
+            "cesStatus": "CrossingLimit"
+        },
+        {
+            "code": "风机_A06",
+            "status": 1,
+            "windSpeed": 15,
+            "power": 14232,
+            "rollSpeed": 12,
+            "ces": "测试",
+            "cesStatus": "OverLimit"
+        },
+        {
+            "code": "风机_A07",
+            "status": 2,
+            "windSpeed": 15,
+            "power": 14232,
+            "rollSpeed": 12,
+            "ces": "测试",
+            "cesStatus": "OverLimit"
+        },
+        {
+            "code": "风机_A08",
+            "status": 3,
+            "windSpeed": 15,
+            "power": 14232,
+            "rollSpeed": 12,
+            "ces": "测试",
+            "cesStatus": "OverLimit"
+        },
+        {
+            "code": "风机_A09",
+            "status": 4,
+            "windSpeed": 15,
+            "power": 14232,
+            "rollSpeed": 12,
+            "ces": "测试",
+            "cesStatus": "BadPoint"
+        },
+        {
+            "code": "风机_A10",
+            "status": 6,
+            "windSpeed": 15,
+            "power": 14232,
+            "rollSpeed": 12,
+            "ces": "测试",
+            "cesStatus": "OverLimit"
+        },
+        {
+            "code": "风机_A11",
+            "status": 5,
+            "windSpeed": 15,
+            "power": 14232,
+            "rollSpeed": 12,
+            "ces": "测试",
+            "cesStatus": "CrossingLimit"
+        },
+        {
+            "code": "风机_A12",
+            "status": 1,
+            "windSpeed": 15,
+            "power": 14232,
+            "rollSpeed": 12,
+            "ces": "测试",
+            "cesStatus": "OverLimit"
+        }
+    ]
+}

+ 71 - 0
src/components/warning/dataJson.json

@@ -0,0 +1,71 @@
+{
+    "data": [
+        {
+            "lastUpdateTime": "2025-05-21",
+            "objectName": "风场_A01",
+            "alertText": "测试数据",
+            "isSelected": "是"
+        },
+        {
+            "lastUpdateTime": "2025-05-21",
+            "objectName": "风场_A02",
+            "alertText": "测试数据",
+            "isSelected": "是"
+        },
+        {
+            "lastUpdateTime": "2025-05-21",
+            "objectName": "风场_A03",
+            "alertText": "测试数据",
+            "isSelected": "是"
+        },
+        {
+            "lastUpdateTime": "2025-05-21",
+            "objectName": "风场_A04",
+            "alertText": "测试数据",
+            "isSelected": "是"
+        },
+        {
+            "lastUpdateTime": "2025-05-21",
+            "objectName": "风场_A05",
+            "alertText": "测试数据",
+            "isSelected": "是"
+        }
+    ],
+    "recordData": [
+        {
+            "faultTime": "2025-05-22",
+            "categoryName": "模拟故障",
+            "showName": "模拟数据",
+            "category1": "SYZ",
+            "alertText": "测试"
+        },
+        {
+            "faultTime": "2025-05-22",
+            "categoryName": "模拟故障",
+            "showName": "模拟数据",
+            "category1": "SYZ",
+            "alertText": "测试"
+        },
+        {
+            "faultTime": "2025-05-22",
+            "categoryName": "模拟故障",
+            "showName": "模拟数据",
+            "category1": "SYZ",
+            "alertText": "测试"
+        },
+        {
+            "faultTime": "2025-05-22",
+            "categoryName": "模拟故障",
+            "showName": "模拟数据",
+            "category1": "SYZ",
+            "alertText": "测试"
+        },
+        {
+            "faultTime": "2025-05-22",
+            "categoryName": "模拟故障",
+            "showName": "模拟数据",
+            "category1": "SYZ",
+            "alertText": "测试"
+        }
+    ]
+}

+ 10 - 10
src/components/warning/warningCard.vue

@@ -74,6 +74,7 @@ import BackgroundData from "utils/BackgroundData";
 import api from "api/index";
 import StationSvgDetailPages from "../stationSvgDetailPages.vue";
 
+import dataJson from "./dataJson.json";
 export default {
   name: "AlarmArea",
   components: {
@@ -82,8 +83,9 @@ export default {
     StationSvgDetailPages,
   },
   created() {
-    this.faultMessage();
-    this.intervals = setInterval(this.faultMessage, 15000);
+    // this.faultMessage();
+    // this.intervals = setInterval(this.faultMessage, 15000);
+    this.values = dataJson.data;
   },
   mounted() {},
   props: {},
@@ -107,7 +109,7 @@ export default {
           let val = res.data;
           if (Object.keys(val).length > 0) {
             let syzAlarmArray = this.$store.state.syzAlarmArray || [];
-            console.log('syzAlarmRank', this.$store.state.syzAlarmRank)
+            console.log("syzAlarmRank", this.$store.state.syzAlarmRank);
             val.forEach((ele) => {
               if (
                 ele.category1 === "SYZ" &&
@@ -161,7 +163,6 @@ export default {
               if (it.isSelected) {
                 sleected[it.id] = 0;
               }
-             
             });
             this.values = new Array();
             for (let v in val) {
@@ -178,7 +179,6 @@ export default {
               if (vl.category1 !== "GF" && vl.objectId.indexOf("GDC") < 0) {
                 this.values.push(vl);
               }
-               
             }
 
             let fjAlarArray = [];
@@ -194,11 +194,11 @@ export default {
               }
             });
             this.values.forEach((ele) => {
-               if(item.category1 === "FJ"){
-              ele.objectName = ele.windturbineName
-            }else{
-              ele.objectName = ele.stationName
-            }
+              if (item.category1 === "FJ") {
+                ele.objectName = ele.windturbineName;
+              } else {
+                ele.objectName = ele.stationName;
+              }
             });
 
             if (syzAlarmItem) {

+ 34 - 32
src/components/warning/warningRecords.vue

@@ -39,7 +39,11 @@
           </el-option>
         </el-select>
         <div class="showTitle">搜索:</div>
-        <el-input class="inputs" placeholder="请输入" v-model="filterText"></el-input>
+        <el-input
+          class="inputs"
+          placeholder="请输入"
+          v-model="filterText"
+        ></el-input>
         <div class="buttons" @click="search()">查询</div>
       </div>
       <div class="warningList">
@@ -71,7 +75,7 @@
             width="280"
           >
           </el-table-column>
-          
+
           <el-table-column
             prop="categoryName"
             align="center"
@@ -87,8 +91,8 @@
             width="150"
           >
           </el-table-column>
-          
-          <el-table-column width="80"  align="end">
+
+          <el-table-column width="80" align="end">
             <template #default="scope">
               <span>
                 <img
@@ -100,32 +104,29 @@
               </span>
             </template>
           </el-table-column>
-          <el-table-column
-            prop="alertText"
-            align="center"
-            label="描述"
-          >
+          <el-table-column prop="alertText" align="center" label="描述">
           </el-table-column>
         </el-table>
-        
       </div>
       <div class="paginations">
-          <el-pagination
-            background
-            layout="prev, pager, next"
-            :total="total"
-            @current-change="handleCurrentChange"
-            :hide-on-single-page="true"
-            :page-size="currentPage"
-            >
-          </el-pagination>
-        </div>
+        <el-pagination
+          background
+          layout="prev, pager, next"
+          :total="total"
+          @current-change="handleCurrentChange"
+          :hide-on-single-page="true"
+          :page-size="currentPage"
+        >
+        </el-pagination>
+      </div>
     </div>
   </el-dialog>
 </template>
 <script>
 import dayjs from "dayjs";
 import api from "api/index";
+
+import dataJson from "./dataJson.json";
 export default {
   data() {
     return {
@@ -140,7 +141,9 @@ export default {
       stationList: [],
     };
   },
-  updated() {},
+  mounted() {
+    this.recordData = dataJson.recordData;
+  },
   methods: {
     faultHistory() {
       api
@@ -153,16 +156,16 @@ export default {
           pageIndex: this.pageIndex,
         })
         .then((res) => {
-          res.data.records.forEach(item =>{
-            if(item.category1 === "FJ"){
-              item.showName = item.windturbineName
-            }else{
-              item.showName = item.stationName
+          res.data.records.forEach((item) => {
+            if (item.category1 === "FJ") {
+              item.showName = item.windturbineName;
+            } else {
+              item.showName = item.stationName;
             }
-          })
+          });
           this.recordData = res.data.records;
-          console.log('988',this.recordData);
-          this.total = res.data.total
+          console.log("988", this.recordData);
+          this.total = res.data.total;
         });
     },
     changes() {
@@ -183,7 +186,7 @@ export default {
       }
       this.chooseTime = this.timeValue;
       this.faultHistory();
-      this.stationList = this.$store.state.stationList
+      this.stationList = this.$store.state.stationList;
       console.log(this.stationList);
     },
     closed() {
@@ -229,7 +232,7 @@ export default {
   width: 174px !important;
   margin-right: 20px;
 }
-.showTitle{
+.showTitle {
   margin-left: 20px;
   margin-right: 10px;
   color: #ffffff;
@@ -261,5 +264,4 @@ export default {
 .el-table::before {
   width: 0;
 }
-
 </style>

+ 89 - 0
src/components/windturbinJsondata.json

@@ -0,0 +1,89 @@
+{
+    "baseDate": {
+        "windSpeed": {
+            "name": "风速",
+            "value": 15,
+            "unit": "m/s"
+        },
+        "power": {
+            "name": "功率",
+            "value": 24312,
+            "unit": "MW"
+        },
+        "generatorSpeed": {
+            "name": "实际风速",
+            "value": 19,
+            "unit": "m/s"
+        }
+    },
+    "dataValues": {
+        "score": 153423,
+        "resourceLevel": 72651,
+        "status": "待机",
+        "faultStatus": true
+    },
+    "recordData": [
+        {
+            "time": "2025-05-22",
+            "controls": "测试",
+            "result": "成功",
+            "userName": "admin"
+        },
+        {
+            "time": "2025-05-22",
+            "controls": "测试",
+            "result": "成功",
+            "userName": "admin"
+        },
+        {
+            "time": "2025-05-22",
+            "controls": "测试",
+            "result": "成功",
+            "userName": "admin"
+        }
+    ],
+    "showData": [
+        {
+            "name": "部件1",
+            "value": 123,
+            "unit": "MW"
+        },
+        {
+            "name": "部件2",
+            "value": 123,
+            "unit": "MW"
+        },
+        {
+            "name": "部件3",
+            "value": 123,
+            "unit": "MW"
+        },
+        {
+            "name": "部件4",
+            "value": 123,
+            "unit": "MW"
+        },
+        {
+            "name": "部件5",
+            "value": 123,
+            "unit": "MW"
+        }
+    ],
+    "warning": [
+        {
+            "lastUpdateTime": "2025-05-22",
+            "alertText": "故障信息1",
+            "rank": "中级"
+        },
+        {
+            "lastUpdateTime": "2025-05-22",
+            "alertText": "故障信息1",
+            "rank": "中级"
+        },
+        {
+            "lastUpdateTime": "2025-05-22",
+            "alertText": "故障信息1",
+            "rank": "中级"
+        }
+    ]
+}

+ 23 - 13
src/router/index.js

@@ -1,22 +1,32 @@
-import { createRouter, createWebHashHistory  } from 'vue-router'
+import { createRouter, createWebHashHistory } from 'vue-router'
 import CenterPage from 'views/CenterPage.vue'
 
 const routes = [
-  {
-    path: '/',
-    name: 'CenterPage',
-    component: CenterPage
-  },
-  {
-    path: '/ManualPage',
-    name: 'ManualPage',
-    component: () => import( 'views/ManualPage.vue')
-  }
+    {
+        path: '/',
+        name: 'CenterPage',
+        component: CenterPage
+    },
+    {
+        path: '/AllMatrices',
+        name: 'AllMatrices',
+        component: () => import('components/allMatricesNoDia.vue')
+    },
+    {
+        path: '/TemperatureMatrix',
+        name: 'TemperatureMatrix',
+        component: () => import('components/temperatureMatrixNoDia.vue')
+    },
+    {
+        path: '/ManualPage',
+        name: 'ManualPage',
+        component: () => import('views/ManualPage.vue')
+    }
 ]
 
 const router = createRouter({
-  history: createWebHashHistory(),
-  routes
+    history: createWebHashHistory(),
+    routes
 })
 
 export default router

+ 26 - 19
src/views/CenterPage.vue

@@ -21,23 +21,27 @@
             </el-col>
           </el-row>
         </el-col>
-        <!-- <el-col :span="8">
-					<el-row>
-						<el-col :span="23">
-							<ModeControl ref="modeControl" :current="current" @clicks="handleClick"></ModeControl>
-						</el-col>
-					</el-row>
-					<el-row>
-						<el-col :span="23">
-							<FocusArea />
-						</el-col>
-					</el-row>
-					<el-row>
-						<el-col :span="23">
-							<WarningArea></WarningArea>
-						</el-col>
-					</el-row>
-				</el-col> -->
+        <el-col :span="8">
+          <el-row>
+            <el-col :span="23">
+              <ModeControl
+                ref="modeControl"
+                :current="current"
+                @clicks="handleClick"
+              ></ModeControl>
+            </el-col>
+          </el-row>
+          <el-row>
+            <el-col :span="23">
+              <FocusArea />
+            </el-col>
+          </el-row>
+          <el-row>
+            <el-col :span="23">
+              <WarningArea></WarningArea>
+            </el-col>
+          </el-row>
+        </el-col>
       </el-row>
       <!-- <WindturbineDetailPages v-model="dialogVisible"></WindturbineDetailPages> -->
     </div>
@@ -73,9 +77,12 @@ export default {
     };
   },
   mounted() {
-    let start = 86400000 - (new Date().getTime() - new Date(new Date().toDateString() + ' 3:00').getTime())
+    let start =
+      86400000 -
+      (new Date().getTime() -
+        new Date(new Date().toDateString() + " 3:00").getTime());
     setTimeout(() => {
-        this.$router.go(0)
+      this.$router.go(0);
     }, start);
     const { current } = this.$route.query;
     current ? this.$store.commit("current", Number(current)) : "";