|
@@ -18,7 +18,7 @@
|
|
|
<span :class="bjSwitch ? 'white' : 'gray'">检修</span>
|
|
|
</div>
|
|
|
</template>
|
|
|
- <RankTable :data="sels" @rowClick="clickStopRow" height="20vh"></RankTable>
|
|
|
+ <RankTable :data="selsZC" @rowClick="clickStopRow" height="20vh"></RankTable>
|
|
|
</PanelSand>
|
|
|
<PanelSandToolbar class="right-panel mg-t-16" title="预警情况">
|
|
|
<template v-slot:tools>
|
|
@@ -38,7 +38,7 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<template v-slot:default>
|
|
|
- <RadarPieChart height="18vh" :list="warnChartData" :title="warnPC ? '预警频次情况' : '预警时长情况'" />
|
|
|
+ <RadarPieChart height="18vh" :list="warnChartDataZC" :title="warnPC ? '预警频次情况' : '预警时长情况'" />
|
|
|
</template>
|
|
|
</PanelSandToolbar>
|
|
|
<PanelSandToolbar class="right-panel mg-t-16" title="故障情况" @click="clickTime" style="cursor: pointer">
|
|
@@ -60,7 +60,7 @@
|
|
|
</template>
|
|
|
<template v-slot:default>
|
|
|
<!-- <RadarPieChartCom height="18vh" :list="probChartData" title="故障情况" /> -->
|
|
|
- <RadarPieChart height="18vh" :list="probChartData" :title="probPC ? '故障频次情况' : '故障时长情况'" />
|
|
|
+ <RadarPieChart height="18vh" :list="probChartDataZC" :title="probPC ? '故障频次情况' : '故障时长情况'" />
|
|
|
</template>
|
|
|
</PanelSandToolbar>
|
|
|
</div>
|
|
@@ -76,7 +76,7 @@
|
|
|
<span :class="bjSwitch2 ? 'white' : 'gray'">检修</span>
|
|
|
</div>
|
|
|
</template>
|
|
|
- <RankTable :data="sels" @rowClick="clickStopRow" height="20vh"></RankTable>
|
|
|
+ <RankTable :data="selsLH" @rowClick="clickStopRow" height="20vh"></RankTable>
|
|
|
</PanelSand>
|
|
|
<PanelSandToolbar class="right-panel mg-t-16" title="预警情况">
|
|
|
<template v-slot:tools>
|
|
@@ -96,7 +96,7 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<template v-slot:default>
|
|
|
- <RadarPieChart height="18vh" :list="warnChartData" :title="warnPC2 ? '预警频次情况' : '预警时长情况'" />
|
|
|
+ <RadarPieChart height="18vh" :list="warnChartDataLH" :title="warnPC2 ? '预警频次情况' : '预警时长情况'" />
|
|
|
</template>
|
|
|
</PanelSandToolbar>
|
|
|
<PanelSandToolbar class="right-panel mg-t-16" title="故障情况" @click="clickTime">
|
|
@@ -118,7 +118,7 @@
|
|
|
</template>
|
|
|
<template v-slot:default>
|
|
|
<!-- <RadarPieChartCom height="18vh" :list="probChartData" title="故障情况" style="cursor: pointer" /> -->
|
|
|
- <RadarPieChart height="18vh" :list="probChartData" :title="probPC ? '故障频次情况' : '故障时长情况'" />
|
|
|
+ <RadarPieChart height="18vh" :list="probChartDataLH" :title="probPC ? '故障频次情况' : '故障时长情况'" />
|
|
|
</template>
|
|
|
</PanelSandToolbar>
|
|
|
</div>
|
|
@@ -225,25 +225,22 @@
|
|
|
import ThreeModel1 from "./component/ThreeModel1.vue";
|
|
|
import PanelSand from "@com/coms/panel/panel-sand.vue";
|
|
|
import PanelSandToolbar from "@com/coms/panel/panel-sand-toolbar.vue";
|
|
|
- import Weather from "./component/weather.vue";
|
|
|
import StBack from "./component/st-back.vue";
|
|
|
- import Table from "@com/coms/table/table.vue";
|
|
|
import RankTable from "./component/rank-table.vue";
|
|
|
- import Ppanel from "./component/p-panel.vue";
|
|
|
import RadarPieChart from "@com/chart/pie/radar-pie-chart.vue";
|
|
|
import RadarPieChartCom from "./component/radar-pie-chart.vue";
|
|
|
import RadarLineChartCom from "./component/radar-line-chart.vue";
|
|
|
- import DoubleLineChart from "@com/chart/line/double-line-chart.vue";
|
|
|
- import Col from "@com/coms/grid/col.vue";
|
|
|
- import Row from "@com/coms/grid/row.vue";
|
|
|
- import SvgIcon from "@com/coms/icon/svg-icon.vue";
|
|
|
- import hlsVideo from "./component/hls.vue";
|
|
|
import dataJson from "./component/dataBJJson.json"
|
|
|
- import weatherDialog from "./component/weatherDia.vue"
|
|
|
import dayjs from "dayjs";
|
|
|
import {
|
|
|
alarm_history,
|
|
|
} from "@/api/zhbj/index.js";
|
|
|
+ import {
|
|
|
+ apiGetqueryshutdowneventlist,
|
|
|
+ apiGetfindCtFeatureStat,
|
|
|
+ apiGetqueryShutdownEvent2ByType,
|
|
|
+ apiGetqueryShutdownEvent2ByDay
|
|
|
+ } from "@/api/sandtable/index.js";
|
|
|
import jsonData from "./component/data.json";
|
|
|
export default {
|
|
|
// 名称
|
|
@@ -253,18 +250,9 @@
|
|
|
ThreeModel1,
|
|
|
PanelSand,
|
|
|
PanelSandToolbar,
|
|
|
- Weather,
|
|
|
- Table,
|
|
|
RadarPieChart,
|
|
|
StBack,
|
|
|
RankTable,
|
|
|
- Ppanel,
|
|
|
- DoubleLineChart,
|
|
|
- Col,
|
|
|
- Row,
|
|
|
- SvgIcon,
|
|
|
- hlsVideo,
|
|
|
- weatherDialog,
|
|
|
RadarPieChartCom,
|
|
|
RadarLineChartCom
|
|
|
},
|
|
@@ -407,8 +395,10 @@
|
|
|
],
|
|
|
showVideoDialog: false,
|
|
|
dialogVideoUrl: "",
|
|
|
- warnChartData: dataJson.data.warnChartData,
|
|
|
- probChartData: dataJson.data.probChartData,
|
|
|
+ warnChartDataZC: dataJson.data.warnChartData,
|
|
|
+ warnChartDataLH: dataJson.data.warnChartData,
|
|
|
+ probChartDataZC: dataJson.data.probChartData,
|
|
|
+ probChartDataLH: dataJson.data.probChartData,
|
|
|
bjChartData: [],
|
|
|
ForecastPower: [{
|
|
|
name: "今日预测电量",
|
|
@@ -463,7 +453,26 @@
|
|
|
],
|
|
|
data: [],
|
|
|
},
|
|
|
- sels: {
|
|
|
+ selsZC: {
|
|
|
+ column: [
|
|
|
+ {
|
|
|
+ name: "机组",
|
|
|
+ field: "code",
|
|
|
+ width: "60px",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "停机时长(h)",
|
|
|
+ field: "selsTime",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "状态",
|
|
|
+ field: "isCloseName",
|
|
|
+ width: "60px",
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ data: dataJson.data.sels.data
|
|
|
+ },
|
|
|
+ selsLH: {
|
|
|
column: [
|
|
|
{
|
|
|
name: "机组",
|
|
@@ -584,6 +593,154 @@
|
|
|
);
|
|
|
}
|
|
|
},
|
|
|
+ getDataInfo() {
|
|
|
+ let that = this;
|
|
|
+
|
|
|
+ that.getShutDownevenList("gz", "WT2000D121H85")
|
|
|
+ that.getShutDownevenList("gz", "UP2000-130")
|
|
|
+ that.getFindCtFeature("WT2000D121H85")
|
|
|
+ that.getFindCtFeature("UP2000-130")
|
|
|
+ that.getShutDownEvent("WT2000D121H85")
|
|
|
+ that.getShutDownEvent("UP2000-130")
|
|
|
+ that.getShutdownEventByDay("WT2000D121H85")
|
|
|
+ that.getShutdownEventByDay("UP2000-130")
|
|
|
+
|
|
|
+ },
|
|
|
+ //获取停机表格信息
|
|
|
+ getShutDownevenList(types, modelIds) {
|
|
|
+ let that = this
|
|
|
+ let params = {
|
|
|
+ wpId: "NX_FGS_HA_FDC_STA",
|
|
|
+ modelId: modelIds,
|
|
|
+ begin: dayjs().subtract(1, 'month').format("YYYY-MM-DD HH:mm:ss"),
|
|
|
+ end: dayjs().format("YYYY-MM-DD HH:mm:ss"),
|
|
|
+ pageNum: 1,
|
|
|
+ pageSize: 5,
|
|
|
+ type: types
|
|
|
+ }
|
|
|
+ apiGetqueryshutdowneventlist(params).then(res =>{
|
|
|
+ if (res && res.data) {
|
|
|
+ let result = []
|
|
|
+ res.data.result.forEach(it =>{
|
|
|
+ let obj = {
|
|
|
+ code: it.code,
|
|
|
+ selsTime: it.stopHours,
|
|
|
+ isCloseName: types === "gz" ? "故障" : "检修"
|
|
|
+ }
|
|
|
+ result.push(obj)
|
|
|
+ })
|
|
|
+ if (modelIds === "WT2000D121H85") {
|
|
|
+ that.selsZC.data = result
|
|
|
+ } else {
|
|
|
+ that.selsLH.data = result
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ //获取预警统计
|
|
|
+ getFindCtFeature(modelIds) {
|
|
|
+ let that = this
|
|
|
+ let params = {
|
|
|
+ stationid: "NX_FGS_HA_FDC_STA",
|
|
|
+ modelId: modelIds,
|
|
|
+ begin: dayjs().subtract(1, 'month').format("YYYY-MM-DD HH:mm:ss"),
|
|
|
+ end: dayjs().format("YYYY-MM-DD HH:mm:ss"),
|
|
|
+ deviceType: "windturbine"
|
|
|
+ }
|
|
|
+ apiGetfindCtFeatureStat(params).then(res =>{
|
|
|
+ if (res) {
|
|
|
+ let result = []
|
|
|
+ res.forEach(it =>{
|
|
|
+ let obj = {
|
|
|
+ name: it.typeName,
|
|
|
+ value: it.total
|
|
|
+ }
|
|
|
+ result.push(obj)
|
|
|
+ })
|
|
|
+ if (modelIds === "WT2000D121H85") {
|
|
|
+ that.warnChartDataZC = result
|
|
|
+ } else {
|
|
|
+ that.warnChartDataLH = result
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ //获取故障统计
|
|
|
+ getShutDownEvent(modelIds) {
|
|
|
+ let that = this
|
|
|
+ let params = {
|
|
|
+ wpId: "NX_FGS_HA_FDC_STA",
|
|
|
+ modelId: modelIds,
|
|
|
+ begin: dayjs().subtract(1, 'month').format("YYYY-MM-DD HH:mm:ss"),
|
|
|
+ end: dayjs().format("YYYY-MM-DD HH:mm:ss")
|
|
|
+ }
|
|
|
+ apiGetqueryShutdownEvent2ByType(params).then(res =>{
|
|
|
+ if (res && res.data) {
|
|
|
+ let result = []
|
|
|
+ res.data.forEach(it =>{
|
|
|
+ let obj = {
|
|
|
+ name: it.name,
|
|
|
+ value: it.times
|
|
|
+ }
|
|
|
+ result.push(obj)
|
|
|
+ })
|
|
|
+ if (modelIds === "WT2000D121H85") {
|
|
|
+ that.probChartDataZC = result
|
|
|
+ } else {
|
|
|
+ that.probChartDataLH = result
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ //获取故障次数时长
|
|
|
+ getShutdownEventByDay(modelIds) {
|
|
|
+ let that = this
|
|
|
+ let params = {
|
|
|
+ wpId: "NX_FGS_HA_FDC_STA",
|
|
|
+ modelId: modelIds,
|
|
|
+ begin: dayjs().startOf('month').format("YYYY-MM-DD HH:mm:ss"),
|
|
|
+ end: dayjs().format("YYYY-MM-DD HH:mm:ss")
|
|
|
+ }
|
|
|
+ apiGetqueryShutdownEvent2ByDay(params).then(res =>{
|
|
|
+ if (res && res.data) {
|
|
|
+ let xAxis = [];
|
|
|
+ let seriesSpeed = [];
|
|
|
+ let seriesGl = [];
|
|
|
+ res.data.forEach((it) => {
|
|
|
+ xAxis.push(it.stoptime);
|
|
|
+ seriesSpeed.push(it.times);
|
|
|
+ seriesGl.push(it.hours);
|
|
|
+ });
|
|
|
+ let series = [
|
|
|
+ {
|
|
|
+ name: "故障次数",
|
|
|
+ data: seriesSpeed,
|
|
|
+ type: "line",
|
|
|
+ symbol: "none",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "故障时长",
|
|
|
+ data: seriesGl,
|
|
|
+ yAxisIndex: 1,
|
|
|
+ type: "line",
|
|
|
+ symbol: "none",
|
|
|
+ },
|
|
|
+ ];
|
|
|
+ that.getPowerLine(
|
|
|
+ xAxis,
|
|
|
+ series,
|
|
|
+ "problem1"
|
|
|
+ );
|
|
|
+ that.getPowerLine2(
|
|
|
+ xAxis,
|
|
|
+ series,
|
|
|
+ "problem2"
|
|
|
+ );
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+
|
|
|
+
|
|
|
getPowerLine(
|
|
|
xAxis,
|
|
|
series,
|
|
@@ -830,28 +987,7 @@
|
|
|
}
|
|
|
},
|
|
|
|
|
|
- getWtInfo() {
|
|
|
- let that = this;
|
|
|
-
|
|
|
- let dateTime = [
|
|
|
- dayjs().startOf("day").format("YYYY-MM-DD HH:mm:ss"),
|
|
|
- dayjs().format("YYYY-MM-DD HH:mm:ss"),
|
|
|
- ];
|
|
|
- let params = {
|
|
|
- pageNum: 1,
|
|
|
- pageSize: 5,
|
|
|
- alarmId: "",
|
|
|
- modelId: "",
|
|
|
- components: "",
|
|
|
- description: "",
|
|
|
- begin: dateTime[0],
|
|
|
- end: dateTime[1]
|
|
|
- };
|
|
|
- //预警
|
|
|
- this.getAlarmHistoryt(params, 'custom')
|
|
|
- //报警
|
|
|
- this.getAlarmHistoryt(params, 'history')
|
|
|
- },
|
|
|
+
|
|
|
// 获取历史记录表
|
|
|
async getAlarmHistoryt(params, type) {
|
|
|
|
|
@@ -1135,9 +1271,20 @@
|
|
|
|
|
|
changeBjSwitch() {
|
|
|
this.bjSwitch = !this.bjSwitch;
|
|
|
+ if (this.bjSwitch) {
|
|
|
+ this.getShutDownevenList("gz", "WT2000D121H85")
|
|
|
+ } else {
|
|
|
+ this.getShutDownevenList("wh", "WT2000D121H85")
|
|
|
+ }
|
|
|
+
|
|
|
},
|
|
|
changeBjSwitch2() {
|
|
|
this.bjSwitch2 = !this.bjSwitch2;
|
|
|
+ if (this.bjSwitch) {
|
|
|
+ this.getShutDownevenList("gz", "UP2000-130")
|
|
|
+ } else {
|
|
|
+ this.getShutDownevenList("wh", "UP2000-130")
|
|
|
+ }
|
|
|
},
|
|
|
|
|
|
changeWarnSwitch(val) {
|
|
@@ -1206,7 +1353,7 @@
|
|
|
// 创建前
|
|
|
},
|
|
|
created() {
|
|
|
- this.getWtInfo();
|
|
|
+ this.getDataInfo();
|
|
|
// this.getWpHealthInfo();
|
|
|
// this.getTop4Info();
|
|
|
// this.getWarnMGT();
|