Bläddra i källkod

综合报警问题修改

SunZehao 5 månader sedan
förälder
incheckning
0275905f18

+ 1 - 1
components.d.ts

@@ -166,7 +166,7 @@ declare module 'vue' {
     StrightLineChart: typeof import('./src/components/chart/line/stright-line-chart.vue')['default']
     SubmitBtn: typeof import('./src/components/generatingCapacityComponent/SubmitBtn.vue')['default']
     SvgDraw: typeof import('./src/components/coms/icon/svg-draw.vue')['default']
-    SvgIcon: typeof import('./src/components/powerPredictionComponent/svgIcon/index.vue')['default']
+    SvgIcon: typeof import('./src/components/coms/icon/svg-icon.vue')['default']
     SvgPageShow: typeof import('./src/components/powerPredictionComponent/powerControlSvg/svgPageShow.vue')['default']
     Tab: typeof import('./src/components/coms/tabs/tab.vue')['default']
     Table: typeof import('./src/components/generatingCapacityComponent/table.vue')['default']

+ 6 - 4
src/views/IntegratedAlarm/alarmConfig/components/custom_components.vue

@@ -264,7 +264,7 @@
         <el-popover
           :visible="lPopVisible"
           placement="right-end"
-          :width="850"
+          :width="1250"
           trigger="manual"
           popper-class="alDioPop"
           :effect="$store.state.theme ? 'light' : 'dark'"
@@ -274,7 +274,7 @@
         >
           <el-table
             ref="multipleTableRef"
-            style="height: 450px"
+            :max-height="650"
             :data="state.alarmMapList"
             @selection-change="handleSelectionChange"
             stripe
@@ -721,7 +721,9 @@ const state = reactive({
   DIPointList: [],
   AIPointSearch: "",
   DIPointSearch: "",
-  alarmMapList: [],
+  alarmMapList: new Array(20).fill({
+    name: "ceshi"
+  }),
   pcflList: [],
 });
 const operator = [
@@ -1176,7 +1178,7 @@ const closeDialog = () => {
 }
 
 .alDioPop {
-  max-height: 500px;
+  max-height: 700px;
   overflow-y: hidden;
 
   .el-table {

+ 1 - 1
src/views/IntegratedAlarm/reliability/customAnalyse/index.vue

@@ -599,7 +599,7 @@ watch(
           return ele.nemCode === "FDJ";
         })?.nemCode || "";
       componenDefaultSelect
-        ? (state.components = [componenDefaultSelect])
+        ? (state.components = ["FDJ", "CLX"])
         : arr[1]?.[0]?.nemCode
         ? (state.components = [arr[1]?.[0]?.nemCode])
         : (state.components = []);

+ 1 - 1
src/views/IntegratedAlarm/reliability/historyAnalyse/index.vue

@@ -568,7 +568,7 @@ watch(
             return ele.nemCode === "FDJ";
           })?.nemCode || "";
         componenDefaultSelect
-          ? (state.components = [componenDefaultSelect])
+          ? (state.components = ["FDJ", "CLX"])
           : arr[1]?.[0]?.nemCode
           ? (state.components = [arr[1]?.[0]?.nemCode])
           : (state.components = []);

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

@@ -27,6 +27,7 @@
         prop="wpName"
         label="场站"
         align="center"
+        width="180"
         show-overflow-tooltip
       />
       <el-table-column
@@ -39,8 +40,8 @@
       />
       <el-table-column
         prop="description"
+        align="center"
         label="信息"
-        align="left"
         show-overflow-tooltip
       />
       <!-- <el-table-column label="级别" width="80" show-overflow-tooltip>

+ 8 - 7
src/views/IntegratedAlarm/safe/customWarning/index.vue

@@ -368,7 +368,7 @@ onMounted(() => {
     projectname: "一期项目",
     rank: 3,
     resettable: false,
-    stationid: "SXJ_KGDL_XWT_FDC_STA",
+    stationid: "",
     stationname: "13风电场",
     subcomponents: "NULL",
     suffix: null,
@@ -481,9 +481,9 @@ const state = reactive({
     { title: "时间", code: "ts", width: "150" },
     { title: "场站", code: "stationname", width: "150" },
     { title: "机组", code: "devicename", width: "150" },
-    { title: "报警信息", code: "description", width: "250" },
+    { title: "部件", code: "components", width: "200" },
+    { title: "预警信息", code: "description" },
     // { title: "故障原因", code: "faultCause" },
-    { title: "部件", code: "components" },
     // { title: "故障编码", code: "nemCode", width: "100" },
     // { title: "故障解决方法", code: "resolvent" },
     // { title: "级别", code: "rank", width: "80" },
@@ -529,11 +529,12 @@ const getStationList = async () => {
         return i;
       }
     });
-    state.stationId = station?.id;
-  } else {
-    state.stationId =
-      state.typeVal == "windturbine" ? "GJNY_SXGS_FSG_FDC_STA" : data[0]?.id;
+    // state.stationId = station?.id;
   }
+//    else {
+//     state.stationId =
+//       state.typeVal == "windturbine" ? "GJNY_SXGS_FSG_FDC_STA" : data[0]?.id;
+//   }
   if (stationList.value.length) {
     await getWindturbineList();
     await getAlarmHistoryt();

+ 1 - 1
src/views/IntegratedAlarm/safe/historyWarning/index.vue

@@ -504,7 +504,7 @@ const state = reactive({
     { title: "场站", code: "stationname", width: "150" },
     { title: "机组", code: "devicename", width: "150" },
     { title: "报警信息", code: "description", width: "180" },
-    { title: "故障原因", code: "faultCause" },
+    // { title: "故障原因", code: "faultCause" },
     // { title: "级别", code: "rank", width: "80" },
     { title: "部件类型", code: "components", width: "120" },
     // { title: "故障解决方法", code: "resolvent" },

+ 1 - 1
src/views/IntegratedAlarm/safe/stopQuery/index.vue

@@ -3,7 +3,7 @@
     <div class="form-wrapper">
       <div class="search-wrapper">
         <div class="search-item">
-          <span class="label">场:</span>
+          <span class="label">场:</span>
           <div class="search-content">
             <el-select
               v-model="wpId"

+ 502 - 0
src/views/powerPrediction/component/power.json

@@ -1482,5 +1482,507 @@
                 ]
             }
         ]
+    },
+    "globalPowerPredictionChartData2": {
+        "dataFormatList": [
+            {
+                "name": "理论",
+                "data": [
+                    0.11626600000000001,
+                    0.22816399999999998,
+                    1.0983209999999999,
+                    1.7967829999999998,
+                    2.290194,
+                    2.606036,
+                    2.128662,
+                    2.025283,
+                    2.2941700000000003,
+                    2.465363,
+                    3.243848,
+                    4.123433,
+                    5.517728,
+                    6.165694,
+                    6.95021,
+                    5.8811350000000004,
+                    8.07709,
+                    11.344355,
+                    10.925002000000001,
+                    8.30119,
+                    6.649412,
+                    8.865291,
+                    9.441736,
+                    10.356954,
+                    12.3656,
+                    16.781773,
+                    15.703359,
+                    16.595723999999997,
+                    16.596693,
+                    14.827625,
+                    12.772991,
+                    11.321477000000002,
+                    10.539136000000001,
+                    9.959066,
+                    10.998705,
+                    11.150547000000001,
+                    9.147966,
+                    8.283851,
+                    8.452446,
+                    5.730014,
+                    4.930219,
+                    6.090648,
+                    6.517353,
+                    5.82508,
+                    6.3510290000000005,
+                    7.566637,
+                    8.630962,
+                    7.502498999999999,
+                    6.582264,
+                    5.860528,
+                    4.991448999999999,
+                    3.524125,
+                    3.278988,
+                    3.8735340000000003,
+                    2.896201,
+                    1.1655989999999998,
+                    0.6644249999999999,
+                    0.744915,
+                    1.304962,
+                    1.6595250000000001,
+                    1.5888550000000001
+                ],
+                "xaxisData": null
+            },
+            {
+                "name": "可用",
+                "data": [
+                    0.113771,
+                    0.2235,
+                    1.043926,
+                    1.758695,
+                    2.240821,
+                    2.593714,
+                    2.081747,
+                    1.982135,
+                    2.2383,
+                    2.3984,
+                    3.233729,
+                    3.9651,
+                    5.494987,
+                    6.0183789999999995,
+                    6.861197,
+                    5.842138,
+                    7.8111239999999995,
+                    11.193344999999999,
+                    10.831620999999998,
+                    8.198754000000001,
+                    6.591729999999999,
+                    8.727183,
+                    9.300481,
+                    10.06542,
+                    12.053261000000001,
+                    15.621963,
+                    14.873218999999999,
+                    15.58361,
+                    15.770178,
+                    14.183704,
+                    12.555396,
+                    11.015902,
+                    10.267641,
+                    9.826514999999999,
+                    10.613745999999999,
+                    10.890165999999999,
+                    8.976106,
+                    8.224197,
+                    8.343114,
+                    5.642606,
+                    4.7576279999999995,
+                    5.991218,
+                    6.458829,
+                    5.774046,
+                    6.239001,
+                    7.316705,
+                    8.381920000000001,
+                    7.412033,
+                    6.481863000000001,
+                    5.76893,
+                    4.963488999999999,
+                    3.515346,
+                    3.2414560000000003,
+                    3.798331,
+                    2.83686,
+                    1.16502,
+                    0.664091,
+                    0.728523,
+                    1.2839690000000001,
+                    1.648518,
+                    1.581597
+                ],
+                "xaxisData": null
+            },
+            {
+                "name": "AGC",
+                "data": [
+                    43.182781000000006,
+                    43.182781000000006,
+                    43.182781000000006,
+                    43.182781000000006,
+                    43.182781000000006,
+                    43.182781000000006,
+                    43.182781000000006,
+                    43.182781000000006,
+                    43.182781000000006,
+                    43.182781000000006,
+                    43.182781000000006,
+                    43.182781000000006,
+                    43.182781000000006,
+                    43.182781000000006,
+                    43.182781000000006,
+                    43.182781000000006,
+                    43.182781000000006,
+                    43.182781000000006,
+                    43.182781000000006,
+                    43.182781000000006,
+                    43.182781000000006,
+                    43.182781000000006,
+                    43.182781000000006,
+                    43.182781000000006,
+                    43.182781000000006,
+                    43.182781000000006,
+                    43.182781000000006,
+                    43.182781000000006,
+                    43.182781000000006,
+                    43.182781000000006,
+                    43.182781000000006,
+                    43.182781000000006,
+                    43.182781000000006,
+                    43.182781000000006,
+                    43.182781000000006,
+                    43.182781000000006,
+                    43.182781000000006,
+                    43.182781000000006,
+                    43.182781000000006,
+                    43.182781000000006,
+                    43.182781000000006,
+                    43.182781000000006,
+                    43.182781000000006,
+                    43.182781000000006,
+                    43.182781000000006,
+                    43.182781000000006,
+                    43.182781000000006,
+                    43.182781000000006,
+                    43.182781000000006,
+                    43.182781000000006,
+                    43.182781000000006,
+                    43.182781000000006,
+                    43.182781000000006,
+                    43.182781000000006,
+                    43.182781000000006,
+                    43.182781000000006,
+                    43.182781000000006,
+                    43.182781000000006,
+                    43.182781000000006,
+                    43.182781000000006,
+                    43.182781000000006
+                ],
+                "xaxisData": null
+            },
+            {
+                "name": "短期",
+                "data": [
+                    23.062977,
+                    22.277086,
+                    21.599064,
+                    20.690155999999998,
+                    19.975313999999997,
+                    19.605102,
+                    19.079401999999998,
+                    18.677529,
+                    18.631833999999998,
+                    18.704137,
+                    18.682465,
+                    18.832584,
+                    19.030598,
+                    19.319633000000003,
+                    19.586645,
+                    19.524588,
+                    19.883691,
+                    19.804754,
+                    19.497854,
+                    19.151613,
+                    18.112236,
+                    17.132209,
+                    15.930200000000001,
+                    14.363887,
+                    12.825097,
+                    10.736559,
+                    9.047812,
+                    6.8388,
+                    4.705493000000001,
+                    2.588184,
+                    1.1008209999999998,
+                    -0.5546,
+                    -2.070839,
+                    -3.385609,
+                    -4.238123,
+                    -4.930662,
+                    -5.267946,
+                    -5.258902,
+                    -4.70055,
+                    -3.954786,
+                    -2.92571,
+                    -2.120601,
+                    -1.3140399999999999,
+                    -0.02506,
+                    1.264052,
+                    2.437544,
+                    3.825652,
+                    5.045738,
+                    6.239941,
+                    7.083719,
+                    8.095203,
+                    9.04408,
+                    9.690463,
+                    10.162438,
+                    10.781221,
+                    11.340301,
+                    11.798568,
+                    12.107734,
+                    12.521738,
+                    13.073822,
+                    13.377505999999999,
+                    13.861415999999998,
+                    14.463914,
+                    14.742606,
+                    15.226321,
+                    15.982004000000002,
+                    16.627115,
+                    17.228854,
+                    17.794953,
+                    18.527631,
+                    19.397805,
+                    20.220482,
+                    20.72199,
+                    21.25449,
+                    21.344209,
+                    21.435373,
+                    21.322117,
+                    21.068960999999998,
+                    20.683062999999997,
+                    20.115416,
+                    19.477588,
+                    18.411338,
+                    17.493984,
+                    16.608416000000002,
+                    15.745999,
+                    15.005708,
+                    14.143448000000001,
+                    13.136425,
+                    12.530512,
+                    12.073348,
+                    11.695675,
+                    11.026916,
+                    10.780537,
+                    10.783620999999998,
+                    11.191681,
+                    11.345141
+                ],
+                "xaxisData": null
+            },
+            {
+                "name": "超短期",
+                "data": [
+                    1.3954280000000001,
+                    3.1591129999999996,
+                    3.074888,
+                    2.5321640000000003,
+                    1.743166,
+                    2.266271,
+                    3.283061,
+                    4.402942,
+                    4.524763,
+                    4.483956,
+                    2.980381,
+                    2.212193,
+                    2.08503,
+                    2.6764,
+                    3.17046,
+                    3.09843,
+                    2.442139,
+                    2.30711,
+                    2.256288,
+                    2.952572,
+                    3.781804,
+                    3.13341,
+                    2.5291289999999997,
+                    2.018671
+                ],
+                "xaxisData": null
+            },
+            {
+                "name": "实际",
+                "data": [
+                    0.093447,
+                    0.143557,
+                    0.913408,
+                    1.4744549999999998,
+                    2.097629,
+                    2.58773,
+                    2.027205,
+                    2.057511,
+                    2.1811,
+                    2.310939,
+                    3.2497849999999997,
+                    3.7379029999999998,
+                    5.371778,
+                    5.867165,
+                    6.696911,
+                    5.858071,
+                    7.552846,
+                    11.141555,
+                    10.771806,
+                    8.17731,
+                    6.499969,
+                    8.632014999999999,
+                    9.304583000000001,
+                    9.978494000000001,
+                    11.844794,
+                    15.037144,
+                    14.640227999999999,
+                    15.335873,
+                    15.596635000000001,
+                    13.991817,
+                    12.376227,
+                    10.868765,
+                    10.120223,
+                    9.769466,
+                    10.505734,
+                    10.81493,
+                    8.96303,
+                    8.202151,
+                    8.233869,
+                    5.404851,
+                    4.542929,
+                    5.631602,
+                    6.112246,
+                    5.4289819999999995,
+                    5.929206,
+                    6.6746490000000005,
+                    7.86912,
+                    6.92686,
+                    6.125488000000001,
+                    5.524787,
+                    4.871506999999999,
+                    3.460814,
+                    3.037176,
+                    3.656244,
+                    2.86063,
+                    0.933868,
+                    0.60699,
+                    0.5521309999999999,
+                    1.052691,
+                    1.522199,
+                    1.427337
+                ],
+                "xaxisData": null
+            }
+        ],
+        "dateList": [
+            "2024-11-12 00:15:00",
+            "2024-11-12 00:30:00",
+            "2024-11-12 00:45:00",
+            "2024-11-12 01:00:00",
+            "2024-11-12 01:15:00",
+            "2024-11-12 01:30:00",
+            "2024-11-12 01:45:00",
+            "2024-11-12 02:00:00",
+            "2024-11-12 02:15:00",
+            "2024-11-12 02:30:00",
+            "2024-11-12 02:45:00",
+            "2024-11-12 03:00:00",
+            "2024-11-12 03:15:00",
+            "2024-11-12 03:30:00",
+            "2024-11-12 03:45:00",
+            "2024-11-12 04:00:00",
+            "2024-11-12 04:15:00",
+            "2024-11-12 04:30:00",
+            "2024-11-12 04:45:00",
+            "2024-11-12 05:00:00",
+            "2024-11-12 05:15:00",
+            "2024-11-12 05:30:00",
+            "2024-11-12 05:45:00",
+            "2024-11-12 06:00:00",
+            "2024-11-12 06:15:00",
+            "2024-11-12 06:30:00",
+            "2024-11-12 06:45:00",
+            "2024-11-12 07:00:00",
+            "2024-11-12 07:15:00",
+            "2024-11-12 07:30:00",
+            "2024-11-12 07:45:00",
+            "2024-11-12 08:00:00",
+            "2024-11-12 08:15:00",
+            "2024-11-12 08:30:00",
+            "2024-11-12 08:45:00",
+            "2024-11-12 09:00:00",
+            "2024-11-12 09:15:00",
+            "2024-11-12 09:30:00",
+            "2024-11-12 09:45:00",
+            "2024-11-12 10:00:00",
+            "2024-11-12 10:15:00",
+            "2024-11-12 10:30:00",
+            "2024-11-12 10:45:00",
+            "2024-11-12 11:00:00",
+            "2024-11-12 11:15:00",
+            "2024-11-12 11:30:00",
+            "2024-11-12 11:45:00",
+            "2024-11-12 12:00:00",
+            "2024-11-12 12:15:00",
+            "2024-11-12 12:30:00",
+            "2024-11-12 12:45:00",
+            "2024-11-12 13:00:00",
+            "2024-11-12 13:15:00",
+            "2024-11-12 13:30:00",
+            "2024-11-12 13:45:00",
+            "2024-11-12 14:00:00",
+            "2024-11-12 14:15:00",
+            "2024-11-12 14:30:00",
+            "2024-11-12 14:45:00",
+            "2024-11-12 15:00:00",
+            "2024-11-12 15:15:00",
+            "2024-11-12 15:30:00",
+            "2024-11-12 15:45:00",
+            "2024-11-12 16:00:00",
+            "2024-11-12 16:15:00",
+            "2024-11-12 16:30:00",
+            "2024-11-12 16:45:00",
+            "2024-11-12 17:00:00",
+            "2024-11-12 17:15:00",
+            "2024-11-12 17:30:00",
+            "2024-11-12 17:45:00",
+            "2024-11-12 18:00:00",
+            "2024-11-12 18:15:00",
+            "2024-11-12 18:30:00",
+            "2024-11-12 18:45:00",
+            "2024-11-12 19:00:00",
+            "2024-11-12 19:15:00",
+            "2024-11-12 19:30:00",
+            "2024-11-12 19:45:00",
+            "2024-11-12 20:00:00",
+            "2024-11-12 20:15:00",
+            "2024-11-12 20:30:00",
+            "2024-11-12 20:45:00",
+            "2024-11-12 21:00:00",
+            "2024-11-12 21:15:00",
+            "2024-11-12 21:30:00",
+            "2024-11-12 21:45:00",
+            "2024-11-12 22:00:00",
+            "2024-11-12 22:15:00",
+            "2024-11-12 22:30:00",
+            "2024-11-12 22:45:00",
+            "2024-11-12 23:00:00",
+            "2024-11-12 23:15:00",
+            "2024-11-12 23:30:00",
+            "2024-11-12 23:45:00",
+            "2024-11-13 00:00:00"
+        ]
     }
 }

+ 13 - 13
src/views/powerPrediction/powerPredictionPage.vue

@@ -474,9 +474,9 @@
         },
         mounted() {
             let that = this;
-            // that.initPageData();
+            that.initPageData();
             that.planFiveMin = setInterval(function () {
-                that.seachData();
+                // that.seachData();
             }, 300000);
         },
         beforeRouteLeave(to, from, next) {
@@ -494,11 +494,11 @@
                     let xAxis = [];
                     let series = [];
                     let legend = [];
-                    jsonData.globalPowerPredictionChartData.dateList.forEach((item) => {
+                    jsonData.globalPowerPredictionChartData2.dateList.forEach((item) => {
                         xAxis.push(item.substring(item.indexOf(" ") + 1));
                     });
 
-                    jsonData.globalPowerPredictionChartData.dataFormatList.forEach(
+                    jsonData.globalPowerPredictionChartData2.dataFormatList.forEach(
                         (iten) => {
                             if (iten.name !== "短期") {
                                 legend.push(iten.name);
@@ -871,15 +871,15 @@
             getPowerPrediction() {
                 let pickStartTime = this.$utils.getTime(this.pickerTime[0]);
                 let pickEndTime = this.$utils.getTime(this.pickerTime[1]);
-                let type;
-                if (
-                    new Date(pickEndTime).getTime() - new Date(pickStartTime).getTime() <=
-                    10 * 86400000
-                ) {
-                    type = 1;
-                } else {
-                    type = 2;
-                }
+                let type = 2;
+                // if (
+                //     new Date(pickEndTime).getTime() - new Date(pickStartTime).getTime() <=
+                //     10 * 86400000
+                // ) {
+                //     type = 1;
+                // } else {
+                //     type = 2;
+                // }
                 let params = {
                     beginDataTime: pickStartTime,
                     endDataTime: pickEndTime,