Parcourir la source

基于管控一体化的风电场建设及应用,基于晋能sis增加一套蓝色样式

SunZehao il y a 9 mois
Parent
commit
4e639ea788
64 fichiers modifiés avec 93685 ajouts et 1537 suppressions
  1. BIN
      src/assets/home/fc_b_1.png
  2. BIN
      src/assets/home/fc_b_2.png
  3. BIN
      src/assets/home/gf_b_1.png
  4. BIN
      src/assets/home/gf_b_2.png
  5. BIN
      src/assets/imgs/power-bg2.png
  6. BIN
      src/assets/imgs/syz-bg1.png
  7. BIN
      src/assets/mapz/dt_blue.png
  8. BIN
      src/assets/mapz/nh_b.png
  9. 14 3
      src/components/headerNav/index.vue
  10. 13 2
      src/components/headerNavSta/index.vue
  11. 105 24
      src/views/Home/components/map.vue
  12. 39 10
      src/views/Home/components/map/svg-map-nx.vue
  13. 2928 0
      src/views/Home/components/map_blue.vue
  14. 70 0
      src/views/Home/components/mapdataJson.json
  15. 1180 1093
      src/views/Home/index.vue
  16. 1551 18
      src/views/IntegratedAlarm/alarmConfig/customConfig/index.vue
  17. 582 3
      src/views/IntegratedAlarm/alarmConfig/historyConfig/index.vue
  18. 303 3
      src/views/IntegratedAlarm/alarmConfig/logs/index.vue
  19. 73 5
      src/views/IntegratedAlarm/deviceConfig/components/custom.vue
  20. 592 2
      src/views/IntegratedAlarm/deviceConfig/components/faultmode.vue
  21. 3 3
      src/views/IntegratedAlarm/deviceConfig/components/message.vue
  22. 480 4
      src/views/IntegratedAlarm/deviceConfig/components/windturbine.vue
  23. 385 4
      src/views/IntegratedAlarm/deviceConfig/components/ycpoint.vue
  24. 385 4
      src/views/IntegratedAlarm/deviceConfig/components/yxpoint.vue
  25. 4097 7
      src/views/IntegratedAlarm/deviceConfig/index.vue
  26. 731 0
      src/views/IntegratedAlarm/reliability/customAnalyse/dataJson.json
  27. 282 80
      src/views/IntegratedAlarm/reliability/customAnalyse/index.vue
  28. 731 0
      src/views/IntegratedAlarm/reliability/historyAnalyse/dataJson.json
  29. 282 80
      src/views/IntegratedAlarm/reliability/historyAnalyse/index.vue
  30. 17 2
      src/views/IntegratedAlarm/safe/components/safecomponent.vue
  31. 75 29
      src/views/IntegratedAlarm/safe/customWarning/index.vue
  32. 24 8
      src/views/IntegratedAlarm/safe/dataSearch/index.vue
  33. 80 34
      src/views/IntegratedAlarm/safe/historyWarning/index.vue
  34. 41 23
      src/views/IntegratedAlarm/safe/stopQuery/index.vue
  35. 39 3
      src/views/economicsOperation/comprehensiveControl/maintenanceKPI/index.vue
  36. 39 3
      src/views/economicsOperation/comprehensiveControl/runningKPI/index.vue
  37. 60 3
      src/views/economicsOperation/comprehensiveControl/stationControlKPI/index.vue
  38. 16 3
      src/views/economicsOperation/photovoltaicAnalyse/lslfx/index.vue
  39. 1722 0
      src/views/economicsOperation/photovoltaicAnalyse/performanceEvaluation/dataJson.json
  40. 10 2
      src/views/economicsOperation/photovoltaicAnalyse/performanceEvaluation/index.vue
  41. 1 1
      src/views/economicsOperation/photovoltaicAnalyse/powerAnalyse/components/table.vue
  42. 579 0
      src/views/economicsOperation/photovoltaicAnalyse/powerAnalyse/dataJson.json
  43. 15 6
      src/views/economicsOperation/photovoltaicAnalyse/powerAnalyse/index.vue
  44. 70882 0
      src/views/economicsOperation/photovoltaicAnalyse/powerHotAnalyse/dataJson.json
  45. 9 2
      src/views/economicsOperation/photovoltaicAnalyse/powerHotAnalyse/index.vue
  46. 23 3
      src/views/economicsOperation/photovoltaicAnalyse/prAnalyse/index.vue
  47. 1722 0
      src/views/economicsOperation/photovoltaicAnalyse/stateTransition/dataJson.json
  48. 10 2
      src/views/economicsOperation/photovoltaicAnalyse/stateTransition/index.vue
  49. 1722 0
      src/views/economicsOperation/photovoltaicAnalyse/timeTransition/dataJson.json
  50. 10 2
      src/views/economicsOperation/photovoltaicAnalyse/timeTransition/index.vue
  51. 121 0
      src/views/stateMonitor/DetailMatrix/dataJson.json
  52. 33 11
      src/views/stateMonitor/DetailMatrix/index.vue
  53. 100 0
      src/views/stateMonitor/LightMatrix/dataJson.json
  54. 19 7
      src/views/stateMonitor/LightMatrix/index.vue
  55. 17 2
      src/views/stateMonitor/alarmCenter/commonAlarm/index.vue
  56. 585 0
      src/views/stateMonitor/factoryMonitor/photovoltaic/lighthome/dataJson.json
  57. 67 10
      src/views/stateMonitor/factoryMonitor/photovoltaic/lighthome/index.vue
  58. 585 0
      src/views/stateMonitor/factoryMonitor/windPowerPlant/windhome/dataJson.json
  59. 66 11
      src/views/stateMonitor/factoryMonitor/windPowerPlant/windhome/index.vue
  60. 70 8
      src/views/stateMonitor/focus/syzDetails.vue
  61. 59 0
      src/views/stateMonitor/powerPredictMatrix/dataJson.json
  62. 19 10
      src/views/stateMonitor/powerPredictMatrix/index.vue
  63. 20 6
      src/views/stateMonitor/zhzb/zhzb.vue
  64. 2 1
      vue.config.js

BIN
src/assets/home/fc_b_1.png


BIN
src/assets/home/fc_b_2.png


BIN
src/assets/home/gf_b_1.png


BIN
src/assets/home/gf_b_2.png


BIN
src/assets/imgs/power-bg2.png


BIN
src/assets/imgs/syz-bg1.png


BIN
src/assets/mapz/dt_blue.png


BIN
src/assets/mapz/nh_b.png


+ 14 - 3
src/components/headerNav/index.vue

@@ -3,6 +3,7 @@
     <div class="tab-box">
       <div
         class="tab-item"
+         :data-type="$store.state.moreSty"
         v-for="(tab, index) of tabs"
         :key="index"
         :class="{ active1: activeTab == tab.id }"
@@ -173,6 +174,18 @@ export default {
   z-index: 2;
   display: flex;
 
+    .tab-item[data-type~="greenSty"] {
+        &.active1 {
+            color: @green;
+            background: rgba(84, 183, 90, 0.16);
+        }
+    }
+    .tab-item[data-type~="blueSty"] {
+        &.active1 {
+            color: @darkBlue !important;
+            background: rgba(84, 130, 183, 0.16);
+        }
+    }
   .tab-item {
     display: flex;
     align-items: center;
@@ -184,9 +197,7 @@ export default {
     margin-right: 5px;
 
     &.active1 {
-      color: @green;
       position: relative;
-      background: rgba(84, 183, 90, 0.16);
       border-radius: 16px;
 
       &::after {
@@ -214,7 +225,7 @@ export default {
   z-index: 5;
   .active1 {
     // background: rgba(84, 183, 90, 0.4);
-    color: #05bb4c;
+    // color: #05bb4c;
   }
   div {
     display: flex;

+ 13 - 2
src/components/headerNavSta/index.vue

@@ -3,6 +3,7 @@
     <div class="tab-box">
       <div
         class="tab-item"
+        :data-type="$store.state.moreSty"
         v-for="(tab, index) of tabs"
         :key="index"
         :class="{ active1: activeTab == tab.id }"
@@ -173,6 +174,18 @@ export default {
   z-index: 2;
   display: flex;
 
+.tab-item[data-type~="greenSty"] {
+        &.active1 {
+            color: @green;
+            background: rgba(84, 183, 90, 0.16);
+        }
+    }
+    .tab-item[data-type~="blueSty"] {
+        &.active1 {
+            color: @darkBlue !important;
+            background: rgba(84, 130, 183, 0.16);
+        }
+    }
   .tab-item {
     display: flex;
     align-items: center;
@@ -184,9 +197,7 @@ export default {
     margin-right: 5px;
 
     &.active1 {
-      color: @green;
       position: relative;
-      background: rgba(84, 183, 90, 0.16);
       border-radius: 16px;
 
       &::after {

+ 105 - 24
src/views/Home/components/map.vue

@@ -85,7 +85,8 @@
         <ul>
           <li v-show="tabShow == -1 || tabShow == 0">
             <div class="imgs">
-              <img src="@/assets/home/fc_1.png" alt="" />
+              <img src="@/assets/home/fc_1.png" alt="" v-if="$store.state.moreSty === 'greenSty'" />
+              <img src="@/assets/home/fc_b_1.png" alt="" v-else />
             </div>
             <p class="qty_tit">
               风场数量
@@ -375,7 +376,7 @@
           $store.state.themeName === 'light' ? 'new-home-light' : 'new-home'
         "
       >
-        <div class="security-day">
+        <div class="security-day" :data-type="$store.state.moreSty">
           <div v-if="activeTab == 0" class="text">清洁能源产业总装机容量:</div>
           <div v-if="activeTab == -1" class="text">
             清洁能源产业风电总装机容量:
@@ -425,7 +426,7 @@
           class="energy-system-box box1"
           :class="activeTab == -1 || activeTab == -2 ? 'piggy-tab-width' : ''"
         >
-          <div class="energy-system-content clearfix">
+          <div class="energy-system-content clearfix" :data-type="$store.state.moreSty">
             <div class="title">
               <span class="title-name">清洁能源公司</span>
               <span class="title-all-title">总装机容量 :</span>
@@ -447,7 +448,8 @@
             >
               <div class="img-num clearfix">
                 <div class="img float-left">
-                  <img src="@/assets/home/fc_1.png" alt="" />
+                    <img src="@/assets/home/fc_1.png" alt="" v-if="$store.state.moreSty === 'greenSty'" />
+                    <img src="@/assets/home/fc_b_1.png" alt="" v-else />
                 </div>
                 <div class="num float-left">
                   <span>风电场数量</span> <br />
@@ -487,7 +489,8 @@
             >
               <div class="img-num clearfix">
                 <div class="img float-left">
-                  <img src="@/assets/home/gf_1.png" alt="" />
+                  <img src="@/assets/home/gf_1.png" alt="" v-if="$store.state.moreSty === 'greenSty'" />
+              <img src="@/assets/home/gf_b_1.png" alt="" v-else />
                 </div>
                 <div class="num float-left">
                   <span>光伏电站数量</span> <br />
@@ -537,7 +540,7 @@
           class="energy-system-box box2"
           :class="activeTab == -1 || activeTab == -2 ? 'piggy-tab-width' : ''"
         >
-          <div class="energy-system-content clearfix">
+          <div class="energy-system-content clearfix" :data-type="$store.state.moreSty">
             <div class="title">
               <span class="title-name">系统接入情况</span>
               <span class="title-all-title">总装机容量 :</span>
@@ -560,7 +563,8 @@
               <div class="img-num clearfix">
                 <div>
                   <div class="img float-left">
-                    <img src="../../../assets/home/fc_1.png" alt="" />
+                    <img src="@/assets/home/fc_1.png" alt="" v-if="$store.state.moreSty === 'greenSty'" />
+              <img src="@/assets/home/fc_b_1.png" alt="" v-else />
                   </div>
                   <div class="num float-left">
                     <span>风电场数量</span> <br />
@@ -601,7 +605,8 @@
             >
               <div class="img-num clearfix">
                 <div class="img float-left">
-                  <img src="../../../assets/home/gf_1.png" alt="" />
+                  <img src="@/assets/home/gf_1.png" alt="" v-if="$store.state.moreSty === 'greenSty'" />
+              <img src="@/assets/home/gf_b_1.png" alt="" v-else />
                 </div>
                 <div class="num float-left">
                   <span>光伏电站数量</span> <br />
@@ -681,7 +686,7 @@
               </div>
               <div class="save-item">
                 <div class="kind">
-                  <div class="jnjp-icon1 svg-icon svg-icon-green">
+                  <div class=" svg-icon svg-icon-green co2">
                     <svg-icon class="" svgid="svg-co2" />
                   </div>
                 </div>
@@ -694,7 +699,7 @@
               </div>
               <div class="save-item">
                 <div class="kind">
-                  <div class="jnjp-icon1 svg-icon svg-icon-green">
+                  <div class=" svg-icon svg-icon-green so2">
                     <svg-icon class="" svgid="svg-so2" />
                   </div>
                 </div>
@@ -850,7 +855,8 @@
             <div class="infos">
               <div class="titles">
                 <div class="amount">
-                  <div class="icon fengji-icon svg-icon svg-icon-white"></div>
+                  <div class="icon fengji-icon svg-icon svg-icon-white"
+                   :class="$store.state.moreSty === 'greenSty' ? 'fengji-icon-box-green' : 'fengji-icon-box-blue'" ></div>
                   <img
                     class="amount-image"
                     src="@/assets/png/wind.png"
@@ -965,7 +971,8 @@
             <div class="infos">
               <div class="titles">
                 <div class="amount">
-                  <div class="icon fengji-icon svg-icon svg-icon-white"></div>
+                  <div class="icon fengji-icon svg-icon svg-icon-white"
+                  :class="$store.state.moreSty === 'greenSty' ? 'fengji-icon-box-green' : 'fengji-icon-box-blue'"></div>
                   <img
                     class="amount-image"
                     src="@/assets/png/sy-sun.png"
@@ -1329,6 +1336,7 @@ import {
 import dayjs from "dayjs";
 import windChartCom from "./windChartCom.vue";
 import BarCharts from "@/views/Home/components/barCharts.vue";
+import dataJson from "./mapdataJson.json"
 export default {
   // 名称
   name: "Map",
@@ -1348,7 +1356,6 @@ export default {
     windChartCom,
     BarCharts,
   },
-  mounted() {},
   // 数据
   data() {
     return {
@@ -1437,6 +1444,10 @@ export default {
     onEnter: null,
     onBack: null,
   },
+  mounted() {
+    this.StationinformationData = dataJson.StationinformationData
+    this.powerDataHome = dataJson.powerDataHome
+  },
   // 函数
   methods: {
     //放大24小时功率曲线
@@ -1457,11 +1468,8 @@ export default {
       this.wpId = wpId;
       this.wpIds =
         wpId.includes("FDC") || wpId.includes("GDC") ? wpId : wpId + activeTab;
-      this.requestData();
+    //   this.requestData();
       this.findProjectPlan();
-      //   this.timmer = setInterval(() => {
-      //     this.requestData();
-      //   }, 5000);
 
       this.timmer2 = setInterval(() => {
         this.findProjectPlan(); //发电量
@@ -2529,6 +2537,12 @@ p {
           .kind {
             width: 20px;
             height: 22px;
+            .co2, .so2{
+                svg{
+                    width: 24px;
+                    height: 24px;
+                }
+            }
             .jnjp-icon1 {
               margin-left: -8px;
             }
@@ -2570,6 +2584,37 @@ p {
         &.box3 {
           //   top: 690px;
         }
+        .energy-system-content[data-type~="greenSty"] {
+            .title-all-content {
+                color: @green;
+            }
+            .right-content,
+            .left-content{
+                .img-num {
+                    .num {
+                        span:nth-child(3) {
+                            color: @green;
+                        }
+                    }
+                }
+            }
+        }
+        .energy-system-content[data-type~="blueSty"] {
+            .title-all-content {
+                color: @darkBlue;
+            }
+            
+            .right-content,
+            .left-content{
+                .img-num {
+                    .num {
+                        span:nth-child(3) {
+                            color: @darkBlue;
+                        }
+                    }
+                }
+            }
+        }
         .energy-system-content {
           padding: 5px 5px 15px 5px;
           .title-all {
@@ -2577,7 +2622,6 @@ p {
             margin-bottom: 8px;
           }
           .title-all-content {
-            color: #05bb4c;
             font-weight: bold;
             font-size: 19px;
           }
@@ -2619,7 +2663,6 @@ p {
                 span:nth-child(3) {
                   font-size: 19px;
                   font-weight: bold;
-                  color: #05bb4c;
                   line-height: 27px;
                 }
                 span:nth-child(4) {
@@ -2660,6 +2703,32 @@ p {
         }
       }
 
+        .security-day[data-type~="greenSty"] {
+            .lineBox {
+                .num {
+                color: @green;
+            }
+            }
+            .num {
+                color: @green;
+            }
+            .num1 {
+                color: @green;
+            }
+        }
+        .security-day[data-type~="blueSty"] {
+            .lineBox {
+                .num {
+                color: @darkBlue;
+                }
+            }
+            .num {
+                color: @darkBlue;
+            }
+            .num1 {
+                color: @darkBlue;
+            }
+        }
       .security-day {
         .lineBox {
           display: flex;
@@ -2668,7 +2737,6 @@ p {
           }
           margin: 12px 0 15px;
           .num {
-            color: @green;
             font-size: 16px;
             margin-bottom: 15px;
             margin: 0 7px;
@@ -2684,7 +2752,6 @@ p {
         }
 
         .num {
-          color: @green;
           font-size: 35px;
           margin-top: 12px;
           .unit {
@@ -2705,7 +2772,6 @@ p {
         }
 
         .num1 {
-          color: @green;
           font-size: 24px;
           margin-bottom: 15px;
 
@@ -2720,6 +2786,23 @@ p {
     }
   }
 
+  .security-day[data-type~="greenSty"] {
+    .num {
+        color: @green;
+    }
+    .num1 {
+        color: @green;
+    }
+}
+.security-day[data-type~="blueSty"] {
+    .num {
+        color: @darkBlue;
+    }
+    .num1 {
+        color: @darkBlue;
+    }
+}
+
   .security-day {
     .text {
       font-size: 24px;
@@ -2727,7 +2810,6 @@ p {
     }
 
     .num {
-      color: @green;
       font-size: 50px;
 
       .unit {
@@ -2744,7 +2826,6 @@ p {
     }
 
     .num1 {
-      color: @green;
       font-size: 24px;
       margin-bottom: 15px;
 

Fichier diff supprimé car celui-ci est trop grand
+ 39 - 10
src/views/Home/components/map/svg-map-nx.vue


Fichier diff supprimé car celui-ci est trop grand
+ 2928 - 0
src/views/Home/components/map_blue.vue


+ 70 - 0
src/views/Home/components/mapdataJson.json

@@ -0,0 +1,70 @@
+{
+    "code": 0,
+    "StationinformationData": {
+        "qt": {
+            "zzjrl": 2541,
+            "fdzzjrl": 1245,
+            "gfzzjrl": 1296,
+            "aqts": 1258,
+            "jym": 3514,
+            "jys": 254,
+            "co2": 213,
+            "so2": 218
+        },
+        "cblpoint": {
+            "qjny_zzjrl": 1251,
+            "qjny_fd_zjrl": 2151,
+            "qjny_gf_zjrl": 2511,
+            "qjny_fcts": 123,
+            "qjny_gfts": 456,
+            "jr_zzjrl": 2365,
+            "jr_fd_zjrl": 1234,
+            "jr_gf_zjrl": 1131,
+            "jr_fcts": 23,
+            "jr_fj_ts": 58,
+            "jr_gf_jzts": 32,
+            "jr_gf_zcts": 26,
+            "jr_gfts": 12
+        },
+        "mxztmap": {
+            "fd_djnum": 2,
+            "fd_yxnum": 8,
+            "fd_gznum": 7,
+            "fd_jxnum": 3,
+            "fd_xdnum": 5,
+            "fd_slnum": 1,
+            "fd_lxnum": 8,
+
+            "gf_djnum": 2,
+            "gf_yxnum": 8,
+            "gf_gznum": 7,
+            "gf_jxnum": 3,
+            "gf_xdnum": 5,
+            "gf_slnum": 1,
+            "gf_lxnum": 8
+
+        }
+    },
+    "powerDataHome": [{
+        "title": "实时风速",
+        "value": 8.26,
+        "dialogTitle": "实时风速",
+        "max": 3000,
+        "unit": "m/s"
+      },
+      {
+        "title": "实际功率",
+        "value": 2569.32,
+        "dialogTitle": "实际功率",
+        "max": 3000,
+        "unit": "MW"
+      },
+      {
+        "title": "风能利用率",
+        "value": 268.25,
+        "dialogTitle": "风能利用率",
+        "max": 100,
+        "unit": "%"
+      }
+    ]
+}

Fichier diff supprimé car celui-ci est trop grand
+ 1180 - 1093
src/views/Home/index.vue


Fichier diff supprimé car celui-ci est trop grand
+ 1551 - 18
src/views/IntegratedAlarm/alarmConfig/customConfig/index.vue


+ 582 - 3
src/views/IntegratedAlarm/alarmConfig/historyConfig/index.vue

@@ -89,7 +89,7 @@
       </div>
     </div>
     <div class="table-wrapper">
-      <div class="leftContent">
+      <div class="leftContent" :data-type="$store.state.moreSty">
         <span>{{ pageTitle }}</span>
       </div>
       <el-table
@@ -210,7 +210,581 @@ const query = reactive({
 });
 const state = reactive({
   title: "",
-  tableData: [],
+  tableData: [
+    {
+      id: "1.16E+18",
+      tagId: "NULL",
+      triggerType: 1,
+      deviceId: "NULL",
+      suffix: "1",
+      rank: 3,
+      uniformCode: "BI0001",
+      stationId: "SXJ_KGDL_XWT_FDC_STA",
+      modelId: "SEC-W02B-1250kW",
+      alarmType: "windturbine",
+      deviceType: "windturbine",
+      components: "BJXT",
+      subcomponents: "NULL",
+      description: "变桨主站通讯故障",
+      characteristic: "报警",
+      resetTable: false,
+      enable: true,
+      name: "hmi_error_dword_01.0",
+      nemCode: "142001",
+      faultCause: "NULL",
+      resolvent: "NULL",
+      stationName: "01风电场",
+      componentsName: "变桨系统",
+    },
+    {
+      id: "HY_0001",
+      tagId: "NULL",
+      triggerType: 0,
+      deviceId: "NULL",
+      suffix: null,
+      rank: 3,
+      uniformCode: "BI0001",
+      stationId: "SXJ_KGDL_HSM_FDC_STA",
+      modelId: "/HW3-S2500(121)",
+      alarmType: "windturbine",
+      deviceType: "windturbine",
+      components: "BJXT",
+      subcomponents: "NULL",
+      description: "变桨主站通讯故障",
+      characteristic: "报警",
+      resetTable: false,
+      enable: true,
+      name: "hmi_error_dword_01.0",
+      nemCode: "142001",
+      faultCause: "NULL",
+      resolvent: "NULL",
+      stationName: "02风电场",
+      componentsName: "变桨系统",
+    },
+    {
+      id: "HY_0002",
+      tagId: "NULL",
+      triggerType: 1,
+      deviceId: "NULL",
+      suffix: null,
+      rank: 3,
+      uniformCode: "BI0001",
+      stationId: "SXJ_KGDL_HSM_FDC_STA",
+      modelId: "/HW3-S2500(121)",
+      alarmType: "windturbine",
+      deviceType: "windturbine",
+      components: "BJXT",
+      subcomponents: "NULL",
+      description: "变桨轴1通讯故障",
+      characteristic: "报警",
+      resetTable: false,
+      enable: true,
+      name: "hmi_error_dword_01.1",
+      nemCode: "142011",
+      faultCause:
+        "1.变桨内部通讯线、HARTING 接头、通讯终端电阻故障;2.驱动器故障;3.通讯模块故障",
+      resolvent:
+        "1.检查变桨内部通讯线、HARTING 接头、通讯终端电阻是否正常;2.检查驱动器是否正常;\n3.检查通讯模块是否正常;",
+      stationName: "02风电场",
+      componentsName: "变桨系统",
+    },
+    {
+      id: "HY_0003",
+      tagId: "NULL",
+      triggerType: 2,
+      deviceId: "NULL",
+      suffix: null,
+      rank: 3,
+      uniformCode: "BI0001",
+      stationId: "SXJ_KGDL_HSM_FDC_STA",
+      modelId: "/HW3-S2500(121)",
+      alarmType: "windturbine",
+      deviceType: "windturbine",
+      components: "BJXT",
+      subcomponents: "NULL",
+      description: "变桨轴2通讯故障",
+      characteristic: "报警",
+      resetTable: false,
+      enable: true,
+      name: "hmi_error_dword_01.2",
+      nemCode: "142012",
+      faultCause:
+        "1.变桨内部通讯线、HARTING 接头、通讯终端电阻故障;2.驱动器故障;3.通讯模块故障;",
+      resolvent:
+        "1.检查变桨内部通讯线、HARTING 接头、通讯终端电阻是否正常;2.检查驱动器是否正常;\n3.检查通讯模块是否正常;",
+      stationName: "02风电场",
+      componentsName: "变桨系统",
+    },
+    {
+      id: "HY_0004",
+      tagId: "NULL",
+      triggerType: 3,
+      deviceId: "NULL",
+      suffix: null,
+      rank: 3,
+      uniformCode: "BI0001",
+      stationId: "SXJ_KGDL_HSM_FDC_STA",
+      modelId: "/HW3-S2500(121)",
+      alarmType: "windturbine",
+      deviceType: "windturbine",
+      components: "BJXT",
+      subcomponents: "NULL",
+      description: "变桨轴3通讯故障",
+      characteristic: "报警",
+      resetTable: false,
+      enable: true,
+      name: "hmi_error_dword_01.3",
+      nemCode: "142013",
+      faultCause:
+        "1.变桨内部通讯线、HARTING 接头、通讯终端电阻故障;2.驱动器故障;3.通讯模块故障;",
+      resolvent:
+        "1.检查变桨内部通讯线、HARTING 接头、通讯终端电阻是否正常;2.检查驱动器是否正常;\n3.检查通讯模块是否正常;",
+      stationName: "02风电场",
+      componentsName: "变桨系统",
+    },
+    {
+      id: "HY_0005",
+      tagId: "NULL",
+      triggerType: 4,
+      deviceId: "NULL",
+      suffix: null,
+      rank: 3,
+      uniformCode: "BI0001",
+      stationId: "SXJ_KGDL_HSM_FDC_STA",
+      modelId: "/HW3-S2500(121)",
+      alarmType: "windturbine",
+      deviceType: "windturbine",
+      components: "QT",
+      subcomponents: "NULL",
+      description: "所有从站运行故障",
+      characteristic: "报警",
+      resetTable: false,
+      enable: true,
+      name: "hmi_error_dword_01.4",
+      nemCode: "143001",
+      faultCause: "Ethercat 通讯模块或其线路故障",
+      resolvent: "检查 Ethercat 通讯模块及其线路是否正常",
+      stationName: "02风电场",
+      componentsName: "其他",
+    },
+    {
+      id: "HY_0006",
+      tagId: "NULL",
+      triggerType: 5,
+      deviceId: "NULL",
+      suffix: null,
+      rank: 3,
+      uniformCode: "BI0001",
+      stationId: "SXJ_KGDL_HSM_FDC_STA",
+      modelId: "/HW3-S2500(121)",
+      alarmType: "windturbine",
+      deviceType: "windturbine",
+      components: "QT",
+      subcomponents: "NULL",
+      description: "从站不正常",
+      characteristic: "报警",
+      resetTable: false,
+      enable: true,
+      name: "hmi_error_dword_01.5",
+      nemCode: "143002",
+      faultCause: "NULL",
+      resolvent: "NULL",
+      stationName: "02风电场",
+      componentsName: "其他",
+    },
+    {
+      id: "HY_0007",
+      tagId: "NULL",
+      triggerType: 6,
+      deviceId: "NULL",
+      suffix: null,
+      rank: 3,
+      uniformCode: "BI0001",
+      stationId: "SXJ_KGDL_HSM_FDC_STA",
+      modelId: "/HW3-S2500(121)",
+      alarmType: "windturbine",
+      deviceType: "windturbine",
+      components: "QT",
+      subcomponents: "NULL",
+      description: "从站信号丢失",
+      characteristic: "报警",
+      resetTable: false,
+      enable: true,
+      name: "hmi_error_dword_01.6",
+      nemCode: "143003",
+      faultCause: "Ethercat 通讯模块或其线路故障",
+      resolvent: "检查 Ethercat 通讯模块及其线路是否正常",
+      stationName: "02风电场",
+      componentsName: "其他",
+    },
+    {
+      id: "HY_0008",
+      tagId: "NULL",
+      triggerType: 7,
+      deviceId: "NULL",
+      suffix: null,
+      rank: 3,
+      uniformCode: "BI0001",
+      stationId: "SXJ_KGDL_HSM_FDC_STA",
+      modelId: "/HW3-S2500(121)",
+      alarmType: "windturbine",
+      deviceType: "windturbine",
+      components: "TDG",
+      subcomponents: "NULL",
+      description: "塔底主站通讯故障",
+      characteristic: "报警",
+      resetTable: false,
+      enable: true,
+      name: "hmi_error_dword_01.7",
+      nemCode: "140301",
+      faultCause: "变流器通讯模块或其线路故障",
+      resolvent:
+        "1.检查通讯模块及供电是否正常;2.检查模块拨码、通讯接头拨码、终端电阻、屏蔽线接\n地是否正常;",
+      stationName: "02风电场",
+      componentsName: "塔底柜",
+    },
+    {
+      id: "HY_0009",
+      tagId: "NULL",
+      triggerType: 8,
+      deviceId: "NULL",
+      suffix: null,
+      rank: 3,
+      uniformCode: "BI0001",
+      stationId: "SXJ_KGDL_HSM_FDC_STA",
+      modelId: "/HW3-S2500(121)",
+      alarmType: "windturbine",
+      deviceType: "windturbine",
+      components: "TDG",
+      subcomponents: "NULL",
+      description: "塔底从站通讯故障",
+      characteristic: "报警",
+      resetTable: false,
+      enable: true,
+      name: "hmi_error_dword_01.8",
+      nemCode: "140311",
+      faultCause: "变流器通讯模块或其线路故障",
+      resolvent:
+        "1.检查通讯模块及供电是否正常;2.检查模块拨码、通讯接头拨码、终端电阻、屏蔽线接\n地是否正常;",
+      stationName: "02风电场",
+      componentsName: "塔底柜",
+    },
+    {
+      id: "HY_0010",
+      tagId: "NULL",
+      triggerType: 9,
+      deviceId: "NULL",
+      suffix: null,
+      rank: 3,
+      uniformCode: "BI0001",
+      stationId: "SXJ_KGDL_HSM_FDC_STA",
+      modelId: "/HW3-S2500(121)",
+      alarmType: "windturbine",
+      deviceType: "windturbine",
+      components: "TDG",
+      subcomponents: "NULL",
+      description: "塔底控制柜温度过高",
+      characteristic: "报警",
+      resetTable: false,
+      enable: true,
+      name: "hmi_error_dword_01.9",
+      nemCode: "110101",
+      faultCause: "1.传感器及线路故障;2.温度超过设置值;3.PLC 模块故障",
+      resolvent:
+        "1.检查传感器及线路是否正常;2.检查控制柜温度是否高温,检查温控开关设置值是否正\n常,检查冷却风扇工作是否正常;3.检查 PLC 模块是否正常;",
+      stationName: "02风电场",
+      componentsName: "塔底柜",
+    },
+    {
+      id: "HY_0011",
+      tagId: "NULL",
+      triggerType: 10,
+      deviceId: "NULL",
+      suffix: null,
+      rank: 3,
+      uniformCode: "BI0001",
+      stationId: "SXJ_KGDL_HSM_FDC_STA",
+      modelId: "/HW3-S2500(121)",
+      alarmType: "windturbine",
+      deviceType: "windturbine",
+      components: "TDG",
+      subcomponents: "NULL",
+      description: "塔底控制柜温度过低",
+      characteristic: "报警",
+      resetTable: false,
+      enable: true,
+      name: "hmi_error_dword_01.10",
+      nemCode: "110102",
+      faultCause: "1.传感器及线路故障;2.温度超过设置值;3.PLC 模块故障",
+      resolvent:
+        "1.检查传感器及线路是否正常;2.检查控制柜温控开关设置值是否正常,检查加热器工作\n是否正常,检查控制柜密闭情况是否良好;3.检查 PLC 模块是否正常;",
+      stationName: "02风电场",
+      componentsName: "塔底柜",
+    },
+    {
+      id: "HY_0012",
+      tagId: "NULL",
+      triggerType: 11,
+      deviceId: "NULL",
+      suffix: null,
+      rank: 3,
+      uniformCode: "BI0001",
+      stationId: "SXJ_KGDL_HSM_FDC_STA",
+      modelId: "/HW3-S2500(121)",
+      alarmType: "windturbine",
+      deviceType: "windturbine",
+      components: "TDG",
+      subcomponents: "NULL",
+      description: "塔底控制柜风扇保护",
+      characteristic: "报警",
+      resetTable: false,
+      enable: true,
+      name: "hmi_error_dword_01.11",
+      nemCode: "110103",
+      faultCause:
+        "1.线路短路;2.电机过载;3.断路器、辅助触点或控制回路故障;4.PLC 模块故障;",
+      resolvent:
+        "1.检查动力回路是否正常;2.检查电机绕组;3.检查断路器、辅助触点及控制回路是否正\n常;4.检查 PLC 模块是否正常;",
+      stationName: "02风电场",
+      componentsName: "塔底柜",
+    },
+    {
+      id: "HY_0013",
+      tagId: "NULL",
+      triggerType: 12,
+      deviceId: "NULL",
+      suffix: null,
+      rank: 3,
+      uniformCode: "BI0001",
+      stationId: "SXJ_KGDL_HSM_FDC_STA",
+      modelId: "/HW3-S2500(121)",
+      alarmType: "windturbine",
+      deviceType: "windturbine",
+      components: "TDG",
+      subcomponents: "NULL",
+      description: "塔底温度过高",
+      characteristic: "报警",
+      resetTable: false,
+      enable: true,
+      name: "hmi_error_dword_01.12",
+      nemCode: "110105",
+      faultCause:
+        "1.线路短路;2.电机过载;3.断路器、辅助触点或控制回路故障;4.PLC 模块故障;",
+      resolvent:
+        "1.检查传感器及线路是否正常;2.检查塔底温度是否高温,查找发热源;3.检查 PLC 模块\n是否正常;",
+      stationName: "02风电场",
+      componentsName: "塔底柜",
+    },
+    {
+      id: "HY_0014",
+      tagId: "NULL",
+      triggerType: 13,
+      deviceId: "NULL",
+      suffix: null,
+      rank: 3,
+      uniformCode: "BI0001",
+      stationId: "SXJ_KGDL_HSM_FDC_STA",
+      modelId: "/HW3-S2500(121)",
+      alarmType: "windturbine",
+      deviceType: "windturbine",
+      components: "JC",
+      subcomponents: "NULL",
+      description: "机舱控制柜温度过高",
+      characteristic: "报警",
+      resetTable: false,
+      enable: true,
+      name: "hmi_error_dword_01.13",
+      nemCode: "110110",
+      faultCause: "1.传感器及线路故障;2.温度超过设置值;3.PLC 模块故障",
+      resolvent:
+        "1.检查传感器及线路是否正常;2.检查控制柜温度是否高温,检查温控开关设置值是否正\n常,检查冷却风扇工作是否正常;3.检查 PLC 模块是否正常;",
+      stationName: "02风电场",
+      componentsName: "机舱",
+    },
+    {
+      id: "HY_0015",
+      tagId: "NULL",
+      triggerType: 14,
+      deviceId: "NULL",
+      suffix: null,
+      rank: 3,
+      uniformCode: "BI0001",
+      stationId: "SXJ_KGDL_HSM_FDC_STA",
+      modelId: "/HW3-S2500(121)",
+      alarmType: "windturbine",
+      deviceType: "windturbine",
+      components: "JC",
+      subcomponents: "NULL",
+      description: "机舱控制柜温度过低",
+      characteristic: "报警",
+      resetTable: false,
+      enable: true,
+      name: "hmi_error_dword_01.14",
+      nemCode: "110111",
+      faultCause: "1.传感器及线路故障;2.温度超过设置值;3.PLC 模块故障",
+      resolvent:
+        "1.检查传感器及线路是否正常;2.检查控制柜温度是否高温;3.检查 PLC 模块是否正常;",
+      stationName: "02风电场",
+      componentsName: "机舱",
+    },
+    {
+      id: "HY_0016",
+      tagId: "NULL",
+      triggerType: 15,
+      deviceId: "NULL",
+      suffix: null,
+      rank: 3,
+      uniformCode: "BI0001",
+      stationId: "SXJ_KGDL_HSM_FDC_STA",
+      modelId: "/HW3-S2500(121)",
+      alarmType: "windturbine",
+      deviceType: "windturbine",
+      components: "JC",
+      subcomponents: "NULL",
+      description: "机舱控制柜风扇保护",
+      characteristic: "报警",
+      resetTable: false,
+      enable: true,
+      name: "hmi_error_dword_01.15",
+      nemCode: "110112",
+      faultCause:
+        "1.线路短路;2.风扇损坏;3.断路器、辅助触点或控制回路故障;4.PLC 模块故障;",
+      resolvent:
+        "1.检查动力回路是否正常;2.检查散热风扇工作是否正常;3.检查断路器、辅助触点及控\n制回路是否正常;4.检查 PLC 模块是否正常;",
+      stationName: "02风电场",
+      componentsName: "机舱",
+    },
+    {
+      id: "HY_0017",
+      tagId: "NULL",
+      triggerType: 16,
+      deviceId: "NULL",
+      suffix: null,
+      rank: 3,
+      uniformCode: "BI0001",
+      stationId: "SXJ_KGDL_HSM_FDC_STA",
+      modelId: "/HW3-S2500(121)",
+      alarmType: "windturbine",
+      deviceType: "windturbine",
+      components: "TDG",
+      subcomponents: "NULL",
+      description: "塔底冷却风扇保护",
+      characteristic: "报警",
+      resetTable: false,
+      enable: true,
+      name: "hmi_error_dword_01.16",
+      nemCode: "110113",
+      faultCause:
+        "1.线路短路;2.电机过载;3.断路器、辅助触点或控制回路故障;4.PLC 模块故障;",
+      resolvent:
+        "1.检查动力回路是否正常;2.检查电机绕组阻值和电机绝缘;3.检查断路器、辅助触点及\n控制回路是否正常;4.检查 PLC 模块是否正常;",
+      stationName: "02风电场",
+      componentsName: "塔底柜",
+    },
+    {
+      id: "HY_0018",
+      tagId: "NULL",
+      triggerType: 17,
+      deviceId: "NULL",
+      suffix: null,
+      rank: 3,
+      uniformCode: "BI0001",
+      stationId: "SXJ_KGDL_HSM_FDC_STA",
+      modelId: "/HW3-S2500(121)",
+      alarmType: "windturbine",
+      deviceType: "windturbine",
+      components: "BPQ",
+      subcomponents: "NULL",
+      description: "变频器转子侧标记故障",
+      characteristic: "报警",
+      resetTable: false,
+      enable: true,
+      name: "hmi_error_dword_01.17",
+      nemCode: "30101",
+      faultCause: "转子侧模块总故障",
+      resolvent:
+        "需使用变流器调试软件进行具体代码的分析并参照变流器的故障处理手册排查故障",
+      stationName: "02风电场",
+      componentsName: "变频器",
+    },
+    {
+      id: "HY_0019",
+      tagId: "NULL",
+      triggerType: 18,
+      deviceId: "NULL",
+      suffix: null,
+      rank: 3,
+      uniformCode: "BI0001",
+      stationId: "SXJ_KGDL_HSM_FDC_STA",
+      modelId: "/HW3-S2500(121)",
+      alarmType: "windturbine",
+      deviceType: "windturbine",
+      components: "BPQ",
+      subcomponents: "NULL",
+      description: "变频器转子侧电压故障",
+      characteristic: "报警",
+      resetTable: false,
+      enable: true,
+      name: "hmi_error_dword_01.18",
+      nemCode: "30102",
+      faultCause: "转子侧模块过压和欠压等故障",
+      resolvent:
+        "需使用变流器调试软件进行具体代码的分析并参照变流器的故障处理手册排查故障",
+      stationName: "02风电场",
+      componentsName: "变频器",
+    },
+    {
+      id: "HY_0020",
+      tagId: "NULL",
+      triggerType: 19,
+      deviceId: "NULL",
+      suffix: null,
+      rank: 3,
+      uniformCode: "BI0001",
+      stationId: "SXJ_KGDL_HSM_FDC_STA",
+      modelId: "/HW3-S2500(121)",
+      alarmType: "windturbine",
+      deviceType: "windturbine",
+      components: "BPQ",
+      subcomponents: "NULL",
+      description: "变频器转子侧电流故障",
+      characteristic: "报警",
+      resetTable: false,
+      enable: true,
+      name: "hmi_error_dword_01.19",
+      nemCode: "30103",
+      faultCause: "转子侧模块过流或短路",
+      resolvent:
+        "1.检查电机负载;2.检查供电电压;3.检查在供电侧有无功率因数补偿电容;4.检查整流\n器;5.检查逆变器;6.检查 LCL 滤波器;7.检查整流器 IGBT 和电流互感器;8.需使用变\n流器调试软件进行具体代码的分析并参照变流器的故障处理手册排查故障",
+      stationName: "02风电场",
+      componentsName: "变频器",
+    },
+    {
+      id: "HY_0021",
+      tagId: "NULL",
+      triggerType: 20,
+      deviceId: "NULL",
+      suffix: null,
+      rank: 3,
+      uniformCode: "BI0001",
+      stationId: "SXJ_KGDL_HSM_FDC_STA",
+      modelId: "/HW3-S2500(121)",
+      alarmType: "windturbine",
+      deviceType: "windturbine",
+      components: "BPQ",
+      subcomponents: "NULL",
+      description: "变频器转子侧温度故障",
+      characteristic: "报警",
+      resetTable: false,
+      enable: true,
+      name: "hmi_error_dword_01.20",
+      nemCode: "30104",
+      faultCause: "NULL",
+      resolvent: "NULL",
+      stationName: "02风电场",
+      componentsName: "变频器",
+    },
+  ],
   modelList: [],
   modelListAll: {}, //型号所有列表
   visible: false,
@@ -626,12 +1200,17 @@ const relatePartConvert = (val) => {
 .table-wrapper {
   height: calc(100% - 43px);
   width: 100%;
+  .leftContent[data-type~="greenSty"] {
+            background: url("~@/assets/imgs/title_left_bg1.png") no-repeat;
+        }
+        .leftContent[data-type~="blueSty"] {
+            background: url("~@/assets/imgs/title_left_bg.png") no-repeat;
+        }
   .leftContent {
     width: 242px;
     height: 41px;
     display: flex;
     align-items: center;
-    background: url("~@/assets/imgs/title_left_bg1.png") no-repeat;
 
     span {
       font-size: 16px;

+ 303 - 3
src/views/IntegratedAlarm/alarmConfig/logs/index.vue

@@ -32,7 +32,7 @@
       </div>
     </div>
     <div class="table-wrapper">
-      <div class="leftContent">
+      <div class="leftContent" :data-type="$store.state.moreSty">
         <span>{{ pageTitle }}</span>
       </div>
       <el-table
@@ -132,7 +132,302 @@ const query = reactive({
   limit: 22,
   pageTotal: null,
 });
-let tableData = ref(null);
+let tableData = ref([
+  {
+    id: "1160895224143552512",
+    ruleName: "暴风天气",
+    ruleType: "自定义报警",
+    ruleId: "1",
+    updateTime: "2023-10-09T03:03:09.826+0000",
+    updateType: "更新",
+    updateUser: "1",
+    stationId: "SXJ_KGDL_DJY_FDC_STA",
+    modelId: "/UP2000/105",
+    infoList: [],
+    stationName: "02风电场",
+  },
+  {
+    id: "1160895202010210304",
+    ruleName: "220kV总圣线231测控231断路器合位",
+    ruleType: "升压站报警",
+    ruleId: "1160152979207495680",
+    updateTime: "2023-10-09T03:03:04.549+0000",
+    updateType: "更新",
+    updateUser: "1",
+    stationId: "SXJ_KGDL_YYG01_SBS",
+    modelId: "PVS-800-57-100KW-A",
+    infoList: [],
+    stationName: "03光电站",
+  },
+  {
+    id: "1160890894011211776",
+    ruleName: "1",
+    ruleType: "风机报警",
+    ruleId: "1160890866374942720",
+    updateTime: "2023-10-09T02:45:57.442+0000",
+    updateType: "更新",
+    updateUser: "1",
+    stationId: "SXJ_KGDL_XWT_FDC_STA",
+    modelId: "SEC-W02B-1250kW",
+    infoList: [],
+    stationName: "03风电场",
+  },
+  {
+    id: "1160890866362359810",
+    ruleName: "1",
+    ruleType: "风机报警",
+    ruleId: "1160890866362359808",
+    updateTime: "2023-10-09T02:45:50.850+0000",
+    updateType: "新增",
+    updateUser: "1",
+    stationId: "SXJ_KGDL_XWT_FDC_STA",
+    modelId: "SEC-W02B-1250kW",
+    infoList: [],
+    stationName: "03风电场",
+  },
+  {
+    id: "1160890799224135681",
+    ruleName: "变桨主站通讯故障",
+    ruleType: "风机报警",
+    ruleId: "1160890799219941376",
+    updateTime: "2023-10-09T02:45:34.843+0000",
+    updateType: "新增",
+    updateUser: "1",
+    stationId: "SXJ_KGDL_XWT_FDC_STA",
+    modelId: "SEC-W02B-1250kW",
+    infoList: [],
+    stationName: "03风电场",
+  },
+  {
+    id: "1160152979152969730",
+    ruleName: "220kV总圣线231测控231断路器合位",
+    ruleType: "升压站报警",
+    ruleId: "1160152979152969728",
+    updateTime: "2023-10-07T01:53:44.831+0000",
+    updateType: "新增",
+    updateUser: "1",
+    stationId: "SXJ_KGDL_YYG01_SBS",
+    modelId: "PVS-800-57-100KW-A",
+    infoList: [],
+    stationName: "03光电站",
+  },
+  {
+    id: "1155913599144042496",
+    ruleName: "暴风天气",
+    ruleType: "自定义报警",
+    ruleId: "1",
+    updateTime: "2023-09-25T09:07:57.872+0000",
+    updateType: "更新",
+    updateUser: "1",
+    stationId: "SXJ_KGDL_DJY_FDC_STA",
+    modelId: "/UP2000/105",
+    infoList: [],
+    stationName: "02风电场",
+  },
+  {
+    id: "1155913584778551296",
+    ruleName: "PCS请求手动故障清除",
+    ruleType: "风机报警",
+    ruleId: "1155566044237406208",
+    updateTime: "2023-09-25T09:07:54.447+0000",
+    updateType: "更新",
+    updateUser: "1",
+    stationId: "SXJ_KGDL_XWT_FDC_STA",
+    modelId: "SEC-W02B-1250kW",
+    infoList: [],
+    stationName: "03风电场",
+  },
+  {
+    id: "1155911858658877440",
+    ruleName: "暴风天气",
+    ruleType: "自定义报警",
+    ruleId: "1",
+    updateTime: "2023-09-25T09:01:02.908+0000",
+    updateType: "更新",
+    updateUser: "1",
+    stationId: "SXJ_KGDL_DJY_FDC_STA",
+    modelId: "/UP2000/105",
+    infoList: [],
+    stationName: "02风电场",
+  },
+  {
+    id: "1155911842401755136",
+    ruleName: "PCS请求手动故障清除",
+    ruleType: "风机报警",
+    ruleId: "1155566044237406208",
+    updateTime: "2023-09-25T09:00:59.032+0000",
+    updateType: "更新",
+    updateUser: "1",
+    stationId: "SXJ_KGDL_XWT_FDC_STA",
+    modelId: "SEC-W02B-1250kW",
+    infoList: [],
+    stationName: "03风电场",
+  },
+  {
+    id: "1155909071036358656",
+    ruleName: "暴风天气",
+    ruleType: "自定义报警",
+    ruleId: "1",
+    updateTime: "2023-09-25T08:49:58.287+0000",
+    updateType: "更新",
+    updateUser: "1",
+    stationId: "SXJ_KGDL_DJY_FDC_STA",
+    modelId: "/UP2000/105",
+    infoList: [],
+    stationName: "02风电场",
+  },
+  {
+    id: "1155909055429353472",
+    ruleName: "PCS请求手动故障清除",
+    ruleType: "风机报警",
+    ruleId: "1155566044237406208",
+    updateTime: "2023-09-25T08:49:54.566+0000",
+    updateType: "更新",
+    updateUser: "1",
+    stationId: "SXJ_KGDL_XWT_FDC_STA",
+    modelId: "SEC-W02B-1250kW",
+    infoList: [],
+    stationName: "03风电场",
+  },
+  {
+    id: "1155908481170415616",
+    ruleName: "PCS请求手动故障清除",
+    ruleType: "风机报警",
+    ruleId: "1155566044237406208",
+    updateTime: "2023-09-25T08:47:37.652+0000",
+    updateType: "更新",
+    updateUser: "1",
+    stationId: "SXJ_KGDL_XWT_FDC_STA",
+    modelId: "SEC-W02B-1250kW",
+    infoList: [],
+    stationName: "03风电场",
+  },
+  {
+    id: "1155908438870859776",
+    ruleName: "暴风天气",
+    ruleType: "自定义报警",
+    ruleId: "1",
+    updateTime: "2023-09-25T08:47:27.567+0000",
+    updateType: "更新",
+    updateUser: "1",
+    stationId: "SXJ_KGDL_DJY_FDC_STA",
+    modelId: "/UP2000/105",
+    infoList: [],
+    stationName: "02风电场",
+  },
+  {
+    id: "1155903225233547264",
+    ruleName: "暴风天气",
+    ruleType: "自定义报警",
+    ruleId: "1",
+    updateTime: "2023-09-25T08:26:44.539+0000",
+    updateType: "更新",
+    updateUser: "1",
+    stationId: "SXJ_KGDL_DJY_FDC_STA",
+    modelId: "/UP2000/105",
+    infoList: [],
+    stationName: "02风电场",
+  },
+  {
+    id: "1155885102535155712",
+    ruleName: "暴风天气",
+    ruleType: "自定义报警",
+    ruleId: "1",
+    updateTime: "2023-09-25T07:14:43.751+0000",
+    updateType: "更新",
+    updateUser: "1",
+    stationId: "SXJ_KGDL_DJY_FDC_STA",
+    modelId: "/UP2000/105",
+    infoList: [
+      {
+        id: "1155885102535155717",
+        eventId: "1155885102535155712",
+        fieldName: "公式",
+        beforValue: "AI066>25",
+        afterValue: "AI066>26",
+      },
+    ],
+    stationName: "02风电场",
+  },
+  {
+    id: "1155808229784428544",
+    ruleName: "PCS请求手动故障清除",
+    ruleType: "风机报警",
+    ruleId: "1155566044237406208",
+    updateTime: "2023-09-25T02:09:15.859+0000",
+    updateType: "更新",
+    updateUser: "1",
+    stationId: "SXJ_KGDL_XWT_FDC_STA",
+    modelId: "SEC-W02B-1250kW",
+    infoList: [],
+    stationName: "03风电场",
+  },
+  {
+    id: "1155804017918877696",
+    ruleName: "暴风天气",
+    ruleType: "自定义报警",
+    ruleId: "1",
+    updateTime: "2023-09-25T01:52:31.672+0000",
+    updateType: "更新",
+    updateUser: "1",
+    stationId: "SXJ_KGDL_DJY_FDC_STA",
+    modelId: "/UP2000/105",
+    infoList: [],
+    stationName: "02风电场",
+  },
+  {
+    id: "1155803998444724224",
+    ruleName: "PCS请求手动故障清除",
+    ruleType: "风机报警",
+    ruleId: "1155566044237406208",
+    updateTime: "2023-09-25T01:52:27.029+0000",
+    updateType: "更新",
+    updateUser: "1",
+    stationId: "SXJ_KGDL_XWT_FDC_STA",
+    modelId: "SEC-W02B-1250kW",
+    infoList: [],
+    stationName: "03风电场",
+  },
+  {
+    id: "1155795457772232704",
+    ruleName: "暴风天气",
+    ruleType: "自定义报警",
+    ruleId: "1",
+    updateTime: "2023-09-25T01:18:30.774+0000",
+    updateType: "更新",
+    updateUser: "1",
+    stationId: "SXJ_KGDL_DJY_FDC_STA",
+    modelId: "/UP2000/105",
+    infoList: [],
+    stationName: "02风电场",
+  },
+  {
+    id: "1155794854174138368",
+    ruleName: "PCS请求手动故障清除",
+    ruleType: "风机报警",
+    ruleId: "1155566044237406208",
+    updateTime: "2023-09-25T01:16:06.865+0000",
+    updateType: "更新",
+    updateUser: "1",
+    stationId: "SXJ_KGDL_XWT_FDC_STA",
+    modelId: "SEC-W02B-1250kW",
+    infoList: [],
+    stationName: "03风电场",
+  },
+  {
+    id: "1155576418407948288",
+    ruleName: "暴风天气",
+    ruleType: "自定义报警",
+    ruleId: "1",
+    updateTime: "2023-09-24T10:48:07.720+0000",
+    updateType: "更新",
+    updateUser: "1",
+    stationId: "SXJ_KGDL_DJY_FDC_STA",
+    modelId: "/UP2000/105",
+    infoList: [],
+    stationName: "02风电场",
+  },
+]);
 let input = ref("");
 let value = ref("");
 let options = ref([
@@ -216,12 +511,17 @@ const handlePageChange = (val) => {
 .table-wrapper {
   height: calc(100% - 43px);
   width: 100%;
+  .leftContent[data-type~="greenSty"] {
+            background: url("~@/assets/imgs/title_left_bg1.png") no-repeat;
+        }
+        .leftContent[data-type~="blueSty"] {
+            background: url("~@/assets/imgs/title_left_bg.png") no-repeat;
+        }
   .leftContent {
     width: 242px;
     height: 41px;
     display: flex;
     align-items: center;
-    background: url("~@/assets/imgs/title_left_bg1.png") no-repeat;
 
     span {
       font-size: 16px;

+ 73 - 5
src/views/IntegratedAlarm/deviceConfig/components/custom.vue

@@ -216,11 +216,11 @@
       ></el-pagination>
     </div>
   </div>
-  <customcomponents
+  <!-- <customcomponents
     @close="dialogclose"
     :isVisible="state.visible"
     :form="state.form"
-  />
+  /> -->
 </template>
 <script setup>
 import { custombj_fetchTableData, getWtModel } from "@/api/zhbj/index.js";
@@ -238,7 +238,75 @@ const stationList = computed(() =>
 );
 const isStation = computed(() => store.getters.isStation);
 const state = reactive({
-  tableData: [],
+  tableData: [
+    {
+      id: "1",
+      name: "暴风天气",
+      description: "风速超过25米/秒",
+      expression: "AI066>26",
+      tag: "NULL",
+      rank: 2,
+      modelId: "/UP2000/105",
+      category: "windturbine",
+      range: "parts",
+      stationId: "SXJ_KGDL_DJY_FDC_STA",
+      projectId: "NULL",
+      lineId: "NULL",
+      deviceId: "NULL",
+      electricalId: "NULL",
+      relatedParts: "QT",
+      createTime: "2023-09-17T16:00:00.000+0000",
+      enable: true,
+      uniformCode: "NULL",
+      stationName: "01风电场",
+      relatedPartsName: "其他",
+    },
+    {
+      id: "10",
+      name: "齿轮箱轴承温升速度超过1.5",
+      description: "发电机转速大于900,并且 任意齿轮箱轴温度每分钟上升超过1.5",
+      expression:
+        "AI060>900 && ( RiseExceed(AI042,60,1.5) || RiseExceed(AI043,60,1.5))",
+      tag: "NULL",
+      rank: 2,
+      modelId: "/UP2000/105",
+      category: "windturbine",
+      range: "parts",
+      stationId: "SXJ_KGDL_DJY_FDC_STA",
+      projectId: "NULL",
+      lineId: "NULL",
+      deviceId: "NULL",
+      electricalId: "NULL",
+      relatedParts: "FDJ",
+      createTime: "2023-09-17T16:00:00.000+0000",
+      enable: true,
+      uniformCode: "NULL",
+      stationName: "01风电场",
+      relatedPartsName: "发电机",
+    },
+    {
+      id: "100",
+      name: "发电机轴A损坏或碳刷室温度过高",
+      description: "轴A温度大于轴B温度15度",
+      expression: "Math.abs(AI092-AI062)>15",
+      tag: "NULL",
+      rank: 2,
+      modelId: "UP2000-105",
+      category: "windturbine",
+      range: "sensors",
+      stationId: "SXJ_KGDL_GJY_FDC_STA",
+      projectId: "NULL",
+      lineId: "NULL",
+      deviceId: "NULL",
+      electricalId: "NULL",
+      relatedParts: "FDJ",
+      createTime: "2023-09-17T16:00:00.000+0000",
+      enable: true,
+      uniformCode: "NULL",
+      stationName: "02风电场",
+      relatedPartsName: "发电机",
+    },
+  ],
   modelList: [],
   rankList: [
     {
@@ -293,8 +361,8 @@ const query = reactive({
 });
 let total = ref(0);
 onMounted(() => {
-  getData();
-  getequipmentmodel_list();
+//   getData();
+//   getequipmentmodel_list();
 });
 const dialogclose = () => {
   state.visible = false;

+ 592 - 2
src/views/IntegratedAlarm/deviceConfig/components/faultmode.vue

@@ -202,7 +202,7 @@ watch(
 let editVisible = ref(false);
 let editFormData = ref({});
 onMounted(() => {
-  getfaultmode(desc.value.code);
+//   getfaultmode(desc.value.code);
 });
 const selectV = {
   1: "I",
@@ -237,7 +237,597 @@ const rank = (v) => {
   return selectV[v] || "";
 };
 let state = reactive({
-  faultmodeTableData: [],
+  faultmodeTableData: [
+    {
+      id: "9",
+      code: "fdj_mfqms",
+      name: "密封圈磨损",
+      effects: "主轴漏油",
+      cause: "老化装配不当",
+      measure: "1.合理计算更换周期",
+      severity: 6,
+      occurence: 3,
+      detection: 4,
+      deviceid: "windturbine",
+      structureCode: "101010211",
+      models: null,
+    },
+    {
+      id: "11",
+      code: "fdj_zcgsd",
+      name: "轴承盖松动",
+      effects: "主轴漏油,异常运转",
+      cause: "连接螺栓松动",
+      measure: "定期检查紧固锁紧螺栓",
+      severity: 5,
+      occurence: 4,
+      detection: 4,
+      deviceid: "windturbine",
+      structureCode: "101010211",
+      models: null,
+    },
+    {
+      id: "12",
+      code: "fadj_gr",
+      name: "发电机过热",
+      effects: "部件损坏发热,风机停机频繁,影响风机发电",
+      cause:
+        "1 轴承故障,2 通风故障3 电机过载4 系统振动过大5 定子绕组短路6 冷却空气流量太小",
+      measure: "更换轴承,排除通风故障,减小负载,对症处理,排除短路点,加大流量",
+      severity: 5,
+      occurence: 4,
+      detection: 3,
+      deviceid: "windturbine",
+      structureCode: "101010207",
+      models: null,
+    },
+    {
+      id: "13",
+      code: "fadj_zcgr",
+      name: "发电机轴承过热或不正常杂声",
+      effects: "轴承损坏,影响发电机运行",
+      cause: "1 轴承型号不对",
+      measure: "更换轴承",
+      severity: 5,
+      occurence: 3,
+      detection: 4,
+      deviceid: "windturbine",
+      structureCode: "101010207",
+      models: null,
+    },
+    {
+      id: "14",
+      code: "fdj_clhywgg",
+      name: "风电机齿轮滑油温过高",
+      effects: "冷却润滑不良,影响使用",
+      cause: "处于满发状态过长,润滑油因齿轮箱发热温度上升超过正常值",
+      measure: "敞开塔架大门,增强通风,改善齿轮箱工作环境温度",
+      severity: 5,
+      occurence: 3,
+      detection: 4,
+      deviceid: "windturbine",
+      structureCode: "101010206",
+      models: null,
+    },
+    {
+      id: "15",
+      code: "fdj_fdjzjlqgwgz",
+      name: "风电机组交流器过温故障",
+      effects: "变流器无法工作,分机停机",
+      cause: "冷却风扇堵转、损坏;水冷系统的水泵不工作或压力调节阀失调",
+      measure: "检测风扇、电源,水泵、压力调节阀、储水罐水位等更,换异常器件",
+      severity: 5,
+      occurence: 3,
+      detection: 4,
+      deviceid: "windturbine",
+      structureCode: "101010214",
+      models: null,
+    },
+    {
+      id: "16",
+      code: "fdj_fdjzbjcfdjqddjdlbz",
+      name: "风电机组变桨伺服电机驱动电机过热",
+      effects: "变桨动力不足,影响变桨控制",
+      cause: "轴承故障,系统振动过大",
+      measure: "检测轴承,系统减振",
+      severity: 5,
+      occurence: 3,
+      detection: 4,
+      deviceid: "windturbine",
+      structureCode: "101010202",
+      models: null,
+    },
+    {
+      id: "17",
+      code: "fdj_fdjzbjcfdjqddjzdgd",
+      name: "风电机组变桨伺服电机驱动电机震动过大",
+      effects: "影响变桨控制",
+      cause: "润滑脂过多或不足,偏航驱动耦合不好",
+      measure: "维持适量润滑脂,重新耦合,检查螺栓连接,检测轴承",
+      severity: 5,
+      occurence: 3,
+      detection: 4,
+      deviceid: "windturbine",
+      structureCode: "101010202",
+      models: null,
+    },
+    {
+      id: "18",
+      code: "fdj_fdjzbjclms",
+      name: "风电机组变桨齿轮磨损",
+      effects: "影响风机变桨",
+      cause: "润滑不良",
+      measure: "改善润滑条件",
+      severity: 5,
+      occurence: 3,
+      detection: 4,
+      deviceid: "windturbine",
+      structureCode: "101010202",
+      models: null,
+    },
+    {
+      id: "19",
+      code: "fdj_fbjzcss",
+      name: "风电机组变桨齿轮轴承失效",
+      effects: "影响风机变桨",
+      cause: "轴承安装不当",
+      measure: "安装规范调整",
+      severity: 5,
+      occurence: 3,
+      detection: 4,
+      deviceid: "windturbine",
+      structureCode: "101010202",
+      models: null,
+    },
+    {
+      id: "20",
+      code: "fdj_fdjzbjcldz",
+      name: "风电机组变桨齿轮断轴",
+      effects: "影响风机变桨",
+      cause: "轴在制造中应力集中",
+      measure: "规范设计",
+      severity: 5,
+      occurence: 3,
+      detection: 4,
+      deviceid: "windturbine",
+      structureCode: "101010202",
+      models: null,
+    },
+    {
+      id: "21",
+      code: "fdj_fdjzbjclgr",
+      name: "风电机组变桨齿轮过热",
+      effects: "影响风机变桨",
+      cause: "部件损伤,冷却润滑不良",
+      measure: "改善冷却润滑",
+      severity: 5,
+      occurence: 3,
+      detection: 4,
+      deviceid: "windturbine",
+      structureCode: "101010202",
+      models: null,
+    },
+    {
+      id: "22",
+      code: "fdj_fdjzbjzcsx",
+      name: "风电机组变桨轴承轴承失效",
+      effects: "影响变桨",
+      cause: "轴承安装不当,润滑不良,疲劳失效,温度传感器异常",
+      measure: "规范安装调试,改善润滑条件,改善散热系统",
+      severity: 5,
+      occurence: 3,
+      detection: 4,
+      deviceid: "windturbine",
+      structureCode: "101010202",
+      models: null,
+    },
+    {
+      id: "23",
+      code: "fdj_fdjzbjkzxttxyc",
+      name: "风电机组变桨控制系统通讯异常",
+      effects: "影响变桨",
+      cause: "通讯电缆故障",
+      measure: "检查变桨通信",
+      severity: 5,
+      occurence: 3,
+      detection: 4,
+      deviceid: "windturbine",
+      structureCode: "101010202",
+      models: null,
+    },
+    {
+      id: "24",
+      code: "fdj_fdjzbjkzxtsh",
+      name: "风电机组变桨控制系统器件损坏",
+      effects: "影响变桨",
+      cause: "内部电路短路,电路谐波过大",
+      measure: "更换相应电路板,检测电路谐波",
+      severity: 5,
+      occurence: 3,
+      detection: 4,
+      deviceid: "windturbine",
+      structureCode: "101010202",
+      models: null,
+    },
+    {
+      id: "25",
+      code: "fdj_fdjzbjkzxtdcgz",
+      name: "风电机组变桨控制系统电池故障",
+      effects: "影响变桨",
+      cause: "电池漏放电",
+      measure: "检测备用电池",
+      severity: 5,
+      occurence: 4,
+      detection: 3,
+      deviceid: "windturbine",
+      structureCode: "101010202",
+      models: null,
+    },
+    {
+      id: "26",
+      code: "fdj_fdjzbmqgzyc",
+      name: "风电机组变桨系统编码器工作异常",
+      effects: "影响变桨",
+      cause: "变桨电机过热,编码器损坏,连接编码器电路损坏",
+      measure: "检测冷却系统,检测更换编码器",
+      severity: 5,
+      occurence: 4,
+      detection: 3,
+      deviceid: "windturbine",
+      structureCode: "101010202",
+      models: null,
+    },
+    {
+      id: "27",
+      code: "fdj_fdjzbjxtxwkgmssh",
+      name: "风电机组变桨系统限位开关磨损损坏",
+      effects: "影响解缆",
+      cause: "连接螺栓松动,异物侵入,连接电缆损坏,磨损",
+      measure: "定期检查螺栓,加强密封清洁,检查更换电缆,改善润滑条件",
+      severity: 5,
+      occurence: 4,
+      detection: 3,
+      deviceid: "windturbine",
+      structureCode: "101010202",
+      models: null,
+    },
+    {
+      id: "28",
+      code: "fdj_fdjzbjxtljflfljgpc",
+      name: "风电机组变桨系统连接法兰范例结构偏差",
+      effects: "影响变桨",
+      cause: "连接螺栓松动,安装角度偏差",
+      measure: "定期检查螺栓,规范安装变桨法兰结构,定期检查变桨机械装置",
+      severity: 5,
+      occurence: 4,
+      detection: 3,
+      deviceid: "windturbine",
+      structureCode: "101010202",
+      models: null,
+    },
+    {
+      id: "29",
+      code: "fdj_fdjzbjxtrhysl",
+      name: "风电机组变桨系统润滑油渗漏",
+      effects: "影响变桨",
+      cause: "偏航齿轮箱尤为计管路连接头松动或损坏,密封件损坏",
+      measure: "检查并连接接头,更换密封件",
+      severity: 5,
+      occurence: 4,
+      detection: 3,
+      deviceid: "windturbine",
+      structureCode: "101010202",
+      models: null,
+    },
+    {
+      id: "30",
+      code: "fdj_fdjzzkxtjcsdcxgz",
+      name: "风电机组主控系统机舱加速度超限故障",
+      effects: "停机",
+      cause:
+        "1.机组相应参数设置不合理2.传感器信号受干扰造成3.恶劣风况造成4线路虚接造成5.加速度模块或者测量模块KL3404损坏",
+      measure:
+        "1.对线路进行勘察,查看是否存在虚接2.校对X,Y方向加速度信号3.检查PLC相应输入模块KL3404",
+      severity: 5,
+      occurence: 3,
+      detection: 4,
+      deviceid: "windturbine",
+      structureCode: "101010204",
+      models: null,
+    },
+    {
+      id: "31",
+      code: "fdj_fdjzzkxtyyfkgz",
+      name: "风电机组主控系统液压反馈故障",
+      effects: "停机",
+      cause:
+        "1.液压泵的控制回路接线错误2.液压泵的反馈回路虚接问题3测量模块KL1104损坏",
+      measure:
+        "1.对照图纸,检查液压泵的控制回路接线是否正确2.给KL1104模块24V输入信号,看程序是否接受正常",
+      severity: 5,
+      occurence: 3,
+      detection: 4,
+      deviceid: "windturbine",
+      structureCode: "101010208",
+      models: null,
+    },
+    {
+      id: "32",
+      code: "fdj_fdjzzkxtygglbpp",
+      name: "风电机组主控系统有功功率不匹配",
+      effects: "影响调度进度",
+      cause:
+        "1.接线松动2.KL3403模块损坏3.电压互感器上端熔断器损坏4.电流互感器损坏",
+      measure:
+        "1.查看故障文件,变流器三相电路的电压、电流是否正常2.只有一台机组出现此故障时,查看故障文件,变流器三相电路的电压、电流是否正常3.若以上都正常,则变流器的反馈数据有问题,需更换1U1的ASIC版,或直接更换1U1",
+      severity: 5,
+      occurence: 3,
+      detection: 4,
+      deviceid: "windturbine",
+      structureCode: "101010204",
+      models: null,
+    },
+    {
+      id: "33",
+      code: "fdj_fdjzslxtwdbjgz",
+      name: "风电机组水冷系统温度比较故障",
+      effects: "停机",
+      cause:
+        "1.水冷系统实际流量低,导致温差大2.冬天机组刚启动的情况下3.三通阀工作不正常",
+      measure:
+        "1.查看故障F文件,出阀温度与进阀温度之差大于5℃的此故障2.冬天启机时,因水冷系统的作用是给变流器加热,出阀温度降低于进阀温度,当温差低于-1.5℃时机组将报温度比较故障",
+      severity: 5,
+      occurence: 3,
+      detection: 4,
+      deviceid: "windturbine",
+      structureCode: "101010204",
+      models: null,
+    },
+    {
+      id: "34",
+      code: "fdj_fdjzslxtbqbgz",
+      name: "风电机组水冷系统补气泵故障",
+      effects: "停机",
+      cause: "1.补气阀开关未打开2.补气泵保险烧坏3.ABB24V中间继电器触点坏",
+      measure: "1.打开补气泵开关2.检查并更换补气泵保险",
+      severity: 5,
+      occurence: 3,
+      detection: 4,
+      deviceid: "windturbine",
+      structureCode: "101010204",
+      models: null,
+    },
+    {
+      id: "35",
+      code: "fdj_fdjzbjxtbjnbqokxhds",
+      name: "风电机组变桨系统变桨逆变器OK信号丢失故障",
+      effects: "停机",
+      cause: "1.变桨逆变器温度高导致AC2自我保护2.变桨电机缺相、电机绕组损坏",
+      measure:
+        "在监控面板上查看“变桨逆变器OK”信号闪烁次数,根据相关守则进行处理",
+      severity: 5,
+      occurence: 3,
+      detection: 4,
+      deviceid: "windturbine",
+      structureCode: "101010202",
+      models: null,
+    },
+    {
+      id: "36",
+      code: "fdj_fdjzbjxtbjsdbjgz",
+      name: "风电机组变桨系统变桨速度比较故障",
+      effects: "停机",
+      cause:
+        "1.变桨齿形带有松动现象,2KL4001模块输出有偏差2.输出未按PLC模块执行KL5001",
+      measure:
+        "1.全面检查柜体内外接线是否存在脱落或松动现象2.手动变桨以查看叶片旋转速度是否正常3.如果还是叶片速度不正常则需要检查KL5001模块",
+      severity: 5,
+      occurence: 3,
+      detection: 4,
+      deviceid: "windturbine",
+      structureCode: "101010202",
+      models: null,
+    },
+    {
+      id: "37",
+      code: "fdj_fdjzbjxtbjxwkggz",
+      name: "风电机组变桨系统变桨限位开关故障",
+      effects: "影响进度",
+      cause: "1.选编问题2.限位开关问题3.87°接近开关损坏4.A3模块KL1104损坏",
+      measure:
+        "1.查看变桨角度和限位开关状态2.变桨角度和限位开关状态均正常,查看b文件中选编读数,读数是否不变或有跳变情况",
+      severity: 5,
+      occurence: 3,
+      detection: 4,
+      deviceid: "windturbine",
+      structureCode: "101010202",
+      models: null,
+    },
+    {
+      id: "38",
+      code: "fdj_fdjzjxxtdlzgz",
+      name: "风电机组机械系统导流罩故障",
+      effects: "增加运维成本",
+      cause:
+        "1.导流罩前端盖与导流罩分块总成连接处的玻璃钢法兰厚度偏薄或厚度不均2.安装共意思方面存在一些缺陷",
+      measure:
+        "1.要求厂家出具整改方案,经研发确认后进行处理2.玻璃钢螺栓孔被磨大,在该被磨大的螺栓孔两侧各增加一螺丝孔以加强3.更换导流罩",
+      severity: 5,
+      occurence: 4,
+      detection: 3,
+      deviceid: "windturbine",
+      structureCode: "101010204",
+      models: null,
+    },
+    {
+      id: "39",
+      code: "fdj_fdjzjxtfdjzcgz",
+      name: "风电机组机械系统发电机轴承故障",
+      effects: "发电机损坏",
+      cause: "轴承不同程度损坏",
+      measure: "1.观察2.轴承外部油脂检查3.取油脂送检4.听诊器听声音",
+      severity: 5,
+      occurence: 5,
+      detection: 3,
+      deviceid: "windturbine",
+      structureCode: "101010207",
+      models: null,
+    },
+    {
+      id: "40",
+      code: "fdj_fdjzjxxtypsdpzdqwt",
+      name: "风电机组机械系统叶片锁定盘制动器问题",
+      effects: "影响运维",
+      cause: "1.转子刹车环锁定槽损坏2.转子制动器刹车片损坏故障",
+      measure: "更换刹车片",
+      severity: 5,
+      occurence: 3,
+      detection: 4,
+      deviceid: "windturbine",
+      structureCode: "101010208",
+      models: null,
+    },
+    {
+      id: "41",
+      code: "fdj_fdjzjxxtlswt",
+      name: "风电机组机械系统螺栓问题",
+      effects: "影响维护,安全隐患",
+      cause: "螺栓各种问题",
+      measure: "更换损坏螺栓",
+      severity: 5,
+      occurence: 3,
+      detection: 4,
+      deviceid: "windturbine",
+      structureCode: "101010204",
+      models: null,
+    },
+    {
+      id: "1155573689539239936",
+      code: "yp_ypbbuxy",
+      name: "不吸油",
+      effects: "泵不能正常工作",
+      cause: "叶片与转子配合紧",
+      measure: "叶片长度、厚度、强度设计",
+      severity: 2,
+      occurence: 4,
+      detection: 3,
+      deviceid: "windturbine",
+      structureCode: "101010202",
+      models: null,
+    },
+    {
+      id: "1155573781352554496",
+      code: "yp_ypbbuxy",
+      name: "不吸油",
+      effects: "泵不能正常工作",
+      cause: "叶片与转子配合紧",
+      measure: "叶片长度、厚度、强度设计",
+      severity: 2,
+      occurence: 4,
+      detection: 3,
+      deviceid: "windturbine",
+      structureCode: "101010202",
+      models: null,
+    },
+    {
+      id: "1155573783718141952",
+      code: "yp_ypbbuxy",
+      name: "不吸油",
+      effects: "泵不能正常工作",
+      cause: "叶片与转子配合紧",
+      measure: "叶片长度、厚度、强度设计",
+      severity: 2,
+      occurence: 4,
+      detection: 3,
+      deviceid: "windturbine",
+      structureCode: "101010202",
+      models: null,
+    },
+    {
+      id: "1155573918372077568",
+      code: "yp_ypbbuxy",
+      name: "不吸油",
+      effects: "泵不能正常工作",
+      cause: "叶片与转子配合紧",
+      measure: "叶片长度、厚度、强度设计",
+      severity: 2,
+      occurence: 4,
+      detection: 3,
+      deviceid: "windturbine",
+      structureCode: "101010202",
+      models: null,
+    },
+    {
+      id: "1155576116652941312",
+      code: "yp_ypbbuxy",
+      name: "不吸油",
+      effects: "泵不能正常工作",
+      cause: "叶片与转子配合紧",
+      measure: "叶片长度、厚度、强度设计",
+      severity: 2,
+      occurence: 4,
+      detection: 3,
+      deviceid: "windturbine",
+      structureCode: "101010202",
+      models: null,
+    },
+    {
+      id: "1155804035396542464",
+      code: "fdj_fdjzydl",
+      name: "主轴疲劳断裂",
+      effects: "功能丧失,停机处理",
+      cause: "材料内部有裂纹截面应集中表面粗糙度过大",
+      measure: "1.调制处理2.专用R规检查3.加强表面探伤",
+      severity: 2,
+      occurence: 3,
+      detection: 4,
+      deviceid: "windturbine",
+      structureCode: "101010211",
+      models: null,
+    },
+    {
+      id: "1155912444825444352",
+      code: "fdj_zcms",
+      name: "轴承磨损",
+      effects: "振动、噪音,异常运转",
+      cause: "润滑、密封不良",
+      measure: "1.定期增加润滑脂",
+      severity: 7,
+      occurence: 4,
+      detection: 4,
+      deviceid: "windturbine",
+      structureCode: "101010211",
+      models: null,
+    },
+    {
+      id: "1155913611324301312",
+      code: "fdj_zczdl",
+      name: "轴承座断裂",
+      effects: "功能丧失,停机处理",
+      cause: "铸件内部裂纹存在应力集中",
+      measure: "加强探伤",
+      severity: 7,
+      occurence: 3,
+      detection: 2,
+      deviceid: "windturbine",
+      structureCode: "101010211",
+      models: null,
+    },
+    {
+      id: "1160895253386240000",
+      code: "fdj_mfqms",
+      name: "密封圈磨损",
+      effects: "主轴漏油",
+      cause: "老化装配不当",
+      measure: "1.合理计算更换周期",
+      severity: 6,
+      occurence: 3,
+      detection: 4,
+      deviceid: "windturbine",
+      structureCode: "101010211",
+      models: null,
+    },
+  ],
   addFormData: {
     code: "",
     name: "",

+ 3 - 3
src/views/IntegratedAlarm/deviceConfig/components/message.vue

@@ -40,15 +40,15 @@
         <div style="height: 100%; display: flex; align-items: center">
           <el-switch
             v-model="desc.enabled"
-            active-color="#13ce66"
+            :active-color="$store.state.moreSty === 'greenSty' ? '#13ce66' : '#2169c3'"
             inactive-color="#ff4949"
           />
         </div>
       </el-form-item>
     </el-form>
     <el-button
-      style="float: right"
-      type="primary"
+      style="float: right;border: none"
+      :style="$store.state.moreSty === 'greenSty' ? 'background: #05bb4c;' : 'background: #2169c3;'"
       @click="savedesc"
       :disabled="desc.code == ''"
       >保存</el-button

+ 480 - 4
src/views/IntegratedAlarm/deviceConfig/components/windturbine.vue

@@ -177,7 +177,483 @@ const getStationList = async () => {
 };
 const isStation = computed(() => stationList.value.length);
 const state = reactive({
-  tableData: [],
+  tableData: [
+    {
+      id: "001047",
+      tagId: "FD-DJY-YuanDong.140623F0221MDQ02GS001DB0111SW01RAW00",
+      triggerType: -1,
+      deviceId: null,
+      suffix: null,
+      rank: 4,
+      uniformCode: "DI00001",
+      stationId: "SXJ_KGDL_DJYF01_SBS",
+      modelId: null,
+      alarmType: "booststation",
+      deviceType: "booststation",
+      components: null,
+      subcomponents: null,
+      description: "220kV总圣线231测控231断路器合位",
+      characteristic: "动作",
+      resetTable: false,
+      enable: true,
+      name: null,
+      nemCode: null,
+      faultCause: null,
+      resolvent: null,
+      stationName: "丁家窑风电场",
+      componentsName: null,
+    },
+    {
+      id: "001048",
+      tagId: "FD-DJY-YuanDong.140623F0221MDQ02GS002DB0111SW02RAW00",
+      triggerType: -1,
+      deviceId: null,
+      suffix: null,
+      rank: 4,
+      uniformCode: "DI00002",
+      stationId: "SXJ_KGDL_DJYF01_SBS",
+      modelId: null,
+      alarmType: "booststation",
+      deviceType: "booststation",
+      components: null,
+      subcomponents: null,
+      description: "220kV总圣线231测控231-A刀闸合位",
+      characteristic: "动作",
+      resetTable: false,
+      enable: true,
+      name: null,
+      nemCode: null,
+      faultCause: null,
+      resolvent: null,
+      stationName: "丁家窑风电场",
+      componentsName: null,
+    },
+    {
+      id: "001049",
+      tagId: "FD-DJY-YuanDong.140623F0221MDQ02GS003DB0111SW01RAW00",
+      triggerType: -1,
+      deviceId: null,
+      suffix: null,
+      rank: 4,
+      uniformCode: "DI00003",
+      stationId: "SXJ_KGDL_DJYF01_SBS",
+      modelId: null,
+      alarmType: "booststation",
+      deviceType: "booststation",
+      components: null,
+      subcomponents: null,
+      description: "220kV总圣线231测控231-1刀闸合位",
+      characteristic: "动作",
+      resetTable: false,
+      enable: true,
+      name: null,
+      nemCode: null,
+      faultCause: null,
+      resolvent: null,
+      stationName: "丁家窑风电场",
+      componentsName: null,
+    },
+    {
+      id: "001050",
+      tagId: "FD-DJY-YuanDong.140623F0221MDQ02GS004DB0111SW01RAW00",
+      triggerType: -1,
+      deviceId: null,
+      suffix: null,
+      rank: 4,
+      uniformCode: "DI00004",
+      stationId: "SXJ_KGDL_DJYF01_SBS",
+      modelId: null,
+      alarmType: "booststation",
+      deviceType: "booststation",
+      components: null,
+      subcomponents: null,
+      description: "220kV总圣线231测控231-A0地刀合位",
+      characteristic: "动作",
+      resetTable: false,
+      enable: true,
+      name: null,
+      nemCode: null,
+      faultCause: null,
+      resolvent: null,
+      stationName: "丁家窑风电场",
+      componentsName: null,
+    },
+    {
+      id: "001051",
+      tagId: "FD-DJY-YuanDong.140623F0221MDQ02GS005DB0111SW01RAW00",
+      triggerType: -1,
+      deviceId: null,
+      suffix: null,
+      rank: 4,
+      uniformCode: "DI00005",
+      stationId: "SXJ_KGDL_DJYF01_SBS",
+      modelId: null,
+      alarmType: "booststation",
+      deviceType: "booststation",
+      components: null,
+      subcomponents: null,
+      description: "220kV总圣线231测控231-10地刀合位",
+      characteristic: "动作",
+      resetTable: false,
+      enable: true,
+      name: null,
+      nemCode: null,
+      faultCause: null,
+      resolvent: null,
+      stationName: "丁家窑风电场",
+      componentsName: null,
+    },
+    {
+      id: "001052",
+      tagId: "FD-DJY-YuanDong.140623F0221MDQ02GS006DB0111SW01RAW00",
+      triggerType: -1,
+      deviceId: null,
+      suffix: null,
+      rank: 4,
+      uniformCode: "DI00006",
+      stationId: "SXJ_KGDL_DJYF01_SBS",
+      modelId: null,
+      alarmType: "booststation",
+      deviceType: "booststation",
+      components: null,
+      subcomponents: null,
+      description: "220kV总圣线231测控231-线0地刀合位",
+      characteristic: "动作",
+      resetTable: false,
+      enable: true,
+      name: null,
+      nemCode: null,
+      faultCause: null,
+      resolvent: null,
+      stationName: "丁家窑风电场",
+      componentsName: null,
+    },
+    {
+      id: "001053",
+      tagId: "FD-DJY-YuanDong.140623F0221MDQ02GS006DB0111SW09RAW00",
+      triggerType: 1,
+      deviceId: null,
+      suffix: null,
+      rank: 5,
+      uniformCode: "DI00007",
+      stationId: "SXJ_KGDL_DJYF01_SBS",
+      modelId: null,
+      alarmType: "booststation",
+      deviceType: "booststation",
+      components: null,
+      subcomponents: null,
+      description: "复合信号虚装置全站事故总",
+      characteristic: "事故",
+      resetTable: false,
+      enable: true,
+      name: null,
+      nemCode: null,
+      faultCause: null,
+      resolvent: null,
+      stationName: "丁家窑风电场",
+      componentsName: null,
+    },
+    {
+      id: "001054",
+      tagId: "FD-DJY-YuanDong.140623F0221MDQ02GS007DB0111SW01RAW00",
+      triggerType: -1,
+      deviceId: null,
+      suffix: null,
+      rank: 4,
+      uniformCode: "DI00008",
+      stationId: "SXJ_KGDL_DJYF01_SBS",
+      modelId: null,
+      alarmType: "booststation",
+      deviceType: "booststation",
+      components: null,
+      subcomponents: null,
+      description: "1#变压器高压侧201测控201断路器合位",
+      characteristic: "动作",
+      resetTable: false,
+      enable: true,
+      name: null,
+      nemCode: null,
+      faultCause: null,
+      resolvent: null,
+      stationName: "丁家窑风电场",
+      componentsName: null,
+    },
+    {
+      id: "001055",
+      tagId: "FD-DJY-YuanDong.140623F0221MDQ02GS008DB0111SW02RAW00",
+      triggerType: -1,
+      deviceId: null,
+      suffix: null,
+      rank: 4,
+      uniformCode: "DI00009",
+      stationId: "SXJ_KGDL_DJYF01_SBS",
+      modelId: null,
+      alarmType: "booststation",
+      deviceType: "booststation",
+      components: null,
+      subcomponents: null,
+      description: "1#变压器高压侧201测控201-A刀闸合位",
+      characteristic: "动作",
+      resetTable: false,
+      enable: true,
+      name: null,
+      nemCode: null,
+      faultCause: null,
+      resolvent: null,
+      stationName: "丁家窑风电场",
+      componentsName: null,
+    },
+    {
+      id: "001056",
+      tagId: "FD-DJY-YuanDong.140623F0221MDQ02GS009DB0111SW02RAW00",
+      triggerType: -1,
+      deviceId: null,
+      suffix: null,
+      rank: 4,
+      uniformCode: "DI00010",
+      stationId: "SXJ_KGDL_DJYF01_SBS",
+      modelId: null,
+      alarmType: "booststation",
+      deviceType: "booststation",
+      components: null,
+      subcomponents: null,
+      description: "1#变压器高压侧201测控201-1刀闸合位",
+      characteristic: "动作",
+      resetTable: false,
+      enable: true,
+      name: null,
+      nemCode: null,
+      faultCause: null,
+      resolvent: null,
+      stationName: "丁家窑风电场",
+      componentsName: null,
+    },
+    {
+      id: "001057",
+      tagId: "FD-DJY-YuanDong.140623F0221MDQ02GS010DB0111SW05RAW00",
+      triggerType: -1,
+      deviceId: null,
+      suffix: null,
+      rank: 4,
+      uniformCode: "DI00011",
+      stationId: "SXJ_KGDL_DJYF01_SBS",
+      modelId: null,
+      alarmType: "booststation",
+      deviceType: "booststation",
+      components: null,
+      subcomponents: null,
+      description: "1#变压器高压侧201测控201-A0地刀合位",
+      characteristic: "动作",
+      resetTable: false,
+      enable: true,
+      name: null,
+      nemCode: null,
+      faultCause: null,
+      resolvent: null,
+      stationName: "丁家窑风电场",
+      componentsName: null,
+    },
+    {
+      id: "001058",
+      tagId: "FD-DJY-YuanDong.140623F0221MDQ02GS011DB0111SW04RAW00",
+      triggerType: -1,
+      deviceId: null,
+      suffix: null,
+      rank: 4,
+      uniformCode: "DI00012",
+      stationId: "SXJ_KGDL_DJYF01_SBS",
+      modelId: null,
+      alarmType: "booststation",
+      deviceType: "booststation",
+      components: null,
+      subcomponents: null,
+      description: "1#变压器高压侧201测控201-10地刀合位",
+      characteristic: "动作",
+      resetTable: false,
+      enable: true,
+      name: null,
+      nemCode: null,
+      faultCause: null,
+      resolvent: null,
+      stationName: "丁家窑风电场",
+      componentsName: null,
+    },
+    {
+      id: "001059",
+      tagId: "FD-DJY-YuanDong.140623F0221MDQ02GS012DB0111SW01RAW00",
+      triggerType: -1,
+      deviceId: null,
+      suffix: null,
+      rank: 4,
+      uniformCode: "DI00013",
+      stationId: "SXJ_KGDL_DJYF01_SBS",
+      modelId: null,
+      alarmType: "booststation",
+      deviceType: "booststation",
+      components: null,
+      subcomponents: null,
+      description: "1#变压器高压侧201测控201-变0地刀合位",
+      characteristic: "动作",
+      resetTable: false,
+      enable: true,
+      name: null,
+      nemCode: null,
+      faultCause: null,
+      resolvent: null,
+      stationName: "丁家窑风电场",
+      componentsName: null,
+    },
+    {
+      id: "001060",
+      tagId: "FD-DJY-YuanDong.140623F0221MDQ02GS013DB0111SW03RAW00",
+      triggerType: -1,
+      deviceId: null,
+      suffix: null,
+      rank: 4,
+      uniformCode: "DI00014",
+      stationId: "SXJ_KGDL_DJYF01_SBS",
+      modelId: null,
+      alarmType: "booststation",
+      deviceType: "booststation",
+      components: null,
+      subcomponents: null,
+      description: "1#变压器高压侧201测控1#主变2010地刀合位",
+      characteristic: "动作",
+      resetTable: false,
+      enable: true,
+      name: null,
+      nemCode: null,
+      faultCause: null,
+      resolvent: null,
+      stationName: "丁家窑风电场",
+      componentsName: null,
+    },
+    {
+      id: "001061",
+      tagId: "FD-DJY-YuanDong.140623F0221MDQ02GS014DB0111SW01RAW00",
+      triggerType: -1,
+      deviceId: null,
+      suffix: null,
+      rank: 4,
+      uniformCode: "DI00015",
+      stationId: "SXJ_KGDL_DJYF01_SBS",
+      modelId: null,
+      alarmType: "booststation",
+      deviceType: "booststation",
+      components: null,
+      subcomponents: null,
+      description: "1#主变35kV侧301进线断路器合位",
+      characteristic: "动作",
+      resetTable: false,
+      enable: true,
+      name: null,
+      nemCode: null,
+      faultCause: null,
+      resolvent: null,
+      stationName: "丁家窑风电场",
+      componentsName: null,
+    },
+    {
+      id: "001062",
+      tagId: "FD-DJY-YuanDong.140623F0221MDQ02GS015DB0111SW01RAW00",
+      triggerType: -1,
+      deviceId: null,
+      suffix: null,
+      rank: 4,
+      uniformCode: "DI00016",
+      stationId: "SXJ_KGDL_DJYF01_SBS",
+      modelId: null,
+      alarmType: "booststation",
+      deviceType: "booststation",
+      components: null,
+      subcomponents: null,
+      description: "1#主变35kV侧301进线手车工作位置",
+      characteristic: "动作",
+      resetTable: false,
+      enable: true,
+      name: null,
+      nemCode: null,
+      faultCause: null,
+      resolvent: null,
+      stationName: "丁家窑风电场",
+      componentsName: null,
+    },
+    {
+      id: "001063",
+      tagId: "FD-DJY-YuanDong.140623F0221MDQ02GS016DB0111SW11RAW00",
+      triggerType: -1,
+      deviceId: null,
+      suffix: null,
+      rank: 4,
+      uniformCode: "DI00017",
+      stationId: "SXJ_KGDL_DJYF01_SBS",
+      modelId: null,
+      alarmType: "booststation",
+      deviceType: "booststation",
+      components: null,
+      subcomponents: null,
+      description: "2#变压器高压侧202测控202断路器合位",
+      characteristic: "动作",
+      resetTable: false,
+      enable: true,
+      name: null,
+      nemCode: null,
+      faultCause: null,
+      resolvent: null,
+      stationName: "丁家窑风电场",
+      componentsName: null,
+    },
+    {
+      id: "001064",
+      tagId: "FD-DJY-YuanDong.140623F0221MDQ02GS018DB0111SW01RAW00",
+      triggerType: -1,
+      deviceId: null,
+      suffix: null,
+      rank: 4,
+      uniformCode: "DI00018",
+      stationId: "SXJ_KGDL_DJYF01_SBS",
+      modelId: null,
+      alarmType: "booststation",
+      deviceType: "booststation",
+      components: null,
+      subcomponents: null,
+      description: "2#变压器高压侧202测控202-1刀闸合位",
+      characteristic: "动作",
+      resetTable: false,
+      enable: true,
+      name: null,
+      nemCode: null,
+      faultCause: null,
+      resolvent: null,
+      stationName: "丁家窑风电场",
+      componentsName: null,
+    },
+    {
+      id: "001065",
+      tagId: "FD-DJY-YuanDong.140623F0221MDQ02GS019DB0111SW01RAW00",
+      triggerType: -1,
+      deviceId: null,
+      suffix: null,
+      rank: 4,
+      uniformCode: "DI00019",
+      stationId: "SXJ_KGDL_DJYF01_SBS",
+      modelId: null,
+      alarmType: "booststation",
+      deviceType: "booststation",
+      components: null,
+      subcomponents: null,
+      description: "2#变压器高压侧202测控202-A0地刀合位",
+      characteristic: "动作",
+      resetTable: false,
+      enable: true,
+      name: null,
+      nemCode: null,
+      faultCause: null,
+      resolvent: null,
+      stationName: "丁家窑风电场",
+      componentsName: null,
+    },
+  ],
   modelList: [],
   visible: false,
   form: {},
@@ -215,9 +691,9 @@ const query = reactive({
 });
 let total = ref(0);
 onMounted(() => {
-  getStationList();
-  getData();
-  getequipmentmodel_list();
+//   getStationList();
+//   getData();
+//   getequipmentmodel_list();
 });
 const dialogclose = () => {
   state.visible = false;

+ 385 - 4
src/views/IntegratedAlarm/deviceConfig/components/ycpoint.vue

@@ -305,9 +305,9 @@ import {
 } from "@/api/zhbj/index.js";
 import { outExportExcel } from "@/tools/excel/exportExcel.js"; //引入文件
 onMounted(() => {
-  getPoint(desc.value);
-  getDeviceModel();
-  getequipmentmodel_list();
+//   getPoint(desc.value);
+//   getDeviceModel();
+//   getequipmentmodel_list();
 });
 let editFormData = ref({});
 let editVisible = ref(false); //传感点
@@ -332,7 +332,388 @@ let state = reactive({
     { text: "数据类型", code: "categorysci" },
     { text: "描述", code: "description" },
   ],
-  pointTableData: "",
+  pointTableData: [
+    {
+      id: "1156264805150367744",
+      deviceId: "windturbine",
+      structureCode: "101010213",
+      metricCode: "AI0001",
+      name: "风机故障1",
+      enname: "",
+      unitName: "",
+      unitNamecn: "",
+      categoryData: "AI",
+      categorysci: "",
+      categorysys: null,
+      categoryres1: null,
+      categoryres2: null,
+      categoryres3: null,
+      categoryres4: null,
+      categoryres5: null,
+      description: "风机故障1",
+      deviceModelMetrics: null,
+    },
+    {
+      id: "1155576066015109120",
+      deviceId: "windturbine",
+      structureCode: "101010213",
+      metricCode: "AI0001",
+      name: "风机故障1",
+      enname: "",
+      unitName: "",
+      unitNamecn: "",
+      categoryData: "AI",
+      categorysci: "",
+      categorysys: null,
+      categoryres1: null,
+      categoryres2: null,
+      categoryres3: null,
+      categoryres4: null,
+      categoryres5: null,
+      description: "风机故障1",
+      deviceModelMetrics: null,
+    },
+    {
+      id: "1160891964355649536",
+      deviceId: "windturbine",
+      structureCode: "101010213",
+      metricCode: "AI0001",
+      name: "风机故障1",
+      enname: "",
+      unitName: "",
+      unitNamecn: "",
+      categoryData: "AI",
+      categorysci: "",
+      categorysys: null,
+      categoryres1: null,
+      categoryres2: null,
+      categoryres3: null,
+      categoryres4: null,
+      categoryres5: null,
+      description: "风机故障1",
+      deviceModelMetrics: null,
+    },
+    {
+      id: "1155913526452559872",
+      deviceId: "windturbine",
+      structureCode: "101010213",
+      metricCode: "AI0001",
+      name: "风机故障1",
+      enname: "",
+      unitName: "",
+      unitNamecn: "",
+      categoryData: "AI",
+      categorysci: "",
+      categorysys: null,
+      categoryres1: null,
+      categoryres2: null,
+      categoryres3: null,
+      categoryres4: null,
+      categoryres5: null,
+      description: "风机故障1",
+      deviceModelMetrics: null,
+    },
+    {
+      id: "1155913553241579520",
+      deviceId: "windturbine",
+      structureCode: "101010213",
+      metricCode: "AI0001",
+      name: "风机故障1",
+      enname: "",
+      unitName: "",
+      unitNamecn: "",
+      categoryData: "AI",
+      categorysci: "",
+      categorysys: null,
+      categoryres1: null,
+      categoryres2: null,
+      categoryres3: null,
+      categoryres4: null,
+      categoryres5: null,
+      description: "风机故障1",
+      deviceModelMetrics: null,
+    },
+    {
+      id: "1156259746740051968",
+      deviceId: "windturbine",
+      structureCode: "101010213",
+      metricCode: "AI0001",
+      name: "风机故障1",
+      enname: "",
+      unitName: "",
+      unitNamecn: "",
+      categoryData: "AI",
+      categorysci: "",
+      categorysys: null,
+      categoryres1: null,
+      categoryres2: null,
+      categoryres3: null,
+      categoryres4: null,
+      categoryres5: null,
+      description: "风机故障1",
+      deviceModelMetrics: null,
+    },
+    {
+      id: "1156267504902217728",
+      deviceId: "windturbine",
+      structureCode: "101010213",
+      metricCode: "AI0001",
+      name: "风机故障1",
+      enname: "",
+      unitName: "",
+      unitNamecn: "",
+      categoryData: "AI",
+      categorysci: "",
+      categorysys: null,
+      categoryres1: null,
+      categoryres2: null,
+      categoryres3: null,
+      categoryres4: null,
+      categoryres5: null,
+      description: "风机故障1",
+      deviceModelMetrics: null,
+    },
+    {
+      id: "1160891930474061824",
+      deviceId: "windturbine",
+      structureCode: "101010213",
+      metricCode: "AI0001",
+      name: "风机故障1",
+      enname: "",
+      unitName: "",
+      unitNamecn: "",
+      categoryData: "AI",
+      categorysci: "",
+      categorysys: null,
+      categoryres1: null,
+      categoryres2: null,
+      categoryres3: null,
+      categoryres4: null,
+      categoryres5: null,
+      description: "风机故障1",
+      deviceModelMetrics: null,
+    },
+    {
+      id: "1156260274253471744",
+      deviceId: "windturbine",
+      structureCode: "101010213",
+      metricCode: "AI0001",
+      name: "风机故障1",
+      enname: "",
+      unitName: "",
+      unitNamecn: "",
+      categoryData: "AI",
+      categorysci: "",
+      categorysys: null,
+      categoryres1: null,
+      categoryres2: null,
+      categoryres3: null,
+      categoryres4: null,
+      categoryres5: null,
+      description: "风机故障1",
+      deviceModelMetrics: null,
+    },
+    {
+      id: "1156267544110571520",
+      deviceId: "windturbine",
+      structureCode: "101010213",
+      metricCode: "AI0001",
+      name: "风机故障1",
+      enname: "",
+      unitName: "",
+      unitNamecn: "",
+      categoryData: "AI",
+      categorysci: "",
+      categorysys: null,
+      categoryres1: null,
+      categoryres2: null,
+      categoryres3: null,
+      categoryres4: null,
+      categoryres5: null,
+      description: "风机故障1",
+      deviceModelMetrics: null,
+    },
+    {
+      id: "1156260130451759104",
+      deviceId: "windturbine",
+      structureCode: "101010213",
+      metricCode: "AI0001",
+      name: "风机故障1",
+      enname: "",
+      unitName: "",
+      unitNamecn: "",
+      categoryData: "AI",
+      categorysci: "",
+      categorysys: null,
+      categoryres1: null,
+      categoryres2: null,
+      categoryres3: null,
+      categoryres4: null,
+      categoryres5: null,
+      description: "风机故障1",
+      deviceModelMetrics: null,
+    },
+    {
+      id: "1156265364842487808",
+      deviceId: "windturbine",
+      structureCode: "101010213",
+      metricCode: "AI0001",
+      name: "风机故障1",
+      enname: "",
+      unitName: "",
+      unitNamecn: "",
+      categoryData: "AI",
+      categorysci: "",
+      categorysys: null,
+      categoryres1: null,
+      categoryres2: null,
+      categoryres3: null,
+      categoryres4: null,
+      categoryres5: null,
+      description: "风机故障1",
+      deviceModelMetrics: null,
+    },
+    {
+      id: "1155576093894647808",
+      deviceId: "windturbine",
+      structureCode: "101010213",
+      metricCode: "AI0001",
+      name: "风机故障1",
+      enname: "",
+      unitName: "",
+      unitNamecn: "",
+      categoryData: "AI",
+      categorysci: "",
+      categorysys: null,
+      categoryres1: null,
+      categoryres2: null,
+      categoryres3: null,
+      categoryres4: null,
+      categoryres5: null,
+      description: "风机故障1",
+      deviceModelMetrics: null,
+    },
+    {
+      id: "1155803930232758272",
+      deviceId: "windturbine",
+      structureCode: "101010213",
+      metricCode: "AI0003",
+      name: "风机故障3",
+      enname: "",
+      unitName: "",
+      unitNamecn: "",
+      categoryData: "AI",
+      categorysci: "",
+      categorysys: null,
+      categoryres1: null,
+      categoryres2: null,
+      categoryres3: null,
+      categoryres4: null,
+      categoryres5: null,
+      description: "风机故障3",
+      deviceModelMetrics: null,
+    },
+    {
+      id: "1155803963267096576",
+      deviceId: "windturbine",
+      structureCode: "101010213",
+      metricCode: "AI0003",
+      name: "风机故障3",
+      enname: "",
+      unitName: "",
+      unitNamecn: "",
+      categoryData: "AI",
+      categorysci: "",
+      categorysys: null,
+      categoryres1: null,
+      categoryres2: null,
+      categoryres3: null,
+      categoryres4: null,
+      categoryres5: null,
+      description: "风机故障3",
+      deviceModelMetrics: null,
+    },
+    {
+      id: "1155911734918520832",
+      deviceId: "windturbine",
+      structureCode: "101010213",
+      metricCode: "AI0005",
+      name: "风机故障5",
+      enname: "",
+      unitName: "",
+      unitNamecn: "",
+      categoryData: "AI",
+      categorysci: "",
+      categorysys: null,
+      categoryres1: null,
+      categoryres2: null,
+      categoryres3: null,
+      categoryres4: null,
+      categoryres5: null,
+      description: "风机故障5",
+      deviceModelMetrics: null,
+    },
+    {
+      id: "1155911780854538240",
+      deviceId: "windturbine",
+      structureCode: "101010213",
+      metricCode: "AI0005",
+      name: "风机故障5",
+      enname: "",
+      unitName: "",
+      unitNamecn: "",
+      categoryData: "AI",
+      categorysci: "",
+      categorysys: null,
+      categoryres1: null,
+      categoryres2: null,
+      categoryres3: null,
+      categoryres4: null,
+      categoryres5: null,
+      description: "风机故障5",
+      deviceModelMetrics: null,
+    },
+    {
+      id: "6",
+      deviceId: "windturbine",
+      structureCode: "101010213",
+      metricCode: "AI0006",
+      name: "风机故障6",
+      enname: "",
+      unitName: "",
+      unitNamecn: "",
+      categoryData: "AI",
+      categorysci: "",
+      categorysys: null,
+      categoryres1: null,
+      categoryres2: null,
+      categoryres3: null,
+      categoryres4: null,
+      categoryres5: null,
+      description: "风机故障6",
+      deviceModelMetrics: null,
+    },
+    {
+      id: "7",
+      deviceId: "windturbine",
+      structureCode: "101010213",
+      metricCode: "AI0007",
+      name: "风机故障7",
+      enname: "",
+      unitName: "",
+      unitNamecn: "",
+      categoryData: "AI",
+      categorysci: "",
+      categorysys: null,
+      categoryres1: null,
+      categoryres2: null,
+      categoryres3: null,
+      categoryres4: null,
+      categoryres5: null,
+      description: "风机故障7",
+      deviceModelMetrics: null,
+    },
+  ],
   SearchVal: "",
   selectPoint: "",
   selectModel: "",

+ 385 - 4
src/views/IntegratedAlarm/deviceConfig/components/yxpoint.vue

@@ -277,9 +277,9 @@ import {
 } from "@/api/zhbj/index.js";
 import { outExportExcel } from "@/tools/excel/exportExcel.js"; //引入文件
 onMounted(() => {
-  getPoint(desc.value);
-  getDeviceModel();
-  getequipmentmodel_list();
+//   getPoint(desc.value);
+//   getDeviceModel();
+//   getequipmentmodel_list();
 });
 let editFormData = ref({});
 let editVisible = ref(false); //传感点
@@ -304,7 +304,388 @@ let state = reactive({
     { text: "数据类型", code: "categorysci" },
     { text: "描述", code: "description" },
   ],
-  pointTableData: "",
+  pointTableData: [
+    {
+      id: "1156264805150367744",
+      deviceId: "windturbine",
+      structureCode: "101010213",
+      metricCode: "AI0002",
+      name: "风机故障2",
+      enname: "",
+      unitName: "",
+      unitNamecn: "",
+      categoryData: "AI",
+      categorysci: "",
+      categorysys: null,
+      categoryres1: null,
+      categoryres2: null,
+      categoryres3: null,
+      categoryres4: null,
+      categoryres5: null,
+      description: "风机故障2",
+      deviceModelMetrics: null,
+    },
+    {
+      id: "1155576066015109120",
+      deviceId: "windturbine",
+      structureCode: "101010213",
+      metricCode: "AI0002",
+      name: "风机故障2",
+      enname: "",
+      unitName: "",
+      unitNamecn: "",
+      categoryData: "AI",
+      categorysci: "",
+      categorysys: null,
+      categoryres1: null,
+      categoryres2: null,
+      categoryres3: null,
+      categoryres4: null,
+      categoryres5: null,
+      description: "风机故障2",
+      deviceModelMetrics: null,
+    },
+    {
+      id: "1160891964355649536",
+      deviceId: "windturbine",
+      structureCode: "101010213",
+      metricCode: "AI0002",
+      name: "风机故障2",
+      enname: "",
+      unitName: "",
+      unitNamecn: "",
+      categoryData: "AI",
+      categorysci: "",
+      categorysys: null,
+      categoryres1: null,
+      categoryres2: null,
+      categoryres3: null,
+      categoryres4: null,
+      categoryres5: null,
+      description: "风机故障2",
+      deviceModelMetrics: null,
+    },
+    {
+      id: "1155913526452559872",
+      deviceId: "windturbine",
+      structureCode: "101010213",
+      metricCode: "AI0002",
+      name: "风机故障2",
+      enname: "",
+      unitName: "",
+      unitNamecn: "",
+      categoryData: "AI",
+      categorysci: "",
+      categorysys: null,
+      categoryres1: null,
+      categoryres2: null,
+      categoryres3: null,
+      categoryres4: null,
+      categoryres5: null,
+      description: "风机故障2",
+      deviceModelMetrics: null,
+    },
+    {
+      id: "1155913553241579520",
+      deviceId: "windturbine",
+      structureCode: "101010213",
+      metricCode: "AI0002",
+      name: "风机故障2",
+      enname: "",
+      unitName: "",
+      unitNamecn: "",
+      categoryData: "AI",
+      categorysci: "",
+      categorysys: null,
+      categoryres1: null,
+      categoryres2: null,
+      categoryres3: null,
+      categoryres4: null,
+      categoryres5: null,
+      description: "风机故障2",
+      deviceModelMetrics: null,
+    },
+    {
+      id: "1156259746740051968",
+      deviceId: "windturbine",
+      structureCode: "101010213",
+      metricCode: "AI0002",
+      name: "风机故障2",
+      enname: "",
+      unitName: "",
+      unitNamecn: "",
+      categoryData: "AI",
+      categorysci: "",
+      categorysys: null,
+      categoryres1: null,
+      categoryres2: null,
+      categoryres3: null,
+      categoryres4: null,
+      categoryres5: null,
+      description: "风机故障2",
+      deviceModelMetrics: null,
+    },
+    {
+      id: "1156267504902217728",
+      deviceId: "windturbine",
+      structureCode: "101010213",
+      metricCode: "AI0002",
+      name: "风机故障2",
+      enname: "",
+      unitName: "",
+      unitNamecn: "",
+      categoryData: "AI",
+      categorysci: "",
+      categorysys: null,
+      categoryres1: null,
+      categoryres2: null,
+      categoryres3: null,
+      categoryres4: null,
+      categoryres5: null,
+      description: "风机故障2",
+      deviceModelMetrics: null,
+    },
+    {
+      id: "1160891930474061824",
+      deviceId: "windturbine",
+      structureCode: "101010213",
+      metricCode: "AI0002",
+      name: "风机故障2",
+      enname: "",
+      unitName: "",
+      unitNamecn: "",
+      categoryData: "AI",
+      categorysci: "",
+      categorysys: null,
+      categoryres1: null,
+      categoryres2: null,
+      categoryres3: null,
+      categoryres4: null,
+      categoryres5: null,
+      description: "风机故障2",
+      deviceModelMetrics: null,
+    },
+    {
+      id: "1156260274253471744",
+      deviceId: "windturbine",
+      structureCode: "101010213",
+      metricCode: "AI0002",
+      name: "风机故障2",
+      enname: "",
+      unitName: "",
+      unitNamecn: "",
+      categoryData: "AI",
+      categorysci: "",
+      categorysys: null,
+      categoryres1: null,
+      categoryres2: null,
+      categoryres3: null,
+      categoryres4: null,
+      categoryres5: null,
+      description: "风机故障2",
+      deviceModelMetrics: null,
+    },
+    {
+      id: "1156267544110571520",
+      deviceId: "windturbine",
+      structureCode: "101010213",
+      metricCode: "AI0002",
+      name: "风机故障2",
+      enname: "",
+      unitName: "",
+      unitNamecn: "",
+      categoryData: "AI",
+      categorysci: "",
+      categorysys: null,
+      categoryres1: null,
+      categoryres2: null,
+      categoryres3: null,
+      categoryres4: null,
+      categoryres5: null,
+      description: "风机故障2",
+      deviceModelMetrics: null,
+    },
+    {
+      id: "1156260130451759104",
+      deviceId: "windturbine",
+      structureCode: "101010213",
+      metricCode: "AI0002",
+      name: "风机故障2",
+      enname: "",
+      unitName: "",
+      unitNamecn: "",
+      categoryData: "AI",
+      categorysci: "",
+      categorysys: null,
+      categoryres1: null,
+      categoryres2: null,
+      categoryres3: null,
+      categoryres4: null,
+      categoryres5: null,
+      description: "风机故障2",
+      deviceModelMetrics: null,
+    },
+    {
+      id: "1156265364842487808",
+      deviceId: "windturbine",
+      structureCode: "101010213",
+      metricCode: "AI0002",
+      name: "风机故障2",
+      enname: "",
+      unitName: "",
+      unitNamecn: "",
+      categoryData: "AI",
+      categorysci: "",
+      categorysys: null,
+      categoryres1: null,
+      categoryres2: null,
+      categoryres3: null,
+      categoryres4: null,
+      categoryres5: null,
+      description: "风机故障2",
+      deviceModelMetrics: null,
+    },
+    {
+      id: "1155576093894647808",
+      deviceId: "windturbine",
+      structureCode: "101010213",
+      metricCode: "AI0002",
+      name: "风机故障2",
+      enname: "",
+      unitName: "",
+      unitNamecn: "",
+      categoryData: "AI",
+      categorysci: "",
+      categorysys: null,
+      categoryres1: null,
+      categoryres2: null,
+      categoryres3: null,
+      categoryres4: null,
+      categoryres5: null,
+      description: "风机故障2",
+      deviceModelMetrics: null,
+    },
+    {
+      id: "1155803930232758272",
+      deviceId: "windturbine",
+      structureCode: "101010213",
+      metricCode: "AI0003",
+      name: "风机故障3",
+      enname: "",
+      unitName: "",
+      unitNamecn: "",
+      categoryData: "AI",
+      categorysci: "",
+      categorysys: null,
+      categoryres1: null,
+      categoryres2: null,
+      categoryres3: null,
+      categoryres4: null,
+      categoryres5: null,
+      description: "风机故障3",
+      deviceModelMetrics: null,
+    },
+    {
+      id: "1155803963267096576",
+      deviceId: "windturbine",
+      structureCode: "101010213",
+      metricCode: "AI0003",
+      name: "风机故障3",
+      enname: "",
+      unitName: "",
+      unitNamecn: "",
+      categoryData: "AI",
+      categorysci: "",
+      categorysys: null,
+      categoryres1: null,
+      categoryres2: null,
+      categoryres3: null,
+      categoryres4: null,
+      categoryres5: null,
+      description: "风机故障3",
+      deviceModelMetrics: null,
+    },
+    {
+      id: "1155911734918520832",
+      deviceId: "windturbine",
+      structureCode: "101010213",
+      metricCode: "AI0005",
+      name: "风机故障5",
+      enname: "",
+      unitName: "",
+      unitNamecn: "",
+      categoryData: "AI",
+      categorysci: "",
+      categorysys: null,
+      categoryres1: null,
+      categoryres2: null,
+      categoryres3: null,
+      categoryres4: null,
+      categoryres5: null,
+      description: "风机故障5",
+      deviceModelMetrics: null,
+    },
+    {
+      id: "1155911780854538240",
+      deviceId: "windturbine",
+      structureCode: "101010213",
+      metricCode: "AI0005",
+      name: "风机故障5",
+      enname: "",
+      unitName: "",
+      unitNamecn: "",
+      categoryData: "AI",
+      categorysci: "",
+      categorysys: null,
+      categoryres1: null,
+      categoryres2: null,
+      categoryres3: null,
+      categoryres4: null,
+      categoryres5: null,
+      description: "风机故障5",
+      deviceModelMetrics: null,
+    },
+    {
+      id: "6",
+      deviceId: "windturbine",
+      structureCode: "101010213",
+      metricCode: "AI0006",
+      name: "风机故障6",
+      enname: "",
+      unitName: "",
+      unitNamecn: "",
+      categoryData: "AI",
+      categorysci: "",
+      categorysys: null,
+      categoryres1: null,
+      categoryres2: null,
+      categoryres3: null,
+      categoryres4: null,
+      categoryres5: null,
+      description: "风机故障6",
+      deviceModelMetrics: null,
+    },
+    {
+      id: "7",
+      deviceId: "windturbine",
+      structureCode: "101010213",
+      metricCode: "AI0007",
+      name: "风机故障7",
+      enname: "",
+      unitName: "",
+      unitNamecn: "",
+      categoryData: "AI",
+      categorysci: "",
+      categorysys: null,
+      categoryres1: null,
+      categoryres2: null,
+      categoryres3: null,
+      categoryres4: null,
+      categoryres5: null,
+      description: "风机故障7",
+      deviceModelMetrics: null,
+    },
+  ],
   SearchVal: "",
   selectPoint: "",
   selectModel: "",

Fichier diff supprimé car celui-ci est trop grand
+ 4097 - 7
src/views/IntegratedAlarm/deviceConfig/index.vue


+ 731 - 0
src/views/IntegratedAlarm/reliability/customAnalyse/dataJson.json

@@ -0,0 +1,731 @@
+{
+    "code": 0,
+    "data": {
+        "data": {
+            "total": 13,
+            "pageSize": 13,
+            "title": [
+                {
+                    "label": "风机偏航过程震动",
+                    "code": "10"
+                },
+                {
+                    "label": "齿轮箱轴承温升超过40度",
+                    "code": "11"
+                },
+                {
+                    "label": "三相电流不平衡 ",
+                    "code": "12"
+                },
+                {
+                    "label": "断轴或联轴器打滑",
+                    "code": "13"
+                },
+                {
+                    "label": "风速突变",
+                    "code": "14"
+                }
+            ],
+            "data": [{
+                "wtId": "SXJ_KGDL_DJY_F_WT_0001_EQ",
+                "10_count": 15,
+                "10_time": 15,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#1"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0002_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 18,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 18,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#2"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0003_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13.257,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#3"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0004_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7.125,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#4"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0005_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8.245,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#5"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0006_EQ",
+                "10_count": 15,
+                "10_time": 8.698,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8.245,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#6"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0007_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 10.254,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#7"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0008_EQ",
+                "10_count": 15,
+                "10_time": 8.245,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.65,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#8"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0009_EQ",
+                "10_count": 15,
+                "10_time": 80.258,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 10.642,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#9"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0010_EQ",
+                "10_count": 15,
+                "10_time": 80,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 102.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#10"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0011_EQ",
+                "10_count": 15,
+                "10_time": 12.256,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 121.25,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#11"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0012_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#12"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0013_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#13"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0014_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#14"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0015_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#15"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0016_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#16"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0017_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#17"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0018_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#18"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0019_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#19"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0020_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#20"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0021_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#21"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0022_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#22"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0023_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#23"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0024_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#24"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0025_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#25"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0026_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#26"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0027_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#27"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0028_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#28"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0029_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#29"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0030_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#30"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0031_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#31"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0032_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#32"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0033_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#33"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0034_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#34"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0035_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#35"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0036_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#36"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0037_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#37"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0038_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#38"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0039_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#39"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0040_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#40"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0041_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#41"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0042_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#42"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0043_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#43"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0044_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#44"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0045_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#45"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0046_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#46"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0047_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#47"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0048_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#48"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0049_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#49"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0050_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#50"
+              }]
+        }
+    }
+}

+ 282 - 80
src/views/IntegratedAlarm/reliability/customAnalyse/index.vue

@@ -139,7 +139,7 @@
 
     <!-- 页面下部---统计表 -->
     <div class="table_all">
-      <div class="leftContent">
+      <div class="leftContent" :data-type="$store.state.moreSty">
         <span>{{ pageTitle }}</span>
       </div>
       <!--     @cell-click="handle" -->
@@ -168,6 +168,7 @@
             <div class="bar">
               <div
                 class="bar-percent"
+                 :data-type="$store.state.moreSty"
                 :style="{
                   width:
                     row[`${item.code}_count`] && row[`${item.code}_time`]
@@ -184,6 +185,7 @@
             <div class="bar">
               <div
                 class="bar-percent"
+                 :data-type="$store.state.moreSty"
                 :style="{
                   width:
                     row[`${item.code}_count`] && row[`${item.code}_time`]
@@ -242,6 +244,7 @@
 <script setup>
 import { useStore } from "vuex";
 import BASE from "@tools/basicTool.js";
+import dataJson from "./dataJson.json"
 import {
   ref,
   onMounted,
@@ -336,23 +339,203 @@ const getfetchRelatePart = async () => {
 };
 //型号列表
 const modelList = computed(() => {
-  if (state.changZhan == "") {
-    return [];
-  } else {
-    return state.modelListAll[state.changZhan];
-  }
+//   if (state.changZhan == "") {
+//     return [];
+//   } else {
+//     return state.modelListAll[state.changZhan];
+//   }
+return [
+    {
+      id: "SEC-W02B-1250kW",
+      nemCode: "SEC-W02B-1250kW",
+      name: "SEC-W02B-1250kW",
+      aname: "SEC-W02B-1250kW",
+      description: "DI",
+      powerProduction: 1250,
+      windturbineManufacturerId: "SHDQ_MF",
+      photo: null,
+      unit: null,
+      cutinwindSpeed: 3,
+      ratedwindSpeed: 11,
+      cutoutwindSpeed: "25",
+      sweptArea: 5800,
+      equipmentCategory: "F",
+    },
+  ];
 });
 //部件列表
 const componentList = computed(() => {
-  if (state.changZhan == "") {
-    return [];
-  } else {
-    if (state.changZhan.includes("FDC")) {
-      return state.fetchListAll?.fjbj;
-    } else {
-      return state.fetchListAll?.gfbj;
-    }
-  }
+//   if (state.changZhan == "") {
+//     return [];
+//   } else {
+//     if (state.changZhan.includes("FDC")) {
+//       return state.fetchListAll?.fjbj;
+//     } else {
+//       return state.fetchListAll?.gfbj;
+//     }
+//   }
+return [
+    {
+      id: "1",
+      category: "alertrule_category",
+      nemCode: "YP",
+      name: "叶片",
+      orderNumber: 1,
+      enable: 1,
+    },
+    {
+      id: "2",
+      category: "alertrule_category",
+      nemCode: "LG",
+      name: "轮毂",
+      orderNumber: 2,
+      enable: 1,
+    },
+    {
+      id: "3",
+      category: "alertrule_category",
+      nemCode: "TJ",
+      name: "塔架",
+      orderNumber: 3,
+      enable: 1,
+    },
+    {
+      id: "4",
+      category: "alertrule_category",
+      nemCode: "JC",
+      name: "机舱",
+      orderNumber: 4,
+      enable: 1,
+    },
+    {
+      id: "5",
+      category: "alertrule_category",
+      nemCode: "KZXT",
+      name: "控制系统",
+      orderNumber: 5,
+      enable: 1,
+    },
+    {
+      id: "6",
+      category: "alertrule_category",
+      nemCode: "BJXT",
+      name: "变桨系统",
+      orderNumber: 6,
+      enable: 1,
+    },
+    {
+      id: "7",
+      category: "alertrule_category",
+      nemCode: "PHXT",
+      name: "偏航系统",
+      orderNumber: 7,
+      enable: 1,
+    },
+    {
+      id: "8",
+      category: "alertrule_category",
+      nemCode: "CLX",
+      name: "齿轮箱",
+      orderNumber: 8,
+      enable: 1,
+    },
+    {
+      id: "9",
+      category: "alertrule_category",
+      nemCode: "FDJ",
+      name: "发电机",
+      orderNumber: 9,
+      enable: 1,
+    },
+    {
+      id: "10",
+      category: "alertrule_category",
+      nemCode: "BPQ",
+      name: "变频器",
+      orderNumber: 10,
+      enable: 1,
+    },
+    {
+      id: "11",
+      category: "alertrule_category",
+      nemCode: "YYXT",
+      name: "液压系统",
+      orderNumber: 11,
+      enable: 1,
+    },
+    {
+      id: "12",
+      category: "alertrule_category",
+      nemCode: "FZXT",
+      name: "辅助系统",
+      orderNumber: 12,
+      enable: 1,
+    },
+    {
+      id: "13",
+      category: "alertrule_category",
+      nemCode: "CFXT",
+      name: "测风系统",
+      orderNumber: 13,
+      enable: 1,
+    },
+    {
+      id: "14",
+      category: "alertrule_category",
+      nemCode: "DWXT",
+      name: "电网系统",
+      orderNumber: 14,
+      enable: 1,
+    },
+    {
+      id: "15",
+      category: "alertrule_category",
+      nemCode: "TDG",
+      name: "塔底柜",
+      orderNumber: 15,
+      enable: 1,
+    },
+    {
+      id: "16",
+      category: "alertrule_category",
+      nemCode: "CDL",
+      name: "传动链",
+      orderNumber: 16,
+      enable: 1,
+    },
+    {
+      id: "17",
+      category: "alertrule_category",
+      nemCode: "QT",
+      name: "其他",
+      orderNumber: 17,
+      enable: 1,
+    },
+    {
+      id: "42",
+      category: "alertrule_category",
+      nemCode: "CGQ",
+      name: "传感器",
+      orderNumber: 19,
+      enable: 1,
+    },
+    {
+      id: "41",
+      category: "alertrule_category",
+      nemCode: "BYQ",
+      name: "变压器",
+      orderNumber: 18,
+      enable: 1,
+    },
+    {
+      id: "44",
+      category: "alertrule_category",
+      nemCode: "ZZ",
+      name: "主轴",
+      orderNumber: 20,
+      enable: 1,
+    },
+  ];
 });
 watch(
   () => [modelList, componentList],
@@ -390,74 +573,83 @@ function changeChangzhan(val) {
   getAlarmId();
 }
 function getAlarmId() {
-  GetAlarmIdCustom({
-    components: state.components,
-    modelId: state.modelId,
-    wpId: state.changZhan,
-  }).then(({ data }) => {
-    state.alarmIdList = data;
-    // state.alarmIds = [];
-    state.alarmIds =
-      data.length <= 5
-        ? data.map((item) => item.alarmId)
-        : data.slice(0, 5).map((item) => item.alarmId);
+//   GetAlarmIdCustom({
+//     components: state.components,
+//     modelId: state.modelId,
+//     wpId: state.changZhan,
+//   }).then(({ data }) => {
+//     state.alarmIdList = data;
+//     // state.alarmIds = [];
+//     state.alarmIds =
+//       data.length <= 5
+//         ? data.map((item) => item.alarmId)
+//         : data.slice(0, 5).map((item) => item.alarmId);
 
-    getTableList();
-  });
+//     getTableList();
+//   });
+state.alarmIdList = [
+    {
+      alarmId: "10",
+      description: "发电机转速大于900,并且 任意齿轮箱轴温度每分钟上升超过1.5",
+    },
+  ];
+  getTableList();
 }
 // 获取列表数据 调用接口
 function getTableList() {
-  if (state.components?.length || state.typeVal === "booststation") {
-    getWarningCountList({
-      stationid: state.changZhan || "",
-      begin: state.starttime,
-      end: state.endtime,
-      timeType: "m",
-      components: state.typeVal === "booststation" ? [] : state.components,
-      modelId: state.modelId,
-      alarmIds: state.alarmIds,
-      deviceType: state.typeVal,
-    }).then((res) => {
-      if (res.length) {
-        let tableData = [];
-        let tHeard = [];
-        let data = res;
-        data.forEach((pEle) => {
-          for (let wtId in pEle) {
-            let wtItem = data.find((tableItem) => {
-              return wtId === tableItem.windturbineId;
-            });
-            !wtItem && (wtItem = { wtId });
-            pEle[wtId].forEach((cEle) => {
-              let someRes = tHeard.some((findEle) => {
-                return findEle.label == cEle.alertText;
-              });
+//   if (state.components?.length || state.typeVal === "booststation") {
+//     getWarningCountList({
+//       stationid: state.changZhan || "",
+//       begin: state.starttime,
+//       end: state.endtime,
+//       timeType: "m",
+//       components: state.typeVal === "booststation" ? [] : state.components,
+//       modelId: state.modelId,
+//       alarmIds: state.alarmIds,
+//       deviceType: state.typeVal,
+//     }).then((res) => {
+//       if (res.length) {
+//         let tableData = [];
+//         let tHeard = [];
+//         let data = res;
+//         data.forEach((pEle) => {
+//           for (let wtId in pEle) {
+//             let wtItem = data.find((tableItem) => {
+//               return wtId === tableItem.windturbineId;
+//             });
+//             !wtItem && (wtItem = { wtId });
+//             pEle[wtId].forEach((cEle) => {
+//               let someRes = tHeard.some((findEle) => {
+//                 return findEle.label == cEle.alertText;
+//               });
 
-              if (!someRes) {
-                tHeard.push({
-                  label: cEle.alertText,
-                  code: cEle.alarmid,
-                });
-              }
-              wtItem[`${cEle.alarmid}_count`] = cEle.count;
-              wtItem[`${cEle.alarmid}_time`] = cEle.time;
-              wtItem["wtname"] = cEle.windturbineCode;
-            });
-            tableData.push(wtItem);
-          }
-        });
-        state.tHeard = tHeard;
-        state.tableData = tableData;
-      } else {
-        state.tHeard = [];
-        state.tableData = [];
-      }
-    });
-  } else {
-    BASE.showMsg({
-      msg: "部件至少选择一项才可查询",
-    });
-  }
+//               if (!someRes) {
+//                 tHeard.push({
+//                   label: cEle.alertText,
+//                   code: cEle.alarmid,
+//                 });
+//               }
+//               wtItem[`${cEle.alarmid}_count`] = cEle.count;
+//               wtItem[`${cEle.alarmid}_time`] = cEle.time;
+//               wtItem["wtname"] = cEle.windturbineCode;
+//             });
+//             tableData.push(wtItem);
+//           }
+//         });
+//         state.tHeard = tHeard;
+//         state.tableData = tableData;
+//       } else {
+//         state.tHeard = [];
+//         state.tableData = [];
+//       }
+//     });
+//   } else {
+//     BASE.showMsg({
+//       msg: "部件至少选择一项才可查询",
+//     });
+//   }
+state.tHeard = dataJson.data.data.title;
+  state.tableData = dataJson.data.data.data;
 }
 
 const handleSort = function (val) {
@@ -578,12 +770,17 @@ const compare = function (property) {
   .table_all {
     height: calc(100% - 47px);
     width: 100%;
+    .leftContent[data-type~="greenSty"] {
+            background: url("~@/assets/imgs/title_left_bg1.png") no-repeat;
+        }
+        .leftContent[data-type~="blueSty"] {
+            background: url("~@/assets/imgs/title_left_bg.png") no-repeat;
+        }
     .leftContent {
       width: 242px;
       height: 41px;
       display: flex;
       align-items: center;
-      background: url("~@/assets/imgs/title_left_bg1.png") no-repeat;
 
       span {
         font-size: 16px;
@@ -611,9 +808,14 @@ const compare = function (property) {
     height: 16px;
     margin: 8px 0;
 
+    .bar-percent[data-type~="greenSty"] {
+                  background: @green;
+        }
+        .bar-percent[data-type~="blueSty"] {
+            background: @darkBlue;
+        }
     .bar-percent {
       height: 100%;
-      background: #05bb4c;
       margin-right: 8px;
     }
   }

+ 731 - 0
src/views/IntegratedAlarm/reliability/historyAnalyse/dataJson.json

@@ -0,0 +1,731 @@
+{
+    "code": 0,
+    "data": {
+        "data": {
+            "total": 13,
+            "pageSize": 13,
+            "title": [
+                {
+                    "label": "液压系统油位低",
+                    "code": "10"
+                },
+                {
+                    "label": "电能表检测电压不平衡",
+                    "code": "11"
+                },
+                {
+                    "label": "塔筒门过滤网堵塞 ",
+                    "code": "12"
+                },
+                {
+                    "label": "电能表检测三相电流不平衡",
+                    "code": "13"
+                },
+                {
+                    "label": "电能表有功功率和需求功率不匹配",
+                    "code": "14"
+                }
+            ],
+            "data": [{
+                "wtId": "SXJ_KGDL_DJY_F_WT_0001_EQ",
+                "10_count": 15,
+                "10_time": 15,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#1"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0002_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 18,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 18,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#2"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0003_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13.257,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#3"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0004_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7.125,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#4"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0005_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8.245,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#5"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0006_EQ",
+                "10_count": 15,
+                "10_time": 8.698,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8.245,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#6"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0007_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 10.254,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#7"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0008_EQ",
+                "10_count": 15,
+                "10_time": 8.245,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.65,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#8"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0009_EQ",
+                "10_count": 15,
+                "10_time": 80.258,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 10.642,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#9"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0010_EQ",
+                "10_count": 15,
+                "10_time": 80,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 102.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#10"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0011_EQ",
+                "10_count": 15,
+                "10_time": 12.256,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 121.25,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#11"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0012_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#12"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0013_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#13"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0014_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#14"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0015_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#15"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0016_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#16"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0017_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#17"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0018_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#18"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0019_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#19"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0020_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#20"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0021_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#21"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0022_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#22"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0023_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#23"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0024_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#24"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0025_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#25"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0026_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#26"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0027_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#27"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0028_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#28"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0029_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#29"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0030_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#30"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0031_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#31"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0032_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#32"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0033_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#33"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0034_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#34"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0035_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#35"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0036_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#36"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0037_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#37"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0038_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#38"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0039_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#39"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0040_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#40"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0041_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#41"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0042_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#42"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0043_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#43"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0044_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#44"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0045_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#45"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0046_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#46"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0047_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#47"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0048_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#48"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0049_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#49"
+              },
+              {
+                "wtId": "SXJ_KGDL_DJY_F_WT_0050_EQ",
+                "10_count": 15,
+                "10_time": 8,
+                "11_count": 5,
+                "11_time": 13,
+                "12_count": 7,
+                "12_time": 1.6,
+                "13_count": 4,
+                "13_time": 8,
+                "14_count": 13,
+                "14_time": 4.267,
+                "wtname": "#50"
+              }]
+        }
+    }
+}

+ 282 - 80
src/views/IntegratedAlarm/reliability/historyAnalyse/index.vue

@@ -143,7 +143,7 @@
 
     <!-- 页面下部---统计表 -->
     <div class="table_all">
-      <div class="leftContent">
+      <div class="leftContent" :data-type="$store.state.moreSty">
         <span>{{ pageTitle }}</span>
       </div>
       <el-table
@@ -171,6 +171,7 @@
             <div class="bar">
               <div
                 class="bar-percent"
+                 :data-type="$store.state.moreSty"
                 :style="{
                   width:
                     row[`${item.code}_count`] || row[`${item.code}_time`]
@@ -187,6 +188,7 @@
             <div class="bar">
               <div
                 class="bar-percent"
+                 :data-type="$store.state.moreSty"
                 :style="{
                   width:
                     row[`${item.code}_count`] || row[`${item.code}_time`]
@@ -245,6 +247,7 @@
 <script setup>
 import { useStore } from "vuex";
 import BASE from "@tools/basicTool.js";
+import dataJson from "./dataJson.json"
 import {
   ref,
   onMounted,
@@ -334,23 +337,203 @@ const getfetchRelatePart = async () => {
 };
 //型号列表
 const modelList = computed(() => {
-  if (state.changZhan == "") {
-    return [];
-  } else {
-    return state.modelListAll[state.changZhan];
-  }
+//   if (state.changZhan == "") {
+//     return [];
+//   } else {
+//     return state.modelListAll[state.changZhan];
+//   }
+return [
+    {
+      id: "SEC-W02B-1250kW",
+      nemCode: "SEC-W02B-1250kW",
+      name: "SEC-W02B-1250kW",
+      aname: "SEC-W02B-1250kW",
+      description: "DI",
+      powerProduction: 1250,
+      windturbineManufacturerId: "SHDQ_MF",
+      photo: null,
+      unit: null,
+      cutinwindSpeed: 3,
+      ratedwindSpeed: 11,
+      cutoutwindSpeed: "25",
+      sweptArea: 5800,
+      equipmentCategory: "F",
+    },
+  ];
 });
 //部件列表
 const componentList = computed(() => {
-  if (state.changZhan == "") {
-    return [];
-  } else {
-    if (state.changZhan.includes("FDC")) {
-      return state.fetchListAll?.fjbj;
-    } else {
-      return state.fetchListAll?.gfbj;
-    }
-  }
+//   if (state.changZhan == "") {
+//     return [];
+//   } else {
+//     if (state.changZhan.includes("FDC")) {
+//       return state.fetchListAll?.fjbj;
+//     } else {
+//       return state.fetchListAll?.gfbj;
+//     }
+//   }
+return [
+    {
+      id: "1",
+      category: "alertrule_category",
+      nemCode: "YP",
+      name: "叶片",
+      orderNumber: 1,
+      enable: 1,
+    },
+    {
+      id: "2",
+      category: "alertrule_category",
+      nemCode: "LG",
+      name: "轮毂",
+      orderNumber: 2,
+      enable: 1,
+    },
+    {
+      id: "3",
+      category: "alertrule_category",
+      nemCode: "TJ",
+      name: "塔架",
+      orderNumber: 3,
+      enable: 1,
+    },
+    {
+      id: "4",
+      category: "alertrule_category",
+      nemCode: "JC",
+      name: "机舱",
+      orderNumber: 4,
+      enable: 1,
+    },
+    {
+      id: "5",
+      category: "alertrule_category",
+      nemCode: "KZXT",
+      name: "控制系统",
+      orderNumber: 5,
+      enable: 1,
+    },
+    {
+      id: "6",
+      category: "alertrule_category",
+      nemCode: "BJXT",
+      name: "变桨系统",
+      orderNumber: 6,
+      enable: 1,
+    },
+    {
+      id: "7",
+      category: "alertrule_category",
+      nemCode: "PHXT",
+      name: "偏航系统",
+      orderNumber: 7,
+      enable: 1,
+    },
+    {
+      id: "8",
+      category: "alertrule_category",
+      nemCode: "CLX",
+      name: "齿轮箱",
+      orderNumber: 8,
+      enable: 1,
+    },
+    {
+      id: "9",
+      category: "alertrule_category",
+      nemCode: "FDJ",
+      name: "发电机",
+      orderNumber: 9,
+      enable: 1,
+    },
+    {
+      id: "10",
+      category: "alertrule_category",
+      nemCode: "BPQ",
+      name: "变频器",
+      orderNumber: 10,
+      enable: 1,
+    },
+    {
+      id: "11",
+      category: "alertrule_category",
+      nemCode: "YYXT",
+      name: "液压系统",
+      orderNumber: 11,
+      enable: 1,
+    },
+    {
+      id: "12",
+      category: "alertrule_category",
+      nemCode: "FZXT",
+      name: "辅助系统",
+      orderNumber: 12,
+      enable: 1,
+    },
+    {
+      id: "13",
+      category: "alertrule_category",
+      nemCode: "CFXT",
+      name: "测风系统",
+      orderNumber: 13,
+      enable: 1,
+    },
+    {
+      id: "14",
+      category: "alertrule_category",
+      nemCode: "DWXT",
+      name: "电网系统",
+      orderNumber: 14,
+      enable: 1,
+    },
+    {
+      id: "15",
+      category: "alertrule_category",
+      nemCode: "TDG",
+      name: "塔底柜",
+      orderNumber: 15,
+      enable: 1,
+    },
+    {
+      id: "16",
+      category: "alertrule_category",
+      nemCode: "CDL",
+      name: "传动链",
+      orderNumber: 16,
+      enable: 1,
+    },
+    {
+      id: "17",
+      category: "alertrule_category",
+      nemCode: "QT",
+      name: "其他",
+      orderNumber: 17,
+      enable: 1,
+    },
+    {
+      id: "42",
+      category: "alertrule_category",
+      nemCode: "CGQ",
+      name: "传感器",
+      orderNumber: 19,
+      enable: 1,
+    },
+    {
+      id: "41",
+      category: "alertrule_category",
+      nemCode: "BYQ",
+      name: "变压器",
+      orderNumber: 18,
+      enable: 1,
+    },
+    {
+      id: "44",
+      category: "alertrule_category",
+      nemCode: "ZZ",
+      name: "主轴",
+      orderNumber: 20,
+      enable: 1,
+    },
+  ];
 });
 watch(
   () => [modelList, componentList],
@@ -392,73 +575,82 @@ function changeChangzhan(val) {
   }
 }
 function getAlarmId() {
-  GetAlarmId({
-    components: state.components,
-    modelId: state.modelId,
-    wpId: state.changZhan,
-  }).then(({ data }) => {
-    state.alarmIdList = data;
-    state.alarmIds = [];
-    // state.alarmIds =
-    //   data.length <= 5
-    //     ? data.map((item) => item.alarmId)
-    //     : data.slice(0, 5).map((item) => item.alarmId);
-    getTableList();
-  });
+//   GetAlarmId({
+//     components: state.components,
+//     modelId: state.modelId,
+//     wpId: state.changZhan,
+//   }).then(({ data }) => {
+//     state.alarmIdList = data;
+//     state.alarmIds = [];
+//     // state.alarmIds =
+//     //   data.length <= 5
+//     //     ? data.map((item) => item.alarmId)
+//     //     : data.slice(0, 5).map((item) => item.alarmId);
+//     getTableList();
+//   });
+state.alarmIdList = [
+    {
+      alarmId: "10",
+      description: "发电机转速大于900,并且 任意齿轮箱轴温度每分钟上升超过1.5",
+    },
+  ];
+  getTableList();
 }
 // 获取列表数据 调用接口
 function getTableList() {
-  if (state.components?.length) {
-    getAlarmCountList({
-      stationid: state.changZhan || "",
-      begin: state.starttime,
-      end: state.endtime,
-      timeType: "m",
-      components: state.typeVal === "booststation" ? "" : state.components,
-      modelId: state.modelId,
-      alarmIds: state.alarmIds,
-      alarmType: state.typeVal,
-    }).then((res) => {
-      if (res.length) {
-        let tableData = [];
-        let tHeard = [];
-        let data = res;
-        data.forEach((pEle) => {
-          for (let wtId in pEle) {
-            let wtItem = data.find((tableItem) => {
-              return wtId === tableItem.windturbineId;
-            });
-            !wtItem && (wtItem = { wtId });
-            pEle[wtId].forEach((cEle) => {
-              let someRes = tHeard.some((findEle) => {
-                return findEle.label == cEle.alertText;
-              });
+//   if (state.components?.length) {
+//     getAlarmCountList({
+//       stationid: state.changZhan || "",
+//       begin: state.starttime,
+//       end: state.endtime,
+//       timeType: "m",
+//       components: state.typeVal === "booststation" ? "" : state.components,
+//       modelId: state.modelId,
+//       alarmIds: state.alarmIds,
+//       alarmType: state.typeVal,
+//     }).then((res) => {
+//       if (res.length) {
+//         let tableData = [];
+//         let tHeard = [];
+//         let data = res;
+//         data.forEach((pEle) => {
+//           for (let wtId in pEle) {
+//             let wtItem = data.find((tableItem) => {
+//               return wtId === tableItem.windturbineId;
+//             });
+//             !wtItem && (wtItem = { wtId });
+//             pEle[wtId].forEach((cEle) => {
+//               let someRes = tHeard.some((findEle) => {
+//                 return findEle.label == cEle.alertText;
+//               });
 
-              if (!someRes) {
-                tHeard.push({
-                  label: cEle.alertText,
-                  code: cEle.alarmid,
-                });
-              }
-              wtItem[`${cEle.alarmid}_count`] = cEle.count;
-              wtItem[`${cEle.alarmid}_time`] = cEle.time;
-              wtItem["wtname"] = cEle.windturbineCode;
-            });
-            tableData.push(wtItem);
-          }
-        });
-        state.tHeard = tHeard;
-        state.tableData = tableData;
-      } else {
-        state.tHeard = [];
-        state.tableData = [];
-      }
-    });
-  } else {
-    BASE.showMsg({
-      msg: "部件至少选择一项才可查询",
-    });
-  }
+//               if (!someRes) {
+//                 tHeard.push({
+//                   label: cEle.alertText,
+//                   code: cEle.alarmid,
+//                 });
+//               }
+//               wtItem[`${cEle.alarmid}_count`] = cEle.count;
+//               wtItem[`${cEle.alarmid}_time`] = cEle.time;
+//               wtItem["wtname"] = cEle.windturbineCode;
+//             });
+//             tableData.push(wtItem);
+//           }
+//         });
+//         state.tHeard = tHeard;
+//         state.tableData = tableData;
+//       } else {
+//         state.tHeard = [];
+//         state.tableData = [];
+//       }
+//     });
+//   } else {
+//     BASE.showMsg({
+//       msg: "部件至少选择一项才可查询",
+//     });
+//   }
+state.tHeard = dataJson.data.data.title;
+  state.tableData = dataJson.data.data.data;
 }
 
 const handleSort = function (val) {
@@ -580,12 +772,17 @@ const compare = function (property) {
   .table_all {
     height: calc(100% - 47px);
     width: 100%;
+    .leftContent[data-type~="greenSty"] {
+            background: url("~@/assets/imgs/title_left_bg1.png") no-repeat;
+        }
+        .leftContent[data-type~="blueSty"] {
+            background: url("~@/assets/imgs/title_left_bg.png") no-repeat;
+        }
     .leftContent {
       width: 242px;
       height: 41px;
       display: flex;
       align-items: center;
-      background: url("~@/assets/imgs/title_left_bg1.png") no-repeat;
 
       span {
         font-size: 16px;
@@ -613,9 +810,14 @@ const compare = function (property) {
     height: 16px;
     margin: 8px 0;
 
+    .bar-percent[data-type~="greenSty"] {
+                  background: @green;
+        }
+        .bar-percent[data-type~="blueSty"] {
+            background: @darkBlue;
+        }
     .bar-percent {
       height: 100%;
-      background: #05bb4c;
       margin-right: 8px;
     }
   }

+ 17 - 2
src/views/IntegratedAlarm/safe/components/safecomponent.vue

@@ -250,7 +250,22 @@ export default {
 
   data() {
     return {
-      alarmList: [],
+      alarmList: [
+        {
+            tsName: '06-11 12:00:00',
+            wpName: '风电场1',
+            deviceName: '#36',
+            description: '变频器报告电网已接入',
+            isClose: true
+        },
+        {
+            tsName: '06-11 12:00:00',
+            wpName: '风电场2',
+            deviceName: '#58',
+            description: '风机等待运行就绪',
+            isClose: false
+        }
+    ],
       iconfontsObj: {
         booststation: "iconIOTtubiao_huabanfuben",
         windturbine: "iconfengji",
@@ -265,7 +280,7 @@ export default {
   },
 
   created() {
-    this.initWarningList();
+    // this.initWarningList();
   },
 
   methods: {

+ 75 - 29
src/views/IntegratedAlarm/safe/customWarning/index.vue

@@ -168,7 +168,7 @@
     </div>
 
     <div class="table-wrapper">
-      <div class="leftContent">
+      <div class="leftContent" :data-type="$store.state.moreSty">
         <span>{{ pageTitle }}</span>
       </div>
       <el-table
@@ -345,6 +345,8 @@ onMounted(() => {
   getStationList();
   getequipmentmodel_list();
   getfetchRelatePart();
+
+  getAlarmHistoryt()
 });
 
 // 机型
@@ -553,34 +555,73 @@ const query = reactive({
 const tableLoading = ref(false);
 // 获取历史记录表
 const getAlarmHistoryt = async () => {
-  //   if (route.params.deviceId && route.params.alarmId) {
-  //     state.stationId = "";
-  //   }
-  tableLoading.value = true;
-  let params = {
-    pageNum: query.page,
-    pageSize: query.limit,
-    alarmId: state.alarmId,
-    alarmType: "custom",
-    deviceType: state.typeVal,
-    stationid: state.stationId,
-    deviceid:
-      state.deviceId || (state.typeVal == "booststation" ? "" : state.deviceId),
-    modelId: state.typeVal == "booststation" ? "" : state.modelId,
-    components: state.components,
-    description: state.description,
-    begin: state.dateTime[0],
-    end: state.dateTime[1],
-  };
-  const { data } = await alarm_history(params);
-  tableLoading.value = false;
-  query.pageTotal = data?.total;
-  data?.ls?.forEach((ele) => {
-    ele.isCloseName = ele.endts ? "已解除" : "未解除";
-    ele.deviceTypeName = tableFilter(ele.deviceType);
-    ele.endtsName = ele.endts > 0 ? formatTime(ele.endts) : "--";
+//   tableLoading.value = true;
+//   let params = {
+//     pageNum: query.page,
+//     pageSize: query.limit,
+//     alarmId: state.alarmId,
+//     alarmType: "custom",
+//     deviceType: state.typeVal,
+//     stationid: state.stationId,
+//     deviceid:
+//       state.deviceId || (state.typeVal == "booststation" ? "" : state.deviceId),
+//     modelId: state.typeVal == "booststation" ? "" : state.modelId,
+//     components: state.components,
+//     description: state.description,
+//     begin: state.dateTime[0],
+//     end: state.dateTime[1],
+//   };
+//   const { data } = await alarm_history(params);
+//   tableLoading.value = false;
+//   query.pageTotal = data?.total;
+//   data?.ls?.forEach((ele) => {
+//     ele.isCloseName = ele.endts ? "已解除" : "未解除";
+//     ele.deviceTypeName = tableFilter(ele.deviceType);
+//     ele.endtsName = ele.endts > 0 ? formatTime(ele.endts) : "--";
+//   });
+//   state.tableData = data?.ls;
+state.tableData = new Array(5).fill({
+    tbName: null,
+    alarmId: "SQ_0125",
+    alarmType: "windturbine",
+    characteristic: "预警",
+    components: "BPQ",
+    confirmed: false,
+    description: "变频器故障27",
+    deviceId: "SXJ_KGDL_XWT_F_WT_0014_EQ",
+    devicename: "14号风机",
+    deviceType: "windturbine",
+    enabled: true,
+    lineid: "SXJ_KGDL_XWTF01_LN",
+    linename: "一号风机线",
+    modelId: "SEC-W02B-1250kW",
+    projectid: "SXJ_KGDL_XWTF01_EG",
+    projectname: "一期项目",
+    rank: 3,
+    resettable: false,
+    stationid: "SXJ_KGDL_XWT_FDC_STA",
+    stationname: "13风电场",
+    subcomponents: "NULL",
+    suffix: null,
+    tagid: "FD-YYXWT-ShangQi.140623F1412MDL01BF399DB0122SP01RAW00",
+    triggertype: 1463,
+    uniformcode: "BJ0001",
+    superTableName: null,
+    ts: 1718160795000,
+    val: 1,
+    oval: null,
+    endts: 0,
+    timelong: 0,
+    name: null,
+    nemCode: "状态码1463",
+    faultCause: "13.7s>信号<=14.2s",
+    resolvent: "输入端142功率上升延迟300s",
+    wpName: "13风电场",
+    code: "#14",
+    wpId: null,
+    faultType: null,
+    id: "sxj_kgdl_xwt_f_wt_0014_eq_sq_0125",
   });
-  state.tableData = data?.ls;
 };
 //报警类型变化
 const typechange = () => {
@@ -744,12 +785,17 @@ p {
   .table-wrapper {
     height: calc(100% - 43px);
     width: 100%;
+    .leftContent[data-type~="greenSty"] {
+            background: url("~@/assets/imgs/title_left_bg1.png") no-repeat;
+        }
+        .leftContent[data-type~="blueSty"] {
+            background: url("~@/assets/imgs/title_left_bg.png") no-repeat;
+        }
     .leftContent {
       width: 242px;
       height: 41px;
       display: flex;
       align-items: center;
-      background: url("~@/assets/imgs/title_left_bg1.png") no-repeat;
 
       span {
         font-size: 16px;

+ 24 - 8
src/views/IntegratedAlarm/safe/dataSearch/index.vue

@@ -1,6 +1,6 @@
 <template>
   <div class="data-search">
-    <div class="leftContent">
+    <div class="leftContent" :data-type="$store.state.moreSty">
       <span>{{ pageTitle }}</span>
     </div>
     <div class="data-content">
@@ -355,12 +355,23 @@ const filterWTList = computed(() =>
 );
 //AI点检索
 const filterAIList = computed(() =>
-  state.AIList?.filter(
-    (data) => !state.inputAI || data.name.includes(state.inputAI)
-    //   !state.inputAI ||
-    //   (data.uniformCode.toUpperCase().includes(state.inputAI.toUpperCase()) ||
-    //   data.name.indexOf(state.inputAI))
-  )
+//   state.AIList?.filter(
+//     (data) => !state.inputAI || data.name.includes(state.inputAI)
+//   )
+new Array(15).fill({
+    unitNameCn: "",
+    englishName: null,
+    unitName: "",
+    modelId: "SEC-W02B-1250kW",
+    name: "01号风机风向",
+    valueUnit: null,
+    model: "SEC-W02B-1250kW",
+    typeId: "F",
+    id: "e222918e1e6a4feeba41007be3c85bf7",
+    uniformCode: "AI067",
+    value: "344.00",
+    time: 1718176440000,
+  })
 );
 
 // get 实时data
@@ -561,12 +572,17 @@ const export2Excel = async () => {
   width: 100%;
   height: 100%;
   padding: 10px 20px;
+  .leftContent[data-type~="greenSty"] {
+            background: url("~@/assets/imgs/title_left_bg1.png") no-repeat;
+        }
+        .leftContent[data-type~="blueSty"] {
+            background: url("~@/assets/imgs/title_left_bg.png") no-repeat;
+        }
   .leftContent {
     width: 242px;
     height: 41px;
     display: flex;
     align-items: center;
-    background: url("~@/assets/imgs/title_left_bg1.png") no-repeat;
 
     span {
       font-size: 16px;

+ 80 - 34
src/views/IntegratedAlarm/safe/historyWarning/index.vue

@@ -162,7 +162,7 @@
     </div>
 
     <div class="table-wrapper">
-      <div class="leftContent">
+      <div class="leftContent" :data-type="$store.state.moreSty">
         <span>{{ pageTitle }}</span>
       </div>
       <el-table
@@ -351,6 +351,8 @@ onMounted(() => {
   //     ];
   //   }
   //   getStationList(); //场站
+getAlarmHistoryt()
+
   getequipmentmodel_list(); //机型
   getfetchRelatePart(); //部件
 });
@@ -580,39 +582,78 @@ const query = reactive({
 
 // 获取历史记录表
 const getAlarmHistoryt = async () => {
-  //   if (route.params.deviceId && route.params.alarmId) {
-  //     state.stationId = "";
-  //   }
-  BASE.showLoading();
-  let params = {
-    pageNum: query.page,
-    pageSize: query.limit,
-    alarmId: state.alarmId,
-    alarmType: state.typeVal,
-    stationid: state.stationId,
-    deviceid: state.typeVal == "booststation" ? "" : state.deviceId,
-    modelId: state.typeVal == "booststation" ? "" : state.modelId,
-    components: state.components,
-    description: state.description,
-    begin: state.dateTime[0],
-    end: state.dateTime[1],
-  };
-  const { data } = await alarm_history(params);
-  BASE.closeLoading();
-  query.pageTotal = data?.total;
-  data?.ls?.forEach((ele) => {
-    ele.isCloseName = ele.endts ? "已解除" : "未解除";
-    ele.alarmTypeName =
-      ele.alarmType === "booststation"
-        ? "升压站"
-        : ele.alarmType === "windturbine"
-        ? "风机"
-        : ele.alarmType === "inverter"
-        ? "光伏"
-        : "";
-    ele.endtsName = ele.endts > 0 ? formatTime(ele.endts) : "--";
+//   BASE.showLoading();
+//   let params = {
+//     pageNum: query.page,
+//     pageSize: query.limit,
+//     alarmId: state.alarmId,
+//     alarmType: state.typeVal,
+//     stationid: state.stationId,
+//     deviceid: state.typeVal == "booststation" ? "" : state.deviceId,
+//     modelId: state.typeVal == "booststation" ? "" : state.modelId,
+//     components: state.components,
+//     description: state.description,
+//     begin: state.dateTime[0],
+//     end: state.dateTime[1],
+//   };
+//   const { data } = await alarm_history(params);
+//   BASE.closeLoading();
+//   query.pageTotal = data?.total;
+//   data?.ls?.forEach((ele) => {
+//     ele.isCloseName = ele.endts ? "已解除" : "未解除";
+//     ele.alarmTypeName =
+//       ele.alarmType === "booststation"
+//         ? "升压站"
+//         : ele.alarmType === "windturbine"
+//         ? "风机"
+//         : ele.alarmType === "inverter"
+//         ? "光伏"
+//         : "";
+//     ele.endtsName = ele.endts > 0 ? formatTime(ele.endts) : "--";
+//   });
+//   state.tableData = data?.ls;
+state.tableData = new Array(5).fill({
+    tbName: null,
+    alarmId: "SQ_0125",
+    alarmType: "windturbine",
+    characteristic: "报警",
+    components: "BPQ",
+    confirmed: false,
+    description: "变频器故障27",
+    deviceId: "SXJ_KGDL_XWT_F_WT_0014_EQ",
+    devicename: "14号风机",
+    deviceType: "windturbine",
+    enabled: true,
+    lineid: "SXJ_KGDL_XWTF01_LN",
+    linename: "一号风机线",
+    modelId: "SEC-W02B-1250kW",
+    projectid: "SXJ_KGDL_XWTF01_EG",
+    projectname: "一期项目",
+    rank: 3,
+    resettable: false,
+    stationid: "SXJ_KGDL_XWT_FDC_STA",
+    stationname: "13风电场",
+    subcomponents: "NULL",
+    suffix: null,
+    tagid: "FD-YYXWT-ShangQi.140623F1412MDL01BF399DB0122SP01RAW00",
+    triggertype: 1463,
+    uniformcode: "BJ0001",
+    superTableName: null,
+    ts: 1718160795000,
+    val: 1,
+    oval: null,
+    endts: 0,
+    timelong: 0,
+    name: null,
+    nemCode: "状态码1463",
+    faultCause: "13.7s>信号<=14.2s",
+    resolvent: "输入端142功率上升延迟300s",
+    wpName: "13风电场",
+    code: "#14",
+    wpId: null,
+    faultType: null,
+    id: "sxj_kgdl_xwt_f_wt_0014_eq_sq_0125",
   });
-  state.tableData = data?.ls;
 };
 //报警类型变化
 const typechange = () => {
@@ -778,12 +819,17 @@ p {
   .table-wrapper {
     height: calc(100% - 43px);
     width: 100%;
+    .leftContent[data-type~="greenSty"] {
+            background: url("~@/assets/imgs/title_left_bg1.png") no-repeat;
+        }
+        .leftContent[data-type~="blueSty"] {
+            background: url("~@/assets/imgs/title_left_bg.png") no-repeat;
+        }
     .leftContent {
       width: 242px;
       height: 41px;
       display: flex;
       align-items: center;
-      background: url("~@/assets/imgs/title_left_bg1.png") no-repeat;
 
       span {
         font-size: 16px;

+ 41 - 23
src/views/IntegratedAlarm/safe/stopQuery/index.vue

@@ -100,7 +100,7 @@
       </div>
     </div>
     <div class="table-wrapper">
-      <div class="leftContent">
+      <div class="leftContent" :data-type="$store.state.moreSty">
         <span>{{ pageTitle }}</span>
       </div>
       <el-table
@@ -226,6 +226,8 @@ export default {
       dayjs().format("YYYY-MM-DD HH:mm:ss"),
     ];
     this.getWpList();
+
+    this.getTableData();
   },
 
   methods: {
@@ -243,28 +245,39 @@ export default {
     },
 
     async getTableData() {
-      this.BASE.showLoading();
-      const { data } = await getStopQueryTableData({
-        wpId: this.wpId,
-        wtId: this.wtId,
-        type: this.type,
-        description: this.description,
-        begin: this.dateRange?.[0] || "",
-        end: this.dateRange?.[1] || "",
-        pageNum: this.pageNum,
-        pageSize: this.pageSize,
-      });
-      this.BASE.closeLoading();
-      data?.records?.forEach((ele) => {
-        ele.stopTimeName = dayjs(ele.stopTime).format("YYYY-MM-DD HH:mm:ss");
-        ele.startTimeName = ele.startTime
-          ? dayjs(ele.startTime).format("YYYY-MM-DD HH:mm:ss")
-          : "--";
-        ele.typeName = ele.stopTypeId === "gz" ? "故障" : "检修";
-      });
+    //   this.BASE.showLoading();
+    //   const { data } = await getStopQueryTableData({
+    //     wpId: this.wpId,
+    //     wtId: this.wtId,
+    //     type: this.type,
+    //     description: this.description,
+    //     begin: this.dateRange?.[0] || "",
+    //     end: this.dateRange?.[1] || "",
+    //     pageNum: this.pageNum,
+    //     pageSize: this.pageSize,
+    //   });
+    //   this.BASE.closeLoading();
+    //   data?.records?.forEach((ele) => {
+    //     ele.stopTimeName = dayjs(ele.stopTime).format("YYYY-MM-DD HH:mm:ss");
+    //     ele.startTimeName = ele.startTime
+    //       ? dayjs(ele.startTime).format("YYYY-MM-DD HH:mm:ss")
+    //       : "--";
+    //     ele.typeName = ele.stopTypeId === "gz" ? "故障" : "检修";
+    //   });
 
-      this.tableData = data?.records || [];
-      this.total = data.total || 0;
+    //   this.tableData = data?.records || [];
+    //   this.total = data.total || 0;
+    this.tableData = new Array(15).fill({
+        code: "01",
+        stopTimeName: "2024-06-12 12:55:03",
+        startTimeName: "",
+        stopHours: 5,
+        lossPower: 24,
+        warningId: "002",
+        handleWay: "",
+        faultView: "",
+        typeName: "故障",
+      });
     },
 
     currentChange(pageNum) {
@@ -324,12 +337,17 @@ export default {
   .table-wrapper {
     height: calc(100% - 62px);
     width: 100%;
+    .leftContent[data-type~="greenSty"] {
+            background: url("~@/assets/imgs/title_left_bg1.png") no-repeat;
+        }
+        .leftContent[data-type~="blueSty"] {
+            background: url("~@/assets/imgs/title_left_bg.png") no-repeat;
+        }
     .leftContent {
       width: 242px;
       height: 41px;
       display: flex;
       align-items: center;
-      background: url("~@/assets/imgs/title_left_bg1.png") no-repeat;
 
       span {
         font-size: 16px;

+ 39 - 3
src/views/economicsOperation/comprehensiveControl/maintenanceKPI/index.vue

@@ -48,7 +48,7 @@
       "
     >
       <div class="maintenance_title clearfix">
-        <div class="leftContent floatLeft"><span>检修KPI</span></div>
+        <div class="leftContent floatLeft" :data-type="$store.state.moreSty"><span>检修KPI</span></div>
       </div>
       <div class="economicTable1">
         <el-table
@@ -269,7 +269,38 @@ export default {
     this.pickerTime = dayjs().format("YYYY-MM");
   },
   mounted() {
-    this.getTableData();
+    // this.getTableData();
+    this.maintenanceData = new Array(20).fill({
+        stationName: '测试模拟设备1',
+        overhaulTeam: '模拟班组1',
+        years: 2024,
+        month: 9,
+        fnlyl_value: 96,
+        fnlyl_mark: 254,
+        jhjxssl_value: 95,
+        jhjxssl_mark: 125,
+        fjhjxssl_value: 99,
+        fjhjxssl_mark: 652,
+        qxdjdjsl_value: 87,
+        qxdjdjsl_mark: 985,
+        ddxqddjsl_value: 86,
+        ddxqddjsl_mark: 3265,
+        zsxqjsl_value: 95,
+        zsxqjsl_mark: 128,
+        mtbf_value: 83,
+        mtbf_mark: 259,
+        mttr_value: 96,
+        mttr_mark: 254,
+        sbklyl_value: 95,
+        sbklyl_mark: 125,
+        sblyxs_value: 99,
+        sblyxs_mark: 652,
+        dxkyxs_value: 96,
+        dxkyxs_mark: 256,
+        yhfxzql_value: 87,
+        yhfxzql_mark: 256,
+        remark: 2565
+    })
   },
   computed: {},
   methods: {
@@ -328,11 +359,16 @@ export default {
   padding: 0 20px;
   height: 100%;
   .maintenance_title {
+    .leftContent[data-type~="greenSty"] {
+      background: url("~@/assets/imgs/title_left_bg1.png") no-repeat;
+    }
+    .leftContent[data-type~="blueSty"] {
+        background: url("~@/assets/imgs/title_left_bg.png") no-repeat;
+    }
     .leftContent {
       width: 242px;
       height: 41px;
       line-height: 41px;
-      background: url("~@/assets/imgs/title_left_bg1.png") no-repeat;
 
       span {
         font-size: 16px;

+ 39 - 3
src/views/economicsOperation/comprehensiveControl/runningKPI/index.vue

@@ -49,7 +49,7 @@
       "
     >
       <div class="running_title clearfix">
-        <div class="leftContent floatLeft"><span>运行KPI</span></div>
+        <div class="leftContent floatLeft" :data-type="$store.state.moreSty"><span>运行KPI</span></div>
       </div>
       <div class="economicTable1">
         <el-table
@@ -269,7 +269,38 @@ export default {
     this.pickerTime = dayjs().format("YYYY-MM");
   },
   mounted() {
-    this.getTableData();
+    // this.getTableData();
+    this.runningData = new Array(20).fill({
+        stationName: '测试模拟设备1',
+        runningTeam: '测试模拟班组1',
+        years: 2024,
+        month: 9,
+        fnlyl_value: 96,
+        fnlyl_mark: 254,
+        xdssl_value: 95,
+        xdssl_mark: 125,
+        xnssl_value: 99,
+        xnssl_mark: 652,
+        fwjsl_value: 87,
+        fwjsl_mark: 985,
+        ztzhjsl_value: 86,
+        ztzhjsl_mark: 3265,
+        qxxdjsl_value: 95,
+        qxxdjsl_mark: 128,
+        qxysjsl_value: 83,
+        qxysjsl_mark: 259,
+        pjxfqrfs_value: 96,
+        pjxfqrfs_mark: 254,
+        mttf_value: 95,
+        mttf_mark: 125,
+        sblyxs_value: 99,
+        sblyxs_mark: 652,
+        zhcydl_value: 96,
+        zhcydl_mark: 256,
+        yhfxzql_value: 87,
+        yhfxzql_mark: 256,
+        remark: 2565
+    })
   },
   computed: {},
   methods: {
@@ -326,11 +357,16 @@ export default {
   padding: 0 20px;
   height: 100%;
   .running_title {
+    .leftContent[data-type~="greenSty"] {
+      background: url("~@/assets/imgs/title_left_bg1.png") no-repeat;
+    }
+    .leftContent[data-type~="blueSty"] {
+        background: url("~@/assets/imgs/title_left_bg.png") no-repeat;
+    }
     .leftContent {
       width: 242px;
       height: 41px;
       line-height: 41px;
-      background: url("~@/assets/imgs/title_left_bg1.png") no-repeat;
 
       span {
         font-size: 16px;

+ 60 - 3
src/views/economicsOperation/comprehensiveControl/stationControlKPI/index.vue

@@ -48,7 +48,7 @@
       "
     >
       <div class="stationControl_title clearfix">
-        <div class="leftContent floatLeft">
+        <div class="leftContent floatLeft" :data-type="$store.state.moreSty">
           <span>{{ tabIndex == -1 ? "风场" : "电站" }}管控KPI</span>
         </div>
       </div>
@@ -476,7 +476,59 @@ export default {
   created() {
     this.pickerTime = dayjs().format("YYYY-MM");
   },
-  mounted() {},
+  mounted() {
+    this.stationControlData = new Array(20).fill({
+        stationName: '测试模拟设备1',
+        overhaulTeam: '模拟班组1',
+        years: 2024,
+        month: 9,
+        rssbsg_value: 85,
+        rssbsg_mark: 96,
+        sbylza_value: 96,
+        sbylza_mark: 98,
+        fnlyl_value: 96,
+        fnlyl_mark: 254,
+        jhjxssl_value: 95,
+        jhjxssl_mark: 125,
+        fjhjxssl_value: 99,
+        fjhjxssl_mark: 652,
+        xdssl_value: 87,
+        xdssl_mark: 985,
+        xnssl_value: 86,
+        xnssl_mark: 3265,
+        fwjsl_value: 95,
+        fwjsl_mark: 128,
+        mtbf_value: 83,
+        mtbf_mark: 259,
+        mttr_value: 96,
+        mttr_mark: 254,
+        sbklyl_value: 95,
+        sbklyl_mark: 125,
+        sblyxs_value: 99,
+        sblyxs_mark: 652,
+        dxkyxs_value: 96,
+        dxkyxs_mark: 256,
+        yhfxzql_value: 87,
+        yhfxzql_mark: 256,
+        ztzhjsl_value: 83,
+        ztzhjsl_mark: 259,
+        gzcljsl_value: 96,
+        gzcljsl_mark: 254,
+        mttf_value: 95,
+        mttf_mark: 125,
+        zhcydl_value: 99,
+        zhcydl_mark: 652,
+        fglyczql_value: 96,
+        fglyczql_mark: 256,
+        pjfs_value: 87,
+        pjfs_mark: 256,
+        jfpl_value: 96,
+        jfpl_mark: 254,
+        yxfsl_value: 95,
+        yxfsl_mark: 125,
+        remark: 2565
+    })
+  },
   computed: {},
   methods: {
     handleSizeChange(val) {
@@ -546,11 +598,16 @@ export default {
   padding: 0 20px;
   height: 100%;
   .stationControl_title {
+    .leftContent[data-type~="greenSty"] {
+      background: url("~@/assets/imgs/title_left_bg1.png") no-repeat;
+    }
+    .leftContent[data-type~="blueSty"] {
+        background: url("~@/assets/imgs/title_left_bg.png") no-repeat;
+    }
     .leftContent {
       width: 242px;
       height: 41px;
       line-height: 41px;
-      background: url("~@/assets/imgs/title_left_bg1.png") no-repeat;
 
       span {
         font-size: 16px;

+ 16 - 3
src/views/economicsOperation/photovoltaicAnalyse/lslfx/index.vue

@@ -39,7 +39,7 @@
       </div>
     </div>
     <div class="lslfx-content">
-      <div class="leftContent"><span>离散率分析</span></div>
+      <div class="leftContent" :data-type="$store.state.moreSty"><span>离散率分析</span></div>
       <div class="lslfx-table">
         <el-table
           :data="tableData"
@@ -114,7 +114,15 @@ export default {
   },
   created() {
     this.pickerTimer = dayjs().add(-1, "day").format("YYYY-MM-DD");
-    this.getStationData();
+    // this.getStationData();
+    this.tableData = new Array(25).fill({
+        equipmentId: '测试模拟设备1',
+        averageLightIntensity: 125,
+        averagePower: 3265,
+        scatter: 95,
+        equivalentGeneratingTimeStan: 128,
+        scatterStatus: '正常'
+    })
   },
   methods: {
     // 获取场站列表
@@ -212,11 +220,16 @@ export default {
   .lslfx-content {
     height: calc(100% - 58px);
     width: 100%;
+    .leftContent[data-type~="greenSty"] {
+      background: url("~@/assets/imgs/title_left_bg1.png") no-repeat;
+    }
+    .leftContent[data-type~="blueSty"] {
+        background: url("~@/assets/imgs/title_left_bg.png") no-repeat;
+    }
     .leftContent {
       width: 242px;
       height: 41px;
       line-height: 41px;
-      background: url("~@/assets/imgs/title_left_bg1.png") no-repeat;
       span {
         font-size: 16px;
         font-family: Microsoft YaHei;

Fichier diff supprimé car celui-ci est trop grand
+ 1722 - 0
src/views/economicsOperation/photovoltaicAnalyse/performanceEvaluation/dataJson.json


+ 10 - 2
src/views/economicsOperation/photovoltaicAnalyse/performanceEvaluation/index.vue

@@ -64,7 +64,7 @@
       "
     >
       <div class="Evaluation_title clearfix">
-        <div class="leftContent floatLeft"><span>性能等级评估</span></div>
+        <div class="leftContent floatLeft" :data-type="$store.state.moreSty"><span>性能等级评估</span></div>
       </div>
 
       <div class="economicTable1">
@@ -114,6 +114,7 @@ import { getApiequipmentinfoDayListGf } from "@/api/powerAnalyse.js";
 // import historyDetail from "./historyDetail.vue";
 // import dayDetailInfo from "./dayDetailInfo.vue";
 import dayjs from "dayjs";
+import dataJson from "./dataJson.json"
 export default {
   name: "PerformanceEvaluation",
   components: {
@@ -153,6 +154,8 @@ export default {
     };
   },
   created() {
+    this.EvaluationData = dataJson.data.data.records;
+    this.page.total = dataJson.data.data.total;
     this.getCompanyData();
     this.pickerTimer = dayjs().add(-1, "day").format("YYYY-MM-DD");
     this.historyTimer = dayjs().add(-1, "day").format("YYYY-MM-DD");
@@ -246,11 +249,16 @@ export default {
   height: 100%;
 
   .Evaluation_title {
+    .leftContent[data-type~="greenSty"] {
+      background: url("~@/assets/imgs/title_left_bg1.png") no-repeat;
+    }
+    .leftContent[data-type~="blueSty"] {
+        background: url("~@/assets/imgs/title_left_bg.png") no-repeat;
+    }
     .leftContent {
       width: 242px;
       height: 41px;
       line-height: 41px;
-      background: url("~@/assets/imgs/title_left_bg1.png") no-repeat;
       span {
         font-size: 16px;
         font-family: Microsoft YaHei;

+ 1 - 1
src/views/economicsOperation/photovoltaicAnalyse/powerAnalyse/components/table.vue

@@ -1,5 +1,5 @@
 <script setup name="table">
-import { ref, computed, defineProps, defineEmits } from "vue";
+import { ref, computed, onMounted, defineProps, defineEmits } from "vue";
 const props = defineProps({
   height: {
     type: String,

+ 579 - 0
src/views/economicsOperation/photovoltaicAnalyse/powerAnalyse/dataJson.json

@@ -0,0 +1,579 @@
+{
+    "code": 200,
+    "data": {
+        "success": true,
+        "code": 200,
+        "message": "成功",
+        "count": null,
+        "name": "模拟风场数据",
+        "title": [
+            {
+                "key": "wtid",
+                "des": "电站"
+            },
+            {
+                "key": "speed",
+                "des": "风速"
+            },
+            {
+                "key": "theorypower",
+                "des": "理论功率"
+            },
+            {
+                "key": "ensurepower",
+                "des": "保证功率"
+            }
+        ],
+        "data": {
+            "SXJ_KGDL_XWT_F_WT_0001_EQ": [
+                {
+                "wtid": "SXJ_KGDL_XWT_F_WT_0001_EQ",
+                "nemCode": "#1",
+                "speed": 0.0,
+                "theorypower": 0.0,
+                "ensurepower": 0.0,
+                "datetime": "09-09",
+                "ideaP": 53,
+                "actualP": 89
+            },{
+                "wtid": "SXJ_KGDL_XWT_F_WT_0001_EQ",
+                "nemCode": "#1",
+                "speed": 0.0,
+                "theorypower": 0.0,
+                "ensurepower": 0.0,
+                "datetime": "09-09",
+                "ideaP": 53,
+                "actualP": 89
+            },{
+                "wtid": "SXJ_KGDL_XWT_F_WT_0001_EQ",
+                "nemCode": "#1",
+                "speed": 0.0,
+                "theorypower": 0.0,
+                "ensurepower": 0.0,
+                "datetime": "09-09",
+                "ideaP": 53,
+                "actualP": 89
+            },{
+                "wtid": "SXJ_KGDL_XWT_F_WT_0001_EQ",
+                "nemCode": "#1",
+                "speed": 0.0,
+                "theorypower": 0.0,
+                "ensurepower": 0.0,
+                "datetime": "09-09",
+                "ideaP": 53,
+                "actualP": 89
+            }],
+            "SXJ_KGDL_XWT_F_WT_0002_EQ": [
+                {
+                "wtid": "SXJ_KGDL_XWT_F_WT_0001_EQ",
+                "nemCode": "#1",
+                "speed": 0.0,
+                "theorypower": 0.0,
+                "ensurepower": 0.0,
+                "datetime": "09-10",
+                "ideaP": 28,
+                "actualP": 34
+            },{
+                "wtid": "SXJ_KGDL_XWT_F_WT_0001_EQ",
+                "nemCode": "#1",
+                "speed": 0.0,
+                "theorypower": 0.0,
+                "ensurepower": 0.0,
+                "datetime": "09-09",
+                "ideaP": 53,
+                "actualP": 89
+            },{
+                "wtid": "SXJ_KGDL_XWT_F_WT_0001_EQ",
+                "nemCode": "#1",
+                "speed": 0.0,
+                "theorypower": 0.0,
+                "ensurepower": 0.0,
+                "datetime": "09-09",
+                "ideaP": 53,
+                "actualP": 89
+            },{
+                "wtid": "SXJ_KGDL_XWT_F_WT_0001_EQ",
+                "nemCode": "#1",
+                "speed": 0.0,
+                "theorypower": 0.0,
+                "ensurepower": 0.0,
+                "datetime": "09-09",
+                "ideaP": 53,
+                "actualP": 89
+            }],
+            "SXJ_KGDL_XWT_F_WT_0003_EQ": [
+                {
+                "wtid": "SXJ_KGDL_XWT_F_WT_0001_EQ",
+                "nemCode": "#1",
+                "speed": 0.0,
+                "theorypower": 0.0,
+                "ensurepower": 0.0,
+                "datetime": "09-11",
+                "ideaP": 195,
+                "actualP": 189
+            },{
+                "wtid": "SXJ_KGDL_XWT_F_WT_0001_EQ",
+                "nemCode": "#1",
+                "speed": 0.0,
+                "theorypower": 0.0,
+                "ensurepower": 0.0,
+                "datetime": "09-09",
+                "ideaP": 53,
+                "actualP": 89
+            },{
+                "wtid": "SXJ_KGDL_XWT_F_WT_0001_EQ",
+                "nemCode": "#1",
+                "speed": 0.0,
+                "theorypower": 0.0,
+                "ensurepower": 0.0,
+                "datetime": "09-09",
+                "ideaP": 53,
+                "actualP": 89
+            },{
+                "wtid": "SXJ_KGDL_XWT_F_WT_0001_EQ",
+                "nemCode": "#1",
+                "speed": 0.0,
+                "theorypower": 0.0,
+                "ensurepower": 0.0,
+                "datetime": "09-09",
+                "ideaP": 53,
+                "actualP": 89
+            }],
+            "SXJ_KGDL_XWT_F_WT_0004_EQ": [
+                {
+                "wtid": "SXJ_KGDL_XWT_F_WT_0001_EQ",
+                "nemCode": "#1",
+                "speed": 0.0,
+                "theorypower": 0.0,
+                "ensurepower": 0.0,
+                "datetime": "09-12",
+                "ideaP": 153,
+                "actualP": 289
+            },{
+                "wtid": "SXJ_KGDL_XWT_F_WT_0001_EQ",
+                "nemCode": "#1",
+                "speed": 0.0,
+                "theorypower": 0.0,
+                "ensurepower": 0.0,
+                "datetime": "09-09",
+                "ideaP": 53,
+                "actualP": 89
+            },{
+                "wtid": "SXJ_KGDL_XWT_F_WT_0001_EQ",
+                "nemCode": "#1",
+                "speed": 0.0,
+                "theorypower": 0.0,
+                "ensurepower": 0.0,
+                "datetime": "09-09",
+                "ideaP": 53,
+                "actualP": 89
+            },{
+                "wtid": "SXJ_KGDL_XWT_F_WT_0001_EQ",
+                "nemCode": "#1",
+                "speed": 0.0,
+                "theorypower": 0.0,
+                "ensurepower": 0.0,
+                "datetime": "09-09",
+                "ideaP": 53,
+                "actualP": 89
+            }],
+            "SXJ_KGDL_XWT_F_WT_0005_EQ": [
+                {
+                "wtid": "SXJ_KGDL_XWT_F_WT_0001_EQ",
+                "nemCode": "#1",
+                "speed": 0.0,
+                "theorypower": 0.0,
+                "ensurepower": 0.0,
+                "datetime": "09-14",
+                "ideaP": 513,
+                "actualP": 819
+            },{
+                "wtid": "SXJ_KGDL_XWT_F_WT_0001_EQ",
+                "nemCode": "#1",
+                "speed": 0.0,
+                "theorypower": 0.0,
+                "ensurepower": 0.0,
+                "datetime": "09-09",
+                "ideaP": 53,
+                "actualP": 89
+            },{
+                "wtid": "SXJ_KGDL_XWT_F_WT_0001_EQ",
+                "nemCode": "#1",
+                "speed": 0.0,
+                "theorypower": 0.0,
+                "ensurepower": 0.0,
+                "datetime": "09-09",
+                "ideaP": 53,
+                "actualP": 89
+            },{
+                "wtid": "SXJ_KGDL_XWT_F_WT_0001_EQ",
+                "nemCode": "#1",
+                "speed": 0.0,
+                "theorypower": 0.0,
+                "ensurepower": 0.0,
+                "datetime": "09-09",
+                "ideaP": 53,
+                "actualP": 89
+            }]
+        },
+        "data1": [
+            {
+                "wtid": "SXJ_KGDL_XWT_F_WT_0001_EQ",
+                "nemCode": "#1",
+                "speed": 0.0,
+                "theorypower": 0.0,
+                "ensurepower": 0.0
+            },
+            {
+                "wtid": "SXJ_KGDL_XWT_F_WT_0001_EQ",
+                "nemCode": "#1",
+                "speed": 0.5,
+                "theorypower": 0.0,
+                "ensurepower": 0.0
+            },
+            {
+                "wtid": "SXJ_KGDL_XWT_F_WT_0001_EQ",
+                "nemCode": "#1",
+                "speed": 1.0,
+                "theorypower": 0.0,
+                "ensurepower": 0.0
+            },
+            {
+                "wtid": "SXJ_KGDL_XWT_F_WT_0001_EQ",
+                "nemCode": "#1",
+                "speed": 1.5,
+                "theorypower": 0.0,
+                "ensurepower": 0.0
+            },
+            {
+                "wtid": "SXJ_KGDL_XWT_F_WT_0001_EQ",
+                "nemCode": "#1",
+                "speed": 2.0,
+                "theorypower": 0.0,
+                "ensurepower": 0.0
+            },
+            {
+                "wtid": "SXJ_KGDL_XWT_F_WT_0001_EQ",
+                "nemCode": "#1",
+                "speed": 2.5,
+                "theorypower": 0.0,
+                "ensurepower": 0.0
+            },
+            {
+                "wtid": "SXJ_KGDL_XWT_F_WT_0001_EQ",
+                "nemCode": "#1",
+                "speed": 3.0,
+                "theorypower": 0.0,
+                "ensurepower": 1.58
+            },
+            {
+                "wtid": "SXJ_KGDL_XWT_F_WT_0001_EQ",
+                "nemCode": "#1",
+                "speed": 3.5,
+                "theorypower": 55.0,
+                "ensurepower": 27.05
+            },
+            {
+                "wtid": "SXJ_KGDL_XWT_F_WT_0001_EQ",
+                "nemCode": "#1",
+                "speed": 4.0,
+                "theorypower": 72.74,
+                "ensurepower": 65.07
+            },
+            {
+                "wtid": "SXJ_KGDL_XWT_F_WT_0001_EQ",
+                "nemCode": "#1",
+                "speed": 4.5,
+                "theorypower": 112.61,
+                "ensurepower": 108.84
+            },
+            {
+                "wtid": "SXJ_KGDL_XWT_F_WT_0001_EQ",
+                "nemCode": "#1",
+                "speed": 5.0,
+                "theorypower": 152.11,
+                "ensurepower": 154.88
+            },
+            {
+                "wtid": "SXJ_KGDL_XWT_F_WT_0001_EQ",
+                "nemCode": "#1",
+                "speed": 5.5,
+                "theorypower": 195.18,
+                "ensurepower": 203.61
+            },
+            {
+                "wtid": "SXJ_KGDL_XWT_F_WT_0001_EQ",
+                "nemCode": "#1",
+                "speed": 6.0,
+                "theorypower": 245.41,
+                "ensurepower": 258.38
+            },
+            {
+                "wtid": "SXJ_KGDL_XWT_F_WT_0001_EQ",
+                "nemCode": "#1",
+                "speed": 6.5,
+                "theorypower": 318.32,
+                "ensurepower": 323.97
+            },
+            {
+                "wtid": "SXJ_KGDL_XWT_F_WT_0001_EQ",
+                "nemCode": "#1",
+                "speed": 7.0,
+                "theorypower": 395.67,
+                "ensurepower": 404.75
+            },
+            {
+                "wtid": "SXJ_KGDL_XWT_F_WT_0001_EQ",
+                "nemCode": "#1",
+                "speed": 7.5,
+                "theorypower": 447.92,
+                "ensurepower": 503.29
+            },
+            {
+                "wtid": "SXJ_KGDL_XWT_F_WT_0001_EQ",
+                "nemCode": "#1",
+                "speed": 8.0,
+                "theorypower": 732.0,
+                "ensurepower": 619.41
+            },
+            {
+                "wtid": "SXJ_KGDL_XWT_F_WT_0001_EQ",
+                "nemCode": "#1",
+                "speed": 8.5,
+                "theorypower": 732.0,
+                "ensurepower": 749.9
+            },
+            {
+                "wtid": "SXJ_KGDL_XWT_F_WT_0001_EQ",
+                "nemCode": "#1",
+                "speed": 9.0,
+                "theorypower": 732.0,
+                "ensurepower": 888.85
+            },
+            {
+                "wtid": "SXJ_KGDL_XWT_F_WT_0001_EQ",
+                "nemCode": "#1",
+                "speed": 9.5,
+                "theorypower": 732.0,
+                "ensurepower": 1028.49
+            },
+            {
+                "wtid": "SXJ_KGDL_XWT_F_WT_0001_EQ",
+                "nemCode": "#1",
+                "speed": 10.0,
+                "theorypower": 732.0,
+                "ensurepower": 1160.42
+            },
+            {
+                "wtid": "SXJ_KGDL_XWT_F_WT_0001_EQ",
+                "nemCode": "#1",
+                "speed": 10.5,
+                "theorypower": 732.0,
+                "ensurepower": 1276.87
+            },
+            {
+                "wtid": "SXJ_KGDL_XWT_F_WT_0001_EQ",
+                "nemCode": "#1",
+                "speed": 11.0,
+                "theorypower": 732.0,
+                "ensurepower": 1371.92
+            },
+            {
+                "wtid": "SXJ_KGDL_XWT_F_WT_0001_EQ",
+                "nemCode": "#1",
+                "speed": 11.5,
+                "theorypower": 732.0,
+                "ensurepower": 1442.3
+            },
+            {
+                "wtid": "SXJ_KGDL_XWT_F_WT_0001_EQ",
+                "nemCode": "#1",
+                "speed": 12.0,
+                "theorypower": 732.0,
+                "ensurepower": 1487.83
+            },
+            {
+                "wtid": "SXJ_KGDL_XWT_F_WT_0001_EQ",
+                "nemCode": "#1",
+                "speed": 12.5,
+                "theorypower": 732.0,
+                "ensurepower": 1500.0
+            },
+            {
+                "wtid": "SXJ_KGDL_XWT_F_WT_0001_EQ",
+                "nemCode": "#1",
+                "speed": 13.0,
+                "theorypower": 732.0,
+                "ensurepower": 1500.0
+            },
+            {
+                "wtid": "SXJ_KGDL_XWT_F_WT_0001_EQ",
+                "nemCode": "#1",
+                "speed": 13.5,
+                "theorypower": 732.0,
+                "ensurepower": 1500.0
+            },
+            {
+                "wtid": "SXJ_KGDL_XWT_F_WT_0001_EQ",
+                "nemCode": "#1",
+                "speed": 14.0,
+                "theorypower": 732.0,
+                "ensurepower": 1500.0
+            },
+            {
+                "wtid": "SXJ_KGDL_XWT_F_WT_0001_EQ",
+                "nemCode": "#1",
+                "speed": 14.5,
+                "theorypower": 732.0,
+                "ensurepower": 1500.0
+            },
+            {
+                "wtid": "SXJ_KGDL_XWT_F_WT_0001_EQ",
+                "nemCode": "#1",
+                "speed": 15.0,
+                "theorypower": 732.0,
+                "ensurepower": 1500.0
+            },
+            {
+                "wtid": "SXJ_KGDL_XWT_F_WT_0001_EQ",
+                "nemCode": "#1",
+                "speed": 15.5,
+                "theorypower": 732.0,
+                "ensurepower": 1500.0
+            },
+            {
+                "wtid": "SXJ_KGDL_XWT_F_WT_0001_EQ",
+                "nemCode": "#1",
+                "speed": 16.0,
+                "theorypower": 732.0,
+                "ensurepower": 1500.0
+            },
+            {
+                "wtid": "SXJ_KGDL_XWT_F_WT_0001_EQ",
+                "nemCode": "#1",
+                "speed": 16.5,
+                "theorypower": 732.0,
+                "ensurepower": 1500.0
+            },
+            {
+                "wtid": "SXJ_KGDL_XWT_F_WT_0001_EQ",
+                "nemCode": "#1",
+                "speed": 17.0,
+                "theorypower": 732.0,
+                "ensurepower": 1500.0
+            },
+            {
+                "wtid": "SXJ_KGDL_XWT_F_WT_0001_EQ",
+                "nemCode": "#1",
+                "speed": 17.5,
+                "theorypower": 732.0,
+                "ensurepower": 1500.0
+            },
+            {
+                "wtid": "SXJ_KGDL_XWT_F_WT_0001_EQ",
+                "nemCode": "#1",
+                "speed": 18.0,
+                "theorypower": 732.0,
+                "ensurepower": 1500.0
+            },
+            {
+                "wtid": "SXJ_KGDL_XWT_F_WT_0001_EQ",
+                "nemCode": "#1",
+                "speed": 18.5,
+                "theorypower": 732.0,
+                "ensurepower": 1500.0
+            },
+            {
+                "wtid": "SXJ_KGDL_XWT_F_WT_0001_EQ",
+                "nemCode": "#1",
+                "speed": 19.0,
+                "theorypower": 732.0,
+                "ensurepower": 1500.0
+            },
+            {
+                "wtid": "SXJ_KGDL_XWT_F_WT_0001_EQ",
+                "nemCode": "#1",
+                "speed": 19.5,
+                "theorypower": 732.0,
+                "ensurepower": 1500.0
+            },
+            {
+                "wtid": "SXJ_KGDL_XWT_F_WT_0001_EQ",
+                "nemCode": "#1",
+                "speed": 20.0,
+                "theorypower": 732.0,
+                "ensurepower": 1500.0
+            },
+            {
+                "wtid": "SXJ_KGDL_XWT_F_WT_0001_EQ",
+                "nemCode": "#1",
+                "speed": 20.5,
+                "theorypower": 732.0,
+                "ensurepower": 1500.0
+            },
+            {
+                "wtid": "SXJ_KGDL_XWT_F_WT_0001_EQ",
+                "nemCode": "#1",
+                "speed": 21.0,
+                "theorypower": 732.0,
+                "ensurepower": 1500.0
+            },
+            {
+                "wtid": "SXJ_KGDL_XWT_F_WT_0001_EQ",
+                "nemCode": "#1",
+                "speed": 21.5,
+                "theorypower": 732.0,
+                "ensurepower": 1500.0
+            },
+            {
+                "wtid": "SXJ_KGDL_XWT_F_WT_0001_EQ",
+                "nemCode": "#1",
+                "speed": 22.0,
+                "theorypower": 732.0,
+                "ensurepower": 1500.0
+            },
+            {
+                "wtid": "SXJ_KGDL_XWT_F_WT_0001_EQ",
+                "nemCode": "#1",
+                "speed": 22.5,
+                "theorypower": 732.0,
+                "ensurepower": 1500.0
+            },
+            {
+                "wtid": "SXJ_KGDL_XWT_F_WT_0001_EQ",
+                "nemCode": "#1",
+                "speed": 23.0,
+                "theorypower": 732.0,
+                "ensurepower": 1500.0
+            },
+            {
+                "wtid": "SXJ_KGDL_XWT_F_WT_0001_EQ",
+                "nemCode": "#1",
+                "speed": 23.5,
+                "theorypower": 732.0,
+                "ensurepower": 1500.0
+            },
+            {
+                "wtid": "SXJ_KGDL_XWT_F_WT_0001_EQ",
+                "nemCode": "#1",
+                "speed": 24.0,
+                "theorypower": 732.0,
+                "ensurepower": 1500.0
+            },
+            {
+                "wtid": "SXJ_KGDL_XWT_F_WT_0001_EQ",
+                "nemCode": "#1",
+                "speed": 24.5,
+                "theorypower": 732.0,
+                "ensurepower": 1500.0
+            },
+            {
+                "wtid": "SXJ_KGDL_XWT_F_WT_0001_EQ",
+                "nemCode": "#1",
+                "speed": 25.0,
+                "theorypower": 732.0,
+                "ensurepower": 1500.0
+            }
+        ]
+    }
+}

+ 15 - 6
src/views/economicsOperation/photovoltaicAnalyse/powerAnalyse/index.vue

@@ -90,11 +90,11 @@
       </div>
     </div>
     <div style="height: calc(100% - 40px); padding-bottom: 10px">
-      <el-tabs v-model="activeTab">
+      <el-tabs v-model="activeTab" @tab-click="tabClick">
         <el-tab-pane label="表格数据" name="1"> </el-tab-pane>
         <el-tab-pane label="图表展示" name="2"> </el-tab-pane>
         <table-cop
-          v-show="activeTab === '1'"
+          v-if="activeTab === '1'"
           :data="tableData"
           :loading="tableLoading"
           :column="tableColumn"
@@ -102,7 +102,7 @@
           :tableId="tableShowId"
           :tableName="tableName"
         ></table-cop>
-        <div v-show="activeTab === '2'" style="height: 100%">
+        <div v-if="activeTab === '2'" style="height: 100%">
           <CurrentScatterChart
             ref="chartRef"
             width="100%"
@@ -190,6 +190,7 @@ import {
   getPowerFittingTable,
   getPowerFittingSelectedChart,
 } from "@/api/powerAnalyse.js";
+import dataJson from "./dataJson.json"
 export default {
   // 名称
   name: "PowerAnalyse",
@@ -274,6 +275,9 @@ export default {
 
   // 函数
   methods: {
+    tabClick(val) {
+        this.dataChange(dataJson)
+    },
     // 时间选择器第一个禁用
     disabledDate(time) {
       if (this.enddate) {
@@ -484,6 +488,10 @@ export default {
     // 获取图表数据
     getChartData(params) {
       getPowerFittingChartGF(params).then((res) => {
+        this,dataChange(res)
+      });
+    },
+    dataChange(res) {
         this.tableData = [];
         if (res.code == 200) {
           this.tableColumn = res.data.title.map((o) => {
@@ -543,7 +551,6 @@ export default {
           this.seriesData = {};
         }
         this.BASE.closeLoading();
-      });
     },
     //拟合按钮
     search() {
@@ -629,9 +636,11 @@ export default {
       }
     },
   },
-
+    mounted() {
+        this.dataChange(dataJson)
+    },
   created() {
-    this.getWp();
+    // this.getWp();
   },
 
   watch: {},

Fichier diff supprimé car celui-ci est trop grand
+ 70882 - 0
src/views/economicsOperation/photovoltaicAnalyse/powerHotAnalyse/dataJson.json


+ 9 - 2
src/views/economicsOperation/photovoltaicAnalyse/powerHotAnalyse/index.vue

@@ -291,6 +291,7 @@ import {
   getPowerFittingTable,
   getPowerFittingSelectedChartGF,
 } from "@/api/powerAnalyse.js";
+import dataJson from "./dataJson.json"
 export default {
   // 名称
   name: "PowerHotAnalyse",
@@ -376,7 +377,10 @@ export default {
     };
   },
   created() {
-    this.getWp();
+    // this.getWp();
+  },
+  mounted() {
+    this.chartdataChange(dataJson.chartData)
   },
   watch: {
     mode(val) {
@@ -653,6 +657,10 @@ export default {
     // 获取图表数据
     getChartData(params) {
       getPowerHotChartGF(params).then((res) => {
+        this.chartdataChange(res)
+      });
+    },
+    chartdataChange(res) {
         this.tableData = [];
         let chartRes = {};
         if (res.code == 200) {
@@ -749,7 +757,6 @@ export default {
           this.seriesData = {};
         }
         this.BASE.closeLoading();
-      });
     },
     //拟合按钮
     search() {

+ 23 - 3
src/views/economicsOperation/photovoltaicAnalyse/prAnalyse/index.vue

@@ -30,7 +30,7 @@
       >
     </div>
     <div class="pr-content">
-      <div class="leftContent">
+      <div class="leftContent" :data-type="$store.state.moreSty">
         <span>{{ selectValue }}</span>
       </div>
 
@@ -183,7 +183,22 @@ export default {
   },
   components: { barCharts, svgIcon },
   created() {
-    this.getStation();
+    // this.getStation();
+    this.tableData = new Array(25).fill({
+        prpm: 10,
+        wtid: '测试模拟设备1',
+        level: '正常',
+        rl: 125,
+        ljgzz: 3265,
+        scatter: 95,
+        fdl: 128,
+        llfdlmax: 1256,
+        pr: 251,
+        prhb: 214,
+        prhbzzl: 85,
+        prtb: 698,
+        prtbzzl: 89
+    })
   },
   methods: {
     getStation() {
@@ -293,11 +308,16 @@ export default {
     height: calc(100% - 40px);
     width: 100%;
     padding-bottom: 10px;
+    .leftContent[data-type~="greenSty"] {
+      background: url("~@/assets/imgs/title_left_bg1.png") no-repeat;
+    }
+    .leftContent[data-type~="blueSty"] {
+        background: url("~@/assets/imgs/title_left_bg.png") no-repeat;
+    }
     .leftContent {
       width: 242px;
       height: 45px;
       line-height: 45px;
-      background: url("~@/assets/imgs/title_left_bg1.png") no-repeat;
       span {
         font-size: 16px;
         font-family: Microsoft YaHei;

Fichier diff supprimé car celui-ci est trop grand
+ 1722 - 0
src/views/economicsOperation/photovoltaicAnalyse/stateTransition/dataJson.json


+ 10 - 2
src/views/economicsOperation/photovoltaicAnalyse/stateTransition/index.vue

@@ -61,7 +61,7 @@
       "
     >
       <div class="Evaluation_title clearfix">
-        <div class="leftContent floatLeft"><span>状态时间分析</span></div>
+        <div class="leftContent floatLeft" :data-type="$store.state.moreSty"><span>状态时间分析</span></div>
       </div>
 
       <div class="economicTable1">
@@ -139,6 +139,7 @@ import {
   getApiwpByCplistlist,
 } from "@/api/monthlyPerformanceAnalysis";
 import dayjs from "dayjs";
+import dataJson from "./dataJson.json"
 export default {
   name: "PerformanceAssess",
   data() {
@@ -157,6 +158,8 @@ export default {
     };
   },
   mounted() {
+    this.EvaluationData = dataJson.data.data.records;
+      this.page.total = dataJson.data.data.total;
     this.getCompanyData();
     this.pickerTimer = [
       new Date(
@@ -243,11 +246,16 @@ export default {
   height: 100%;
 
   .Evaluation_title {
+    .leftContent[data-type~="greenSty"] {
+      background: url("~@/assets/imgs/title_left_bg1.png") no-repeat;
+    }
+    .leftContent[data-type~="blueSty"] {
+      background: url("~@/assets/imgs/title_left_bg.png") no-repeat;
+    }
     .leftContent {
       width: 242px;
       height: 41px;
       line-height: 41px;
-      background: url("~@/assets/imgs/title_left_bg1.png") no-repeat;
       span {
         font-size: 16px;
         font-family: Microsoft YaHei;

Fichier diff supprimé car celui-ci est trop grand
+ 1722 - 0
src/views/economicsOperation/photovoltaicAnalyse/timeTransition/dataJson.json


+ 10 - 2
src/views/economicsOperation/photovoltaicAnalyse/timeTransition/index.vue

@@ -58,7 +58,7 @@
       "
     >
       <div class="Evaluation_title clearfix">
-        <div class="leftContent floatLeft"><span>状态转换分析</span></div>
+        <div class="leftContent floatLeft" :data-type="$store.state.moreSty"><span>状态转换分析</span></div>
       </div>
 
       <div class="economicTable1">
@@ -124,6 +124,7 @@ import {
   getApiwpByCplistlist,
 } from "@/api/monthlyPerformanceAnalysis";
 import dayjs from "dayjs";
+import dataJson from "./dataJson.json"
 export default {
   name: "PerformanceAssess",
   data() {
@@ -143,6 +144,8 @@ export default {
     };
   },
   mounted() {
+    this.EvaluationData = dataJson.data.data.records;
+      this.page.total = dataJson.data.data.total;
     this.getCompanyData();
     this.pickerTimer = dayjs().add(-1, "day").startOf("date");
   },
@@ -279,11 +282,16 @@ export default {
   height: 100%;
 
   .Evaluation_title {
+    .leftContent[data-type~="greenSty"] {
+      background: url("~@/assets/imgs/title_left_bg1.png") no-repeat;
+    }
+    .leftContent[data-type~="blueSty"] {
+      background: url("~@/assets/imgs/title_left_bg.png") no-repeat;
+    }
     .leftContent {
       width: 242px;
       height: 41px;
       line-height: 41px;
-      background: url("~@/assets/imgs/title_left_bg1.png") no-repeat;
       span {
         font-size: 16px;
         font-family: Microsoft YaHei;

+ 121 - 0
src/views/stateMonitor/DetailMatrix/dataJson.json

@@ -0,0 +1,121 @@
+{
+    "code": 0,
+    "sourceMapData": {
+        "jrts": 25,
+        "djts": 21,
+        "bwts": 15,
+        "gzts": 38,
+        "jxts": 15,
+        "xdts": 17,
+        "slts": 29,
+        "lxts": 38,
+
+        "dfts": 25,
+        "zcyx": 25,
+        "gztj": 25,
+        "jxtj": 25,
+        "xdjcl": 25,
+        "dwsl": 25,
+        "lx": 25,
+
+        "sdtj": 25,
+        "jclyx": 25,
+        "gzsl": 25,
+        "jxsl": 25,
+        "xdtj": 25,
+        "hjsl": 25,
+        "wz": 25
+    },
+    "showMatrixListdata": [
+        {
+            "wpname": "测试1",
+            "czlx": "-1",
+            "jrts": 25,
+            "djts": 21,
+            "bwts": 15,
+            "gzts": 38,
+            "jxts": 15,
+            "xdts": 17,
+            "slts": 29,
+            "lxts": 38,
+            "spped": 14,
+            "ycgl": 21556,
+            "bzgl": 1254,
+            "llgl": 125445,
+            "sjgl": 1254,
+            "wtlist": []
+        },
+        {
+            "wpname": "测试2",
+            "czlx": "-1",
+            "jrts": 25,
+            "djts": 21,
+            "bwts": 15,
+            "gzts": 38,
+            "jxts": 15,
+            "xdts": 17,
+            "slts": 29,
+            "lxts": 38,
+            "spped": 14,
+            "ycgl": 21556,
+            "bzgl": 1254,
+            "llgl": 125445,
+            "sjgl": 1254,
+            "wtlist": []
+        },
+        {
+            "wpname": "测试3",
+            "czlx": "-1",
+            "jrts": 25,
+            "djts": 21,
+            "bwts": 15,
+            "gzts": 38,
+            "jxts": 15,
+            "xdts": 17,
+            "slts": 29,
+            "lxts": 38,
+            "spped": 14,
+            "ycgl": 21556,
+            "bzgl": 1254,
+            "llgl": 125445,
+            "sjgl": 1254,
+            "wtlist": []
+        },
+        {
+            "wpname": "测试4",
+            "czlx": "-1",
+            "jrts": 25,
+            "djts": 21,
+            "bwts": 15,
+            "gzts": 38,
+            "jxts": 15,
+            "xdts": 17,
+            "slts": 29,
+            "lxts": 38,
+            "spped": 14,
+            "ycgl": 21556,
+            "bzgl": 1254,
+            "llgl": 125445,
+            "sjgl": 1254,
+            "wtlist": []
+        },
+        {
+            "wpname": "测试5",
+            "czlx": "-1",
+            "jrts": 25,
+            "djts": 21,
+            "bwts": 15,
+            "gzts": 38,
+            "jxts": 15,
+            "xdts": 17,
+            "slts": 29,
+            "lxts": 38,
+            "spped": 14,
+            "ycgl": 21556,
+            "bzgl": 1254,
+            "llgl": 125445,
+            "sjgl": 1254,
+            "wtlist": []
+        }
+    ]
+}

+ 33 - 11
src/views/stateMonitor/DetailMatrix/index.vue

@@ -364,6 +364,7 @@ import SvgIcon from "@com/coms/icon/svg-icon.vue";
 import { deepClone, findUpColor,chunkArray } from "@/utills/func.js";
 import HeaderNav from "@/components/headerNavSta/index.vue";
 import api from "@api/cockpit/matrix/index.js";
+import dataJson from "./dataJson.json"
 export default {
   // 名称
   name: "DetailMatrix", //明细矩阵
@@ -708,23 +709,44 @@ export default {
     };
   },
 
+  mounted() {
+    this.sourceMap = dataJson.sourceMapData
+    this.showMatrixList = dataJson.showMatrixListdata
+    dataJson.showMatrixListdata.forEach((it, index) =>{
+        it.wtlist = new Array(125).fill({
+            wtname: it.wpname,
+            status: index === 4 ? 6 : index,
+            // status: 4,
+            czlx: -1,
+            wtid: 5,
+            power: 2514,
+            speed: 13,
+            current: 251,
+            transfer: 21,
+            voltage: 25,
+            rate: 395,
+            ssqfzt: 1
+        })
+    })
+  },
+
   // 函数
   methods: {
     handleMouse() {},
     deepClone,
     findUpColor,chunkArray,
     // 头部tab选择
-    typeFlag(activeTab) {
-      this.activeTab = activeTab;
-      this.tabIndex = activeTab;
-      this.enterpriseIndex = "all";
-      this.requestData(true);
-      clearInterval(this.timmer);
-      this.timmer = null;
-      this.timmer = setInterval(() => {
-        this.requestData();
-      }, 5000);
-    },
+    // typeFlag(activeTab) {
+    //   this.activeTab = activeTab;
+    //   this.tabIndex = activeTab;
+    //   this.enterpriseIndex = "all";
+    //   this.requestData(true);
+    //   clearInterval(this.timmer);
+    //   this.timmer = null;
+    //   this.timmer = setInterval(() => {
+    //     this.requestData();
+    //   }, 5000);
+    // },
     // 请求服务
     requestData(first) {
       if (first) {

+ 100 - 0
src/views/stateMonitor/LightMatrix/dataJson.json

@@ -0,0 +1,100 @@
+{
+    "code": 0,
+    "sourceMapData": {
+        "jrts": 25,
+        "djts": 21,
+        "bwts": 15,
+        "gzts": 38,
+        "jxts": 15,
+        "xdts": 17,
+        "slts": 29,
+        "lxts": 38
+    },
+    "showMatrixListdata": [
+        {
+            "wpname": "测试1",
+            "jrts": 25,
+            "djts": 21,
+            "bwts": 15,
+            "gzts": 38,
+            "jxts": 15,
+            "xdts": 17,
+            "slts": 29,
+            "lxts": 38,
+            "spped": 14,
+            "ycgl": 21556,
+            "bzgl": 1254,
+            "llgl": 125445,
+            "sjgl": 1254,
+            "wtlist": []
+        },
+        {
+            "wpname": "测试2",
+            "jrts": 25,
+            "djts": 21,
+            "bwts": 15,
+            "gzts": 38,
+            "jxts": 15,
+            "xdts": 17,
+            "slts": 29,
+            "lxts": 38,
+            "spped": 14,
+            "ycgl": 21556,
+            "bzgl": 1254,
+            "llgl": 125445,
+            "sjgl": 1254,
+            "wtlist": []
+        },
+        {
+            "wpname": "测试3",
+            "jrts": 25,
+            "djts": 21,
+            "bwts": 15,
+            "gzts": 38,
+            "jxts": 15,
+            "xdts": 17,
+            "slts": 29,
+            "lxts": 38,
+            "spped": 14,
+            "ycgl": 21556,
+            "bzgl": 1254,
+            "llgl": 125445,
+            "sjgl": 1254,
+            "wtlist": []
+        },
+        {
+            "wpname": "测试4",
+            "jrts": 25,
+            "djts": 21,
+            "bwts": 15,
+            "gzts": 38,
+            "jxts": 15,
+            "xdts": 17,
+            "slts": 29,
+            "lxts": 38,
+            "spped": 14,
+            "ycgl": 21556,
+            "bzgl": 1254,
+            "llgl": 125445,
+            "sjgl": 1254,
+            "wtlist": []
+        },
+        {
+            "wpname": "测试5",
+            "jrts": 25,
+            "djts": 21,
+            "bwts": 15,
+            "gzts": 38,
+            "jxts": 15,
+            "xdts": 17,
+            "slts": 29,
+            "lxts": 38,
+            "spped": 14,
+            "ycgl": 21556,
+            "bzgl": 1254,
+            "llgl": 125445,
+            "sjgl": 1254,
+            "wtlist": []
+        }
+    ]
+}

+ 19 - 7
src/views/stateMonitor/LightMatrix/index.vue

@@ -413,6 +413,7 @@ import SvgIcon from "@com/coms/icon/svg-icon.vue";
 import api from "@api/cockpit/matrix/index.js";
 import { setInterval, clearInterval } from "timers";
 import HeaderNav from "@/components/headerNavSta/index.vue";
+import dataJson from "./dataJson.json"
 export default {
   // 名称
   name: "LightMatrix", //基础矩阵
@@ -618,14 +619,25 @@ export default {
   },
 
   created() {
+    this.sourceMap = dataJson.sourceMapData
+    this.showMatrixList = dataJson.showMatrixListdata
+    dataJson.showMatrixListdata.forEach((it, index) =>{
+        it.wtlist = new Array(125).fill({
+            wtname: it.wpname,
+            status: index === 2 ? 6 : index,
+            czlx: 251,
+            wpid: 5
+        })
+    })
+    
     let that = this;
-    that.$nextTick(() => {
-      //   this.loading = true;
-      that.requestData(true);
-      that.timmer = setInterval(() => {
-        that.requestData();
-      }, 5000);
-    });
+    // that.$nextTick(() => {
+    //   //   this.loading = true;
+    //   that.requestData(true);
+    //   that.timmer = setInterval(() => {
+    //     that.requestData();
+    //   }, 5000);
+    // });
   },
 
   unmounted() {

+ 17 - 2
src/views/stateMonitor/alarmCenter/commonAlarm/index.vue

@@ -114,7 +114,7 @@
     </div>
     <div class="alarm-list">
       <div class="line">
-        <div class="left-content"><span>报警列表</span></div>
+        <div class="left-content" :data-type="$store.state.moreSty"><span>报警列表</span></div>
         <div class="right-content"></div>
       </div>
       <div class="economicTable">
@@ -226,6 +226,15 @@ export default {
     };
   },
   created() {
+    this.alarmData = new Array(15).fill({
+    ts: '2024-09-12',
+    stationname: "测试SQ_0125",
+    devicename: "SQ_0125",
+    description: "测试11",
+    endts: "已解除",
+    endts: '2024-09-12',
+    confirmed: "是",
+  });
     // this.GetWpOptions();
   },
   methods: {
@@ -472,12 +481,18 @@ export default {
       align-items: center;
       justify-content: space-between;
       width: 100%;
+
+      .left-content[data-type~="greenSty"] {
+        background: url("~@/assets/imgs/title_left_bg1.png") no-repeat;
+        }
+        .left-content[data-type~="blueSty"] {
+        background: url("~@/assets/imgs/title_left_bg.png") no-repeat;
+        }
       .left-content {
         width: 242px;
         height: 41px;
         display: flex;
         align-items: center;
-        background: url("~@/assets/imgs/title_left_bg1.png") no-repeat;
         span {
           font-size: 16px;
           font-family: Microsoft YaHei;

+ 585 - 0
src/views/stateMonitor/factoryMonitor/photovoltaic/lighthome/dataJson.json

@@ -0,0 +1,585 @@
+{
+    "code": 0,
+    "wpInfosdata": {
+        "rfdl": 1541,
+        "rgzssdl": 153,
+        "rwhssdl": 158,
+        "rslssdl": 250,
+        "rxdssdl": 320,
+        "rxnssdl": 147,
+        "yfdl": 201,
+        "ygzssdl": 201,
+        "ywhssdl": 201,
+        "yslssdl": 201,
+        "yxdssdl": 201,
+        "yxnssdl": 201,
+        "nfdl": 201,
+        "ngzssdl": 201,
+        "nwhssdl": 201,
+        "nslssdl": 201,
+        "nxdssdl": 201,
+        "nxnssdl": 201,
+        "djts": 25,
+        "bwts": 25,
+        "gzts": 25,
+        "jxts": 25,
+        "xdts": 25,
+        "slts": 25,
+        "lxts": 25,
+        
+        "dfts": 28,
+        "fdts": 28,
+        "gztjts": 28,
+        "jxtjts": 28,
+        "xdjclts": 28,
+        "sldwts": 28,
+        "zclxts": 28,
+
+        "sdtjts": 35,
+        "jclts": 35,
+        "gzslts": 35,
+        "jxslts": 35,
+        "xdtjts": 35,
+        "slhjts": 35,
+        "wzlxts": 35,
+
+        "ylyxs": 26,
+        "nlyxs": 125,
+        "yfgnlyl": 85,
+        "ysbklyl": 95,
+
+        "sspjfsgzd": 2623,
+        "yggl": 1252,
+        "fhl": 85,
+
+        "czmc": "测试光伏电站",
+        "aqts": 27,
+        "jrts": 29,
+        "zzjrl": 1254,
+        "jwd": "10254, 25147",
+        "spbwsj": "2024-09-09",
+        "czwz": "anywhere"
+    },
+    "Powertrend": {
+        "units": ["(万KWh)", ""],
+        "value": [
+          {
+            "title": "预测功率",
+            "smooth": true,
+            "value": [
+                {
+                    "dateTime": "00:00",
+                    "value": 0.5
+                },
+                {
+                    "dateTime": "01:00",
+                    "value": 2.2
+                },
+                {
+                    "dateTime": "02:00",
+                    "value": 0.8
+                },
+                {
+                    "dateTime": "03:00",
+                    "value": 2.2
+                },
+                {
+                    "dateTime": "04:00",
+                    "value": 1.5
+                },
+                {
+                    "dateTime": "05:00",
+                    "value": 1.8
+                },
+                {
+                    "dateTime": "06:00",
+                    "value": 1.7
+                },
+                {
+                    "dateTime": "07:00",
+                    "value": 2.2
+                },
+                {
+                    "dateTime": "08:00",
+                    "value": 1.5
+                },
+                {
+                    "dateTime": "09:00",
+                    "value": 1.8
+                },
+                {
+                    "dateTime": "10:00",
+                    "value": 1.7
+                },
+                {
+                    "dateTime": "11:00",
+                    "value": 2.2
+                },
+                {
+                    "dateTime": "12:00",
+                    "value": 1.5
+                },
+                {
+                    "dateTime": "13:00",
+                    "value": 1.8
+                },
+                {
+                    "dateTime": "14:00",
+                    "value": 1.7
+                },
+                {
+                    "dateTime": "15:00",
+                    "value": 1.5
+                },
+                {
+                    "dateTime": "16:00",
+                    "value": 1.8
+                },
+                {
+                    "dateTime": "17:00",
+                    "value": 1.7
+                },
+                {
+                    "dateTime": "18:00",
+                    "value": 2.2
+                },
+                {
+                    "dateTime": "19:00",
+                    "value": 1.5
+                },
+                {
+                    "dateTime": "20:00",
+                    "value": 1.8
+                },
+                {
+                    "dateTime": "21:00",
+                    "value": 1.7
+                },
+                {
+                    "dateTime": "22:00",
+                    "value": 1.8
+                },
+                {
+                    "dateTime": "23:00",
+                    "value": 1.7
+                }
+            ]
+          },
+          {
+            "title": "理论功率",
+            "smooth": true,
+            "value": [
+                {
+                    "dateTime": "00:00",
+                    "value": 0.8
+                },
+                {
+                    "dateTime": "01:00",
+                    "value": 2.2
+                },
+                {
+                    "dateTime": "02:00",
+                    "value": 0.9
+                },
+                {
+                    "dateTime": "03:00",
+                    "value": 2.2
+                },
+                {
+                    "dateTime": "04:00",
+                    "value": 1.7
+                },
+                {
+                    "dateTime": "05:00",
+                    "value": 1.8
+                },
+                {
+                    "dateTime": "06:00",
+                    "value": 1.2
+                },
+                {
+                    "dateTime": "07:00",
+                    "value": 2.8
+                },
+                {
+                    "dateTime": "08:00",
+                    "value": 1.4
+                },
+                {
+                    "dateTime": "09:00",
+                    "value": 1.9
+                },
+                {
+                    "dateTime": "10:00",
+                    "value": 1.7
+                },
+                {
+                    "dateTime": "11:00",
+                    "value": 2.2
+                },
+                {
+                    "dateTime": "12:00",
+                    "value": 1.6
+                },
+                {
+                    "dateTime": "13:00",
+                    "value": 1.8
+                },
+                {
+                    "dateTime": "14:00",
+                    "value": 1.7
+                },
+                {
+                    "dateTime": "15:00",
+                    "value": 1.8
+                },
+                {
+                    "dateTime": "16:00",
+                    "value": 1.8
+                },
+                {
+                    "dateTime": "17:00",
+                    "value": 1.7
+                },
+                {
+                    "dateTime": "18:00",
+                    "value": 2.9
+                },
+                {
+                    "dateTime": "19:00",
+                    "value": 1.5
+                },
+                {
+                    "dateTime": "20:00",
+                    "value": 1.8
+                },
+                {
+                    "dateTime": "21:00",
+                    "value": 1.9
+                },
+                {
+                    "dateTime": "22:00",
+                    "value": 1.8
+                },
+                {
+                    "dateTime": "23:00",
+                    "value": 1.2
+                }
+            ]
+          },
+          {
+            "title": "实际功率",
+            "smooth": true,
+            "value": [
+                {
+                    "dateTime": "00:00",
+                    "value": 0.5
+                },
+                {
+                    "dateTime": "01:00",
+                    "value": 2.2
+                },
+                {
+                    "dateTime": "02:00",
+                    "value": 0.8
+                },
+                {
+                    "dateTime": "03:00",
+                    "value": 2.2
+                },
+                {
+                    "dateTime": "04:00",
+                    "value": 1.5
+                },
+                {
+                    "dateTime": "05:00",
+                    "value": 1.8
+                },
+                {
+                    "dateTime": "06:00",
+                    "value": 1.2
+                },
+                {
+                    "dateTime": "07:00",
+                    "value": 1.2
+                },
+                {
+                    "dateTime": "08:00",
+                    "value": 2.5
+                },
+                {
+                    "dateTime": "09:00",
+                    "value": 1.8
+                },
+                {
+                    "dateTime": "10:00",
+                    "value": 2.7
+                },
+                {
+                    "dateTime": "11:00",
+                    "value": 2.2
+                },
+                {
+                    "dateTime": "12:00",
+                    "value": 1.5
+                },
+                {
+                    "dateTime": "13:00",
+                    "value": 1.8
+                },
+                {
+                    "dateTime": "14:00",
+                    "value": 2.7
+                },
+                {
+                    "dateTime": "15:00",
+                    "value": 1.5
+                },
+                {
+                    "dateTime": "16:00",
+                    "value": 1.8
+                },
+                {
+                    "dateTime": "17:00",
+                    "value": 1.7
+                },
+                {
+                    "dateTime": "18:00",
+                    "value": 1.2
+                },
+                {
+                    "dateTime": "19:00",
+                    "value": 1.5
+                },
+                {
+                    "dateTime": "20:00",
+                    "value": 2.8
+                },
+                {
+                    "dateTime": "21:00",
+                    "value": 1.7
+                },
+                {
+                    "dateTime": "22:00",
+                    "value": 2.8
+                },
+                {
+                    "dateTime": "23:00",
+                    "value": 1.7
+                }
+            ]
+          }
+        ]
+    },
+    "barList": [
+        {
+          "name": "发电量",
+          "children": [25025,360215,142511,282514,173625,393254],
+          "date":["09-01", "09-02","09-03","09-04","09-05","09-06"]
+        }
+    ],
+    "contrastList": [
+        {
+          "title": "昨日",
+          "value": [
+                {
+                    "dateTime": "00:00",
+                    "value": 808
+                },
+                {
+                    "dateTime": "01:00",
+                    "value": 292
+                },
+                {
+                    "dateTime": "02:00",
+                    "value": 991
+                },
+                {
+                    "dateTime": "03:00",
+                    "value": 292
+                },
+                {
+                    "dateTime": "04:00",
+                    "value": 197
+                },
+                {
+                    "dateTime": "05:00",
+                    "value": 198
+                },
+                {
+                    "dateTime": "06:00",
+                    "value": 192
+                },
+                {
+                    "dateTime": "07:00",
+                    "value": 298
+                },
+                {
+                    "dateTime": "08:00",
+                    "value": 194
+                },
+                {
+                    "dateTime": "09:00",
+                    "value": 199
+                },
+                {
+                    "dateTime": "10:00",
+                    "value": 197
+                },
+                {
+                    "dateTime": "11:00",
+                    "value": 292
+                },
+                {
+                    "dateTime": "12:00",
+                    "value": 196
+                },
+                {
+                    "dateTime": "13:00",
+                    "value": 198
+                },
+                {
+                    "dateTime": "14:00",
+                    "value": 197
+                },
+                {
+                    "dateTime": "15:00",
+                    "value": 198
+                },
+                {
+                    "dateTime": "16:00",
+                    "value": 198
+                },
+                {
+                    "dateTime": "17:00",
+                    "value": 197
+                },
+                {
+                    "dateTime": "18:00",
+                    "value": 299
+                },
+                {
+                    "dateTime": "19:00",
+                    "value": 195
+                },
+                {
+                    "dateTime": "20:00",
+                    "value": 198
+                },
+                {
+                    "dateTime": "21:00",
+                    "value": 199
+                },
+                {
+                    "dateTime": "22:00",
+                    "value": 198
+                },
+                {
+                    "dateTime": "23:00",
+                    "value": 192
+                }
+            ]
+        },
+        {
+          "title": "今日",
+          "value": [
+                {
+                    "dateTime": "00:00",
+                    "value": 500
+                },
+                {
+                    "dateTime": "01:00",
+                    "value": 220
+                },
+                {
+                    "dateTime": "02:00",
+                    "value": 820
+                },
+                {
+                    "dateTime": "03:00",
+                    "value": 202
+                },
+                {
+                    "dateTime": "04:00",
+                    "value": 105
+                },
+                {
+                    "dateTime": "05:00",
+                    "value": 118
+                },
+                {
+                    "dateTime": "06:00",
+                    "value": 152
+                },
+                {
+                    "dateTime": "07:00",
+                    "value": 182
+                },
+                {
+                    "dateTime": "08:00",
+                    "value": 295
+                },
+                {
+                    "dateTime": "09:00",
+                    "value": 198
+                },
+                {
+                    "dateTime": "10:00",
+                    "value": 297
+                },
+                {
+                    "dateTime": "11:00",
+                    "value": 292
+                },
+                {
+                    "dateTime": "12:00",
+                    "value": 195
+                },
+                {
+                    "dateTime": "13:00",
+                    "value": 198
+                },
+                {
+                    "dateTime": "14:00",
+                    "value": 297
+                },
+                {
+                    "dateTime": "15:00",
+                    "value": 195
+                },
+                {
+                    "dateTime": "16:00",
+                    "value": 198
+                },
+                {
+                    "dateTime": "17:00",
+                    "value": 197
+                },
+                {
+                    "dateTime": "18:00",
+                    "value": 192
+                },
+                {
+                    "dateTime": "19:00",
+                    "value": 195
+                },
+                {
+                    "dateTime": "20:00",
+                    "value": 298
+                },
+                {
+                    "dateTime": "21:00",
+                    "value": 197
+                },
+                {
+                    "dateTime": "22:00",
+                    "value": 298
+                },
+                {
+                    "dateTime": "23:00",
+                    "value": 197
+                }
+            ]
+        }
+      ]
+}

+ 67 - 10
src/views/stateMonitor/factoryMonitor/photovoltaic/lighthome/index.vue

@@ -90,7 +90,7 @@
       <div class="first">
         <div class="base-info">
           <div class="base-info-left">
-            <div class="top">
+            <div class="top" :data-type="$store.state.moreSty">
               日发电量
               <div class="value">
                 {{ wpInfos?.rfdl || 0 }}
@@ -251,6 +251,7 @@ import PieChart from "@/views/stateMonitor/factoryMonitor/windPowerPlant/compone
 import BarCharts from "@/views/stateMonitor/factoryMonitor/windPowerPlant/components/barCharts";
 import LineCharts from "@/views/stateMonitor/factoryMonitor/windPowerPlant/components/lineCharts";
 import { FindPowerInfo } from "@/api/home/home.js";
+import dataJson from "./dataJson.json"
 export default {
   name: "lighthome", //光伏场站
   components: {
@@ -583,16 +584,61 @@ export default {
         this.screenHeight = window.screenHeight;
       })();
     };
-    this.timer = setInterval(() => {
-      this.getSingleMatrix(false);
-    }, 3000);
-    this.time2 = setInterval(() => {
-      this.getPowerStationAssets();
-      this.getLossValuesAnalyse(this.dates);
-      this.getBarValuesFDL();
-    }, 1000 * 60 * 15);
+    // this.timer = setInterval(() => {
+    //   this.getSingleMatrix(false);
+    // }, 3000);
+    // this.time2 = setInterval(() => {
+    //   this.getPowerStationAssets();
+    //   this.getLossValuesAnalyse(this.dates);
+    //   this.getBarValuesFDL();
+    // }, 1000 * 60 * 15);
+    this.dataChange()
   },
   methods: {
+    dataChange() {
+        this.wpInfos = dataJson.wpInfosdata
+        this.powerList = dataJson.Powertrend.value;
+        this.powerDataHome = [
+            {
+              title: "实时风速",
+              value: this.wpInfos.sspjfsgzd.toFixed(2),
+              dialogTitle: "实时风速",
+              max: 3000,
+              unit: "m/s",
+            },
+            {
+              title: "有功功率",
+              value: this.wpInfos.yggl.toFixed(2),
+              dialogTitle: "有功功率",
+              max: 3000,
+              unit: "MW",
+            },
+            {
+              title: "负荷率",
+              value: this.wpInfos.fhl.toFixed(2),
+              dialogTitle: "负荷率",
+              max: 100,
+              unit: "%",
+            },
+        ];
+        this.lossPower = {
+            SFDL: this.wpInfos.rfdl,
+            GZSS: this.wpInfos.rgzssdl,
+            WHSS: this.wpInfos.rwhssdl,
+            SLSS: this.wpInfos.rslssdl,
+            XDSS: this.wpInfos.rxdssdl,
+            XNSS: this.wpInfos.rxnssdl,
+            SUM:
+              this.wpInfos.rfdl +
+              this.wpInfos.rgzssdl +
+              this.wpInfos.rwhssdl +
+              this.wpInfos.rslssdl +
+              this.wpInfos.rxdssdl +
+              this.wpInfos.rxnssdl,
+        };
+        this.barList = dataJson.barList
+        this.contrastList = dataJson.contrastList
+    },
     clear() {
       this.wpInfos = {};
       this.powerList = [];
@@ -1428,6 +1474,18 @@ export default {
         border-bottom: 1px solid #fff;
       }
 
+      .top[data-type~="greenSty"] {
+        .value{
+            // color: #ff8300;
+            color: @orange;
+        }
+      }
+      .top[data-type~="blueSty"] {
+        .value{
+            color: @purple;
+        }
+      }
+
       .top {
         display: flex;
         flex-direction: column;
@@ -1443,7 +1501,6 @@ export default {
           font-size: 50px;
           font-family: Arial;
           font-weight: 400;
-          color: #ff8300;
           padding: 10px 0;
           .unit {
             font-size: 22px;

+ 585 - 0
src/views/stateMonitor/factoryMonitor/windPowerPlant/windhome/dataJson.json

@@ -0,0 +1,585 @@
+{
+    "code": 0,
+    "wpInfosdata": {
+        "rfdl": 201,
+        "rgzssdl": 153,
+        "rwhssdl": 158,
+        "rslssdl": 250,
+        "rxdssdl": 320,
+        "rxnssdl": 147,
+        "yfdl": 201,
+        "ygzssdl": 201,
+        "ywhssdl": 201,
+        "yslssdl": 201,
+        "yxdssdl": 201,
+        "yxnssdl": 201,
+        "nfdl": 201,
+        "ngzssdl": 201,
+        "nwhssdl": 201,
+        "nslssdl": 201,
+        "nxdssdl": 201,
+        "nxnssdl": 201,
+        "djts": 25,
+        "bwts": 25,
+        "gzts": 25,
+        "jxts": 25,
+        "xdts": 25,
+        "slts": 25,
+        "lxts": 25,
+        
+        "dfts": 28,
+        "fdts": 28,
+        "gztjts": 28,
+        "jxtjts": 28,
+        "xdjclts": 28,
+        "sldwts": 28,
+        "zclxts": 28,
+
+        "sdtjts": 35,
+        "jclts": 35,
+        "gzslts": 35,
+        "jxslts": 35,
+        "xdtjts": 35,
+        "slhjts": 35,
+        "wzlxts": 35,
+
+        "ylyxs": 26,
+        "nlyxs": 125,
+        "yfgnlyl": 85,
+        "ysbklyl": 95,
+
+        "sspjfsgzd": 2623,
+        "yggl": 1252,
+        "fhl": 85,
+
+        "czmc": "测试风场",
+        "aqts": 27,
+        "jrts": 29,
+        "zzjrl": 1254,
+        "jwd": "10254, 25147",
+        "spbwsj": "2024-09-09",
+        "czwz": "anywhere"
+    },
+    "Powertrend": {
+        "units": ["(万KWh)", ""],
+        "value": [
+          {
+            "title": "预测功率",
+            "smooth": true,
+            "value": [
+                {
+                    "dateTime": "00:00",
+                    "value": 0.5
+                },
+                {
+                    "dateTime": "01:00",
+                    "value": 2.2
+                },
+                {
+                    "dateTime": "02:00",
+                    "value": 0.8
+                },
+                {
+                    "dateTime": "03:00",
+                    "value": 2.2
+                },
+                {
+                    "dateTime": "04:00",
+                    "value": 1.5
+                },
+                {
+                    "dateTime": "05:00",
+                    "value": 1.8
+                },
+                {
+                    "dateTime": "06:00",
+                    "value": 1.7
+                },
+                {
+                    "dateTime": "07:00",
+                    "value": 2.2
+                },
+                {
+                    "dateTime": "08:00",
+                    "value": 1.5
+                },
+                {
+                    "dateTime": "09:00",
+                    "value": 1.8
+                },
+                {
+                    "dateTime": "10:00",
+                    "value": 1.7
+                },
+                {
+                    "dateTime": "11:00",
+                    "value": 2.2
+                },
+                {
+                    "dateTime": "12:00",
+                    "value": 1.5
+                },
+                {
+                    "dateTime": "13:00",
+                    "value": 1.8
+                },
+                {
+                    "dateTime": "14:00",
+                    "value": 1.7
+                },
+                {
+                    "dateTime": "15:00",
+                    "value": 1.5
+                },
+                {
+                    "dateTime": "16:00",
+                    "value": 1.8
+                },
+                {
+                    "dateTime": "17:00",
+                    "value": 1.7
+                },
+                {
+                    "dateTime": "18:00",
+                    "value": 2.2
+                },
+                {
+                    "dateTime": "19:00",
+                    "value": 1.5
+                },
+                {
+                    "dateTime": "20:00",
+                    "value": 1.8
+                },
+                {
+                    "dateTime": "21:00",
+                    "value": 1.7
+                },
+                {
+                    "dateTime": "22:00",
+                    "value": 1.8
+                },
+                {
+                    "dateTime": "23:00",
+                    "value": 1.7
+                }
+            ]
+          },
+          {
+            "title": "理论功率",
+            "smooth": true,
+            "value": [
+                {
+                    "dateTime": "00:00",
+                    "value": 0.8
+                },
+                {
+                    "dateTime": "01:00",
+                    "value": 2.2
+                },
+                {
+                    "dateTime": "02:00",
+                    "value": 0.9
+                },
+                {
+                    "dateTime": "03:00",
+                    "value": 2.2
+                },
+                {
+                    "dateTime": "04:00",
+                    "value": 1.7
+                },
+                {
+                    "dateTime": "05:00",
+                    "value": 1.8
+                },
+                {
+                    "dateTime": "06:00",
+                    "value": 1.2
+                },
+                {
+                    "dateTime": "07:00",
+                    "value": 2.8
+                },
+                {
+                    "dateTime": "08:00",
+                    "value": 1.4
+                },
+                {
+                    "dateTime": "09:00",
+                    "value": 1.9
+                },
+                {
+                    "dateTime": "10:00",
+                    "value": 1.7
+                },
+                {
+                    "dateTime": "11:00",
+                    "value": 2.2
+                },
+                {
+                    "dateTime": "12:00",
+                    "value": 1.6
+                },
+                {
+                    "dateTime": "13:00",
+                    "value": 1.8
+                },
+                {
+                    "dateTime": "14:00",
+                    "value": 1.7
+                },
+                {
+                    "dateTime": "15:00",
+                    "value": 1.8
+                },
+                {
+                    "dateTime": "16:00",
+                    "value": 1.8
+                },
+                {
+                    "dateTime": "17:00",
+                    "value": 1.7
+                },
+                {
+                    "dateTime": "18:00",
+                    "value": 2.9
+                },
+                {
+                    "dateTime": "19:00",
+                    "value": 1.5
+                },
+                {
+                    "dateTime": "20:00",
+                    "value": 1.8
+                },
+                {
+                    "dateTime": "21:00",
+                    "value": 1.9
+                },
+                {
+                    "dateTime": "22:00",
+                    "value": 1.8
+                },
+                {
+                    "dateTime": "23:00",
+                    "value": 1.2
+                }
+            ]
+          },
+          {
+            "title": "实际功率",
+            "smooth": true,
+            "value": [
+                {
+                    "dateTime": "00:00",
+                    "value": 0.5
+                },
+                {
+                    "dateTime": "01:00",
+                    "value": 2.2
+                },
+                {
+                    "dateTime": "02:00",
+                    "value": 0.8
+                },
+                {
+                    "dateTime": "03:00",
+                    "value": 2.2
+                },
+                {
+                    "dateTime": "04:00",
+                    "value": 1.5
+                },
+                {
+                    "dateTime": "05:00",
+                    "value": 1.8
+                },
+                {
+                    "dateTime": "06:00",
+                    "value": 1.2
+                },
+                {
+                    "dateTime": "07:00",
+                    "value": 1.2
+                },
+                {
+                    "dateTime": "08:00",
+                    "value": 2.5
+                },
+                {
+                    "dateTime": "09:00",
+                    "value": 1.8
+                },
+                {
+                    "dateTime": "10:00",
+                    "value": 2.7
+                },
+                {
+                    "dateTime": "11:00",
+                    "value": 2.2
+                },
+                {
+                    "dateTime": "12:00",
+                    "value": 1.5
+                },
+                {
+                    "dateTime": "13:00",
+                    "value": 1.8
+                },
+                {
+                    "dateTime": "14:00",
+                    "value": 2.7
+                },
+                {
+                    "dateTime": "15:00",
+                    "value": 1.5
+                },
+                {
+                    "dateTime": "16:00",
+                    "value": 1.8
+                },
+                {
+                    "dateTime": "17:00",
+                    "value": 1.7
+                },
+                {
+                    "dateTime": "18:00",
+                    "value": 1.2
+                },
+                {
+                    "dateTime": "19:00",
+                    "value": 1.5
+                },
+                {
+                    "dateTime": "20:00",
+                    "value": 2.8
+                },
+                {
+                    "dateTime": "21:00",
+                    "value": 1.7
+                },
+                {
+                    "dateTime": "22:00",
+                    "value": 2.8
+                },
+                {
+                    "dateTime": "23:00",
+                    "value": 1.7
+                }
+            ]
+          }
+        ]
+    },
+    "barList": [
+        {
+          "name": "发电量",
+          "children": [25025,360215,142511,282514,173625,393254],
+          "date":["09-01", "09-02","09-03","09-04","09-05","09-06"]
+        }
+    ],
+    "contrastList": [
+        {
+          "title": "昨日",
+          "value": [
+                {
+                    "dateTime": "00:00",
+                    "value": 808
+                },
+                {
+                    "dateTime": "01:00",
+                    "value": 292
+                },
+                {
+                    "dateTime": "02:00",
+                    "value": 991
+                },
+                {
+                    "dateTime": "03:00",
+                    "value": 292
+                },
+                {
+                    "dateTime": "04:00",
+                    "value": 197
+                },
+                {
+                    "dateTime": "05:00",
+                    "value": 198
+                },
+                {
+                    "dateTime": "06:00",
+                    "value": 192
+                },
+                {
+                    "dateTime": "07:00",
+                    "value": 298
+                },
+                {
+                    "dateTime": "08:00",
+                    "value": 194
+                },
+                {
+                    "dateTime": "09:00",
+                    "value": 199
+                },
+                {
+                    "dateTime": "10:00",
+                    "value": 197
+                },
+                {
+                    "dateTime": "11:00",
+                    "value": 292
+                },
+                {
+                    "dateTime": "12:00",
+                    "value": 196
+                },
+                {
+                    "dateTime": "13:00",
+                    "value": 198
+                },
+                {
+                    "dateTime": "14:00",
+                    "value": 197
+                },
+                {
+                    "dateTime": "15:00",
+                    "value": 198
+                },
+                {
+                    "dateTime": "16:00",
+                    "value": 198
+                },
+                {
+                    "dateTime": "17:00",
+                    "value": 197
+                },
+                {
+                    "dateTime": "18:00",
+                    "value": 299
+                },
+                {
+                    "dateTime": "19:00",
+                    "value": 195
+                },
+                {
+                    "dateTime": "20:00",
+                    "value": 198
+                },
+                {
+                    "dateTime": "21:00",
+                    "value": 199
+                },
+                {
+                    "dateTime": "22:00",
+                    "value": 198
+                },
+                {
+                    "dateTime": "23:00",
+                    "value": 192
+                }
+            ]
+        },
+        {
+          "title": "今日",
+          "value": [
+                {
+                    "dateTime": "00:00",
+                    "value": 500
+                },
+                {
+                    "dateTime": "01:00",
+                    "value": 220
+                },
+                {
+                    "dateTime": "02:00",
+                    "value": 820
+                },
+                {
+                    "dateTime": "03:00",
+                    "value": 202
+                },
+                {
+                    "dateTime": "04:00",
+                    "value": 105
+                },
+                {
+                    "dateTime": "05:00",
+                    "value": 118
+                },
+                {
+                    "dateTime": "06:00",
+                    "value": 152
+                },
+                {
+                    "dateTime": "07:00",
+                    "value": 182
+                },
+                {
+                    "dateTime": "08:00",
+                    "value": 295
+                },
+                {
+                    "dateTime": "09:00",
+                    "value": 198
+                },
+                {
+                    "dateTime": "10:00",
+                    "value": 297
+                },
+                {
+                    "dateTime": "11:00",
+                    "value": 292
+                },
+                {
+                    "dateTime": "12:00",
+                    "value": 195
+                },
+                {
+                    "dateTime": "13:00",
+                    "value": 198
+                },
+                {
+                    "dateTime": "14:00",
+                    "value": 297
+                },
+                {
+                    "dateTime": "15:00",
+                    "value": 195
+                },
+                {
+                    "dateTime": "16:00",
+                    "value": 198
+                },
+                {
+                    "dateTime": "17:00",
+                    "value": 197
+                },
+                {
+                    "dateTime": "18:00",
+                    "value": 192
+                },
+                {
+                    "dateTime": "19:00",
+                    "value": 195
+                },
+                {
+                    "dateTime": "20:00",
+                    "value": 298
+                },
+                {
+                    "dateTime": "21:00",
+                    "value": 197
+                },
+                {
+                    "dateTime": "22:00",
+                    "value": 298
+                },
+                {
+                    "dateTime": "23:00",
+                    "value": 197
+                }
+            ]
+        }
+      ]
+}

+ 66 - 11
src/views/stateMonitor/factoryMonitor/windPowerPlant/windhome/index.vue

@@ -91,7 +91,7 @@
       <div class="first">
         <div class="base-info">
           <div class="base-info-left">
-            <div class="top">
+            <div class="top" :data-type="$store.state.moreSty">
               日发电量
               <div class="value">
                 {{ wpInfos?.rfdl || 0 }}
@@ -254,6 +254,7 @@ import { GetWpInfos, GetWpHisdata } from "@/api/factoryMonitor/index.js";
 import { GetWpPoints, GetPointFitting } from "@/api/points/index.js";
 import { FindPowerInfo } from "@/api/home/home.js";
 import dayjs from "dayjs";
+import dataJson from "./dataJson.json"
 export default {
   name: "windPowerPlant", //风电场站
   components: {
@@ -576,15 +577,16 @@ export default {
         this.screenHeight = window.screenHeight;
       })();
     };
-    this.timer = setInterval(() => {
-      this.getSingleMatrix(false);
-    }, 5000);
-    this.time2 = setInterval(() => {
-      this.getPowerStationAssets();
-      this.getPoints();
-      this.getLossValuesAnalyse(this.dates);
-      this.getBarValuesFDL();
-    }, 1000 * 60 * 15);
+    // this.timer = setInterval(() => {
+    //   this.getSingleMatrix(false);
+    // }, 5000);
+    // this.time2 = setInterval(() => {
+    //   this.getPowerStationAssets();
+    //   this.getPoints();
+    //   this.getLossValuesAnalyse(this.dates);
+    //   this.getBarValuesFDL();
+    // }, 1000 * 60 * 15);
+    this.dataChange()
   },
   methods: {
     clear() {
@@ -647,6 +649,50 @@ export default {
         });
       }
     },
+    dataChange() {
+        this.wpInfos = dataJson.wpInfosdata
+        this.powerList = dataJson.Powertrend.value;
+        this.powerDataHome = [
+            {
+              title: "实时风速",
+              value: this.wpInfos.sspjfsgzd.toFixed(2),
+              dialogTitle: "实时风速",
+              max: 3000,
+              unit: "m/s",
+            },
+            {
+              title: "有功功率",
+              value: this.wpInfos.yggl.toFixed(2),
+              dialogTitle: "有功功率",
+              max: 3000,
+              unit: "MW",
+            },
+            {
+              title: "负荷率",
+              value: this.wpInfos.fhl.toFixed(2),
+              dialogTitle: "负荷率",
+              max: 100,
+              unit: "%",
+            },
+        ];
+        this.lossPower = {
+            SFDL: this.wpInfos.rfdl,
+            GZSS: this.wpInfos.rgzssdl,
+            WHSS: this.wpInfos.rwhssdl,
+            SLSS: this.wpInfos.rslssdl,
+            XDSS: this.wpInfos.rxdssdl,
+            XNSS: this.wpInfos.rxnssdl,
+            SUM:
+              this.wpInfos.rfdl +
+              this.wpInfos.rgzssdl +
+              this.wpInfos.rwhssdl +
+              this.wpInfos.rslssdl +
+              this.wpInfos.rxdssdl +
+              this.wpInfos.rxnssdl,
+        };
+        this.barList = dataJson.barList
+        this.contrastList = dataJson.contrastList
+    },
     // 损失电量切换
     handleChange(val) {
       this.dates = val;
@@ -1391,6 +1437,16 @@ export default {
         border-left: 1px solid #fff;
         border-bottom: 1px solid #fff;
       }
+      .top[data-type~="greenSty"] {
+        .value{
+            color: @green;
+        }
+      }
+      .top[data-type~="blueSty"] {
+        .value{
+            color: @darkBlue;
+        }
+      }
       .top {
         display: flex;
         flex-direction: column;
@@ -1406,7 +1462,6 @@ export default {
           font-size: 50px;
           font-family: Arial;
           font-weight: 400;
-          color: #05bb4c;
           padding: 10px 0;
           .unit {
             font-size: 22px;

+ 70 - 8
src/views/stateMonitor/focus/syzDetails.vue

@@ -2,7 +2,7 @@
   <div class="syz-details">
     <!-- 头部按钮选项 -->
     <HeaderNav class="header" @firstRender="firstRender" :isAll="true" />
-    <div class="buttonGroup">
+    <div class="buttonGroup" :data-type="$store.state.moreSty">
       <el-button-group>
         <el-button
           size="small"
@@ -38,6 +38,7 @@
         <div
           title="双击跳转详情"
           class="showAllSvgMsg"
+           :data-type="$store.state.moreSty"
           v-if="getStationName('XWT') != ''"
           :class="{ alarm: getAlarm('XWT') }"
           :style="getStyle(allHeight)"
@@ -52,6 +53,7 @@
         <!-- 败虎堡 -->
         <div
           class="showAllSvgMsg"
+          :data-type="$store.state.moreSty"
           title="双击跳转详情"
           v-if="getStationName('BHB') != ''"
           :class="{ alarm: getAlarm('BHB') }"
@@ -67,6 +69,7 @@
         <!-- 禹丰 -->
         <div
           class="showAllSvgMsg"
+          :data-type="$store.state.moreSty"
           title="双击跳转详情"
           v-if="getStationName('YF') != ''"
           :class="{ alarm: getAlarm('YF') }"
@@ -82,6 +85,7 @@
         <!-- 败虎堡三期 -->
         <div
           class="showAllSvgMsg"
+          :data-type="$store.state.moreSty"
           title="双击跳转详情"
           v-if="getStationName('BHB3') != ''"
           :class="{ alarm: getAlarm('BHB3') }"
@@ -97,6 +101,7 @@
         <!-- 盘道梁 -->
         <div
           class="showAllSvgMsg"
+          :data-type="$store.state.moreSty"
           title="双击跳转详情"
           v-if="getStationName('PDL') != ''"
           :class="{ alarm: getAlarm('PDL') }"
@@ -112,6 +117,7 @@
         <!-- 牛家岭 -->
         <div
           class="showAllSvgMsg"
+          :data-type="$store.state.moreSty"
           title="双击跳转详情"
           v-if="getStationName('NJL') != ''"
           :class="{ alarm: getAlarm('NJL') }"
@@ -128,6 +134,7 @@
         <!-- 丁家窑 -->
         <div
           class="showAllSvgMsg"
+          :data-type="$store.state.moreSty"
           title="双击跳转详情"
           v-if="getStationName('DJY') != ''"
           :class="{ alarm: getAlarm('DJY') }"
@@ -143,6 +150,7 @@
         <!-- 高家堰 -->
         <div
           class="showAllSvgMsg"
+          :data-type="$store.state.moreSty"
           title="双击跳转详情"
           v-if="getStationName('GJY') != ''"
           :class="{ alarm: getAlarm('GJY') }"
@@ -159,6 +167,7 @@
         <!-- 平头镇 -->
         <div
           class="showAllSvgMsg"
+          :data-type="$store.state.moreSty"
           title="双击跳转详情"
           v-if="getStationName('PTZ') != ''"
           :class="{ alarm: getAlarm('PTZ') }"
@@ -175,6 +184,7 @@
         <!-- 红石峁 -->
         <div
           class="showAllSvgMsg"
+          :data-type="$store.state.moreSty"
           title="双击跳转详情"
           v-if="getStationName('HSM') != ''"
           :class="{ alarm: getAlarm('HSM') }"
@@ -191,6 +201,7 @@
         <!-- 朱坑 -->
         <div
           class="showAllSvgMsg"
+          :data-type="$store.state.moreSty"
           title="双击跳转详情"
           v-if="getStationName('ZK') != ''"
           :style="getStyle(allHeight)"
@@ -206,6 +217,7 @@
         <!-- 羊头崖 -->
         <div
           class="showAllSvgMsg"
+          :data-type="$store.state.moreSty"
           title="双击跳转详情"
           v-if="getStationName('YTY') != ''"
           :style="getStyle(allHeight)"
@@ -221,6 +233,7 @@
         <!-- 尹灵芝 -->
         <div
           class="showAllSvgMsg"
+          :data-type="$store.state.moreSty"
           title="双击跳转详情"
           v-if="getStationName('YLZ') != ''"
           :style="getStyle(allHeight)"
@@ -260,6 +273,7 @@
         <!-- 右玉右卫 -->
         <div
           class="showAllSvgMsg"
+          :data-type="$store.state.moreSty"
           title="双击跳转详情"
           v-if="getStationName('YY') != ''"
           :style="getStyle(allHeight)"
@@ -276,6 +290,7 @@
         <!-- 平鲁阻虎 -->
         <div
           class="showAllSvgMsg"
+          :data-type="$store.state.moreSty"
           title="双击跳转详情"
           v-if="getStationName('PL') != ''"
           :style="getStyle(allHeight)"
@@ -291,6 +306,7 @@
         <!-- 应县晶辉 -->
         <div
           class="showAllSvgMsg"
+          :data-type="$store.state.moreSty"
           title="双击跳转详情"
           v-if="getStationName('YX') != ''"
           :style="getStyle(allHeight)"
@@ -306,6 +322,7 @@
         <!-- 天镇旭升 -->
         <div
           class="showAllSvgMsg"
+          :data-type="$store.state.moreSty"
           title="双击跳转详情"
           v-if="getStationName('TZ') != ''"
           :style="getStyle(allHeight)"
@@ -320,6 +337,7 @@
         <!-- 阳高蔚家堡 -->
         <div
           class="showAllSvgMsg"
+          :data-type="$store.state.moreSty"
           title="双击跳转详情"
           v-if="getStationName('YG') != ''"
           :style="getStyle(allHeight)"
@@ -335,6 +353,7 @@
         <!-- 方山孙家山 -->
         <div
           class="showAllSvgMsg"
+          :data-type="$store.state.moreSty"
           title="双击跳转详情"
           v-if="getStationName('FS') != ''"
           :style="getStyle(allHeight)"
@@ -351,6 +370,7 @@
         <!-- 山阴荣新 -->
         <div
           class="showAllSvgMsg"
+          :data-type="$store.state.moreSty"
           title="双击跳转详情"
           v-if="getStationName('SY') != ''"
           :style="getStyle(allHeight)"
@@ -367,6 +387,7 @@
         <!-- 怀仁初晨 -->
         <div
           class="showAllSvgMsg"
+          :data-type="$store.state.moreSty"
           title="双击跳转详情"
           v-if="getStationName('HR') != ''"
           :style="getStyle(allHeight)"
@@ -382,6 +403,7 @@
         <!-- 屯留吾元 -->
         <div
           class="showAllSvgMsg"
+          :data-type="$store.state.moreSty"
           title="双击跳转详情"
           v-if="getStationName('TL') != ''"
           :style="getStyle(allHeight)"
@@ -398,6 +420,7 @@
         <!-- 繁峙均然 -->
         <div
           class="showAllSvgMsg"
+          :data-type="$store.state.moreSty"
           title="双击跳转详情"
           v-if="getStationName('JR') != ''"
           :style="getStyle(allHeight)"
@@ -614,6 +637,30 @@ export default {
   .header {
     margin-top: 0px;
   }
+  .buttonGroup[data-type~="greenSty"] {
+    .el-button-group {
+      .el-button {
+        background-color: rgba(5, 187, 76, 0.2);
+        border: 1px solid #3b6c53;
+      }
+      .showSty {
+        border: 1px solid #3b6c53;
+        background-color: rgba(5, 187, 76, 0.5);
+      }
+    }
+  }
+  .buttonGroup[data-type~="blueSty"] {
+    .el-button-group {
+      .el-button {
+        background-color: rgba(5, 99, 187, 0.2);
+        border: 1px solid #3b546c;
+      }
+      .showSty {
+        border: 1px solid #3b546c;
+        background-color: rgba(5, 99, 187, 0.5);
+      }
+    }
+  }
   .buttonGroup {
     position: absolute;
     top: 16px;
@@ -623,14 +670,10 @@ export default {
     .el-button-group {
       .el-button {
         min-height: 30px !important;
-        background-color: rgba(5, 187, 76, 0.2);
-        border: 1px solid #3b6c53;
         color: #b3b3b3;
       }
 
       .showSty {
-        border: 1px solid #3b6c53;
-        background-color: rgba(5, 187, 76, 0.5);
         color: #ffffff;
         outline: 0;
       }
@@ -675,9 +718,30 @@ export default {
     }
   }
 
+    .showAllSvgMsg[data-type~="greenSty"] {
+        background: url("~@/assets/imgs/syz-bg.png") no-repeat;
+        &:hover {
+        .showAllSvgMsg_bot {
+            background: #1f5533;
+        }
+        }
+        .showAllSvgMsg_bot {
+            background: #0b2612;
+        }
+    }
+    .showAllSvgMsg[data-type~="blueSty"] {
+        background: url("~@/assets/imgs/syz-bg1.png") no-repeat;
+        &:hover {
+        .showAllSvgMsg_bot {
+            background: #1f3555;
+        }
+        }
+        .showAllSvgMsg_bot {
+            background: #0b1926;
+        }
+    }
   .showAllSvgMsg {
     // border: 3px solid #646464;
-    background: url("~@/assets/imgs/syz-bg.png") no-repeat;
     background-size: 100% 100%;
     background-position: center;
     border-radius: 4px;
@@ -727,7 +791,6 @@ export default {
 
     &:hover {
       .showAllSvgMsg_bot {
-        background: #1f5533;
         span {
           color: #fff;
         }
@@ -746,7 +809,6 @@ export default {
       padding: 2px;
     }
     .showAllSvgMsg_bot {
-      background: #0b2612;
       border-radius: 0 0 4px 4px;
       height: 40px;
       text-align: center;

+ 59 - 0
src/views/stateMonitor/powerPredictMatrix/dataJson.json

@@ -0,0 +1,59 @@
+{
+    "code": 0,
+    "powerData": [
+        {
+            "name": "测试风场1",
+            "ycgl": [147,258,369,123,456,789,159,357],
+            "llgl": [123,258,159,123,456,789,159,357],
+            "sjgl": [147,123,357,123,456,357,159,357],
+            "pjfs": [147,258,369,357,456,357,159,357],
+            "ycfs": [147,258,123,123,456,123,159,357],
+            "xAxis": ["09-09 02:00:00","09-10 02:00:00","09-11 02:00:00","09-12 02:00:00","09-12 02:00:00","09-13 02:00:00","09-14 02:00:00","09-15 02:00:00"]
+        },
+        {
+            "name": "测试风场2",
+            "ycgl": [147,258,369,123,456,789,159,357],
+            "llgl": [123,258,159,123,456,789,159,357],
+            "sjgl": [147,123,357,123,456,357,159,357],
+            "pjfs": [147,258,369,357,456,357,159,357],
+            "ycfs": [147,258,123,123,456,123,159,357],
+            "xAxis": ["09-09 02:00:00","09-10 02:00:00","09-11 02:00:00","09-12 02:00:00","09-12 02:00:00","09-13 02:00:00","09-14 02:00:00","09-15 02:00:00"]
+        },
+        {
+            "name": "测试风场3",
+            "ycgl": [147,258,369,123,456,789,159,357],
+            "llgl": [123,258,159,123,456,789,159,357],
+            "sjgl": [147,123,357,123,456,357,159,357],
+            "pjfs": [147,258,369,357,456,357,159,357],
+            "ycfs": [147,258,123,123,456,123,159,357],
+            "xAxis": ["09-09 02:00:00","09-10 02:00:00","09-11 02:00:00","09-12 02:00:00","09-12 02:00:00","09-13 02:00:00","09-14 02:00:00","09-15 02:00:00"]
+        },
+        {
+            "name": "测试风场4",
+            "ycgl": [147,258,369,123,456,789,159,357],
+            "llgl": [123,258,159,123,456,789,159,357],
+            "sjgl": [147,123,357,123,456,357,159,357],
+            "pjfs": [147,258,369,357,456,357,159,357],
+            "ycfs": [147,258,123,123,456,123,159,357],
+            "xAxis": ["09-09 02:00:00","09-10 02:00:00","09-11 02:00:00","09-12 02:00:00","09-12 02:00:00","09-13 02:00:00","09-14 02:00:00","09-15 02:00:00"]
+        },
+        {
+            "name": "测试风场5",
+            "ycgl": [147,258,369,123,456,789,159,357],
+            "llgl": [123,258,159,123,456,789,159,357],
+            "sjgl": [147,123,357,123,456,357,159,357],
+            "pjfs": [147,258,369,357,456,357,159,357],
+            "ycfs": [147,258,123,123,456,123,159,357],
+            "xAxis": ["09-09 02:00:00","09-10 02:00:00","09-11 02:00:00","09-12 02:00:00","09-12 02:00:00","09-13 02:00:00","09-14 02:00:00","09-15 02:00:00"]
+        },
+        {
+            "name": "测试风场6",
+            "ycgl": [147,258,369,123,456,789,159,357],
+            "llgl": [123,258,159,123,456,789,159,357],
+            "sjgl": [147,123,357,123,456,357,159,357],
+            "pjfs": [147,258,369,357,456,357,159,357],
+            "ycfs": [147,258,123,123,456,123,159,357],
+            "xAxis": ["09-09 02:00:00","09-10 02:00:00","09-11 02:00:00","09-12 02:00:00","09-12 02:00:00","09-13 02:00:00","09-14 02:00:00","09-15 02:00:00"]
+        }
+    ]
+}

+ 19 - 10
src/views/stateMonitor/powerPredictMatrix/index.vue

@@ -11,6 +11,7 @@
       <div class="chart-wrapper">
         <div
           class="chart-item"
+           :data-type="$store.state.moreSty"
           v-for="(item, index) in list"
           :key="index"
           :style="{ width: isFixed ? '900px' : '935px' }"
@@ -121,6 +122,7 @@ import HeaderNav from "@/components/headerNavSta/index.vue";
 import multipleLineChartVue from "./components/multiple-line-chart.vue";
 import { GetAllPowerData, GetPowerData } from "@/api/factoryMonitor/index.js";
 import dayjs from "dayjs";
+import dataJson from "./dataJson.json"
 export default {
   name: "PowerCurveMatrix", //全景监视
   data() {
@@ -152,10 +154,12 @@ export default {
     // this.init();
   },
   mounted() {
-    this.timer = setInterval(() => {
-      this.flag = true;
-      this.init();
-    }, 15 * 60 * 1000);
+    this.list = dataJson.powerData
+    this.loading = false;
+    // this.timer = setInterval(() => {
+    //   this.flag = true;
+    //   this.init();
+    // }, 15 * 60 * 1000);
   },
   unmounted() {
     clearInterval(this.timer);
@@ -183,11 +187,11 @@ export default {
       clearInterval(this.timer);
       this.timer = null;
       this.flag = false;
-      this.init();
-      this.timer = setInterval(() => {
-        this.flag = true;
-        this.init();
-      }, 15 * 60 * 1000);
+    //   this.init();
+    //   this.timer = setInterval(() => {
+    //     this.flag = true;
+    //     this.init();
+    //   }, 15 * 60 * 1000);
     },
     init() {
       if (this.flag) {
@@ -323,13 +327,18 @@ export default {
   grid-auto-rows: 256px;
   grid-gap: 20px;
   padding-bottom: 10px;
+  .chart-item[data-type~="greenSty"] {
+    background: url("~@/assets/imgs/power-bg1.png") no-repeat;
+  }
+  .chart-item[data-type~="blueSty"] {
+    background: url("~@/assets/imgs/power-bg2.png") no-repeat;
+  }
   .chart-item {
     width: 935px;
     height: 256px;
     // border: 1px solid #fff;
     display: flex;
     align-items: center;
-    background: url("~@/assets/imgs/power-bg1.png") no-repeat;
     background-size: 100% 100%;
     cursor: pointer;
     .chart-item-name {

+ 20 - 6
src/views/stateMonitor/zhzb/zhzb.vue

@@ -3,7 +3,7 @@
   <div class="synthesizeTargetSystem">
     <div class="systemData bodys">
       <div class="line">
-        <div class="leftContent"><span>数据指标</span></div>
+        <div class="leftContent" :data-type="$store.state.moreSty"><span>数据指标</span></div>
         <div class="rightContent">
           <div class="more" @click="addTargets"><i>+</i>更多指标</div>
         </div>
@@ -193,7 +193,7 @@ export default {
     };
   },
   created() {
-    this.loading = true;
+    // this.loading = true;
     this.getUniformCodes();
     // let localAllTargets = window.localStorage.getItem("alllocalData");
     // 判断本地是否有指标
@@ -240,9 +240,18 @@ export default {
     // this.$nextTick(() => this.firstRender());
   },
   mounted() {
-    this.timer = setInterval(() => {
-      this.firstRender();
-    }, 5000);
+    this.stationData = new Array(15).fill({
+    CZMC: "测试SQ_0125",
+    ZJRL: 650,
+    RFDL: 1250,
+    YFDL: 254,
+    NFDL: 632,
+    SSZGL: 2501,
+    SSPJFS: 2012,
+  });
+    // this.timer = setInterval(() => {
+    //   this.firstRender();
+    // }, 5000);
   },
   unmounted() {
     clearInterval(this.timer);
@@ -691,12 +700,17 @@ export default {
   width: 100%;
   margin-bottom: 5px;
 
+    .leftContent[data-type~="greenSty"] {
+      background: url("~@/assets/imgs/title_left_bg1.png") no-repeat;
+    }
+    .leftContent[data-type~="blueSty"] {
+      background: url("~@/assets/imgs/title_left_bg.png") no-repeat;
+    }
   .leftContent {
     width: 242px;
     height: 41px;
     display: flex;
     align-items: center;
-    background: url("~@/assets/imgs/title_left_bg1.png") no-repeat;
 
     span {
       font-size: 16px;

+ 2 - 1
vue.config.js

@@ -62,7 +62,8 @@ module.exports = {
   outputDir: "dist", // 'dist', 生产环境构建文件的目录
   assetsDir: "static", // 相对于outputDir的静态资源(js、css、img、fonts)目录
   lintOnSave: false, // 是否在开发环境下通过 eslint-loader 在每次保存时 li
-  runtimeCompiler: true, // 是否使用包含运行时编译器的 Vue 构建版本
+    runtimeCompiler: true, // 是否使用包含运行时编译器的 Vue 构建版本
+    parallel: false,
 
   configureWebpack: {
     plugins: [