|
@@ -12,13 +12,13 @@
|
|
|
<div class="sand-table-left">
|
|
|
<PanelSand class="left-panel" title="停机信息">
|
|
|
<template v-slot:tools>
|
|
|
- <div class="exchange" @click="changeBjSwitch">
|
|
|
+ <div class="exchange" @click="changeBjSwitch('left')">
|
|
|
<span :class="bjSwitch ? 'gray' : 'white'">故障</span>
|
|
|
<i class="blue fa fa-exchange mg-l-8 mg-r-8"></i>
|
|
|
<span :class="bjSwitch ? 'white' : 'gray'">检修</span>
|
|
|
</div>
|
|
|
</template>
|
|
|
- <RankTable :data="selsZC" @rowClick="clickStopRow" height="20vh"></RankTable>
|
|
|
+ <RankTable :data="selsZC" @rowClick="clickStopRow('left')" height="20vh"></RankTable>
|
|
|
</PanelSand>
|
|
|
<PanelSandToolbar class="right-panel mg-t-16" title="预警情况">
|
|
|
<template v-slot:tools>
|
|
@@ -32,16 +32,16 @@
|
|
|
</template>
|
|
|
<template v-slot:toolsL>
|
|
|
<div class="exchange">
|
|
|
- <span :class="warnPC ? 'white' : 'gray'" @click="changeWarnPC('z')">频次</span>
|
|
|
+ <span :class="warnPC ? 'white' : 'gray'" @click="changeWarnPC('left')">频次</span>
|
|
|
<i class="blue fa fa-exchange mg-l-8 mg-r-8"></i>
|
|
|
- <span :class="warnPC ? 'gray' : 'white'" @click="changeWarnPC('y')">时长</span>
|
|
|
+ <span :class="warnPC ? 'gray' : 'white'" @click="changeWarnPC('left')">时长</span>
|
|
|
</div>
|
|
|
</template>
|
|
|
<template v-slot:default>
|
|
|
<RadarPieChart height="18vh" :list="warnChartDataZC" :title="warnPC ? '预警频次情况' : '预警时长情况'" />
|
|
|
</template>
|
|
|
</PanelSandToolbar>
|
|
|
- <PanelSandToolbar class="right-panel mg-t-16" title="故障情况" @click="clickTime" style="cursor: pointer">
|
|
|
+ <PanelSandToolbar class="right-panel mg-t-16" title="故障情况" @click="clickTime('left')" style="cursor: pointer">
|
|
|
<template v-slot:tools>
|
|
|
<div class="exchange">
|
|
|
<span :class="probSwitch === 'z' ? 'white' : 'gray'" @click="changeProbSwitch('z')">周</span>
|
|
@@ -53,9 +53,9 @@
|
|
|
</template>
|
|
|
<template v-slot:toolsL>
|
|
|
<div class="exchange">
|
|
|
- <span :class="probPC ? 'white' : 'gray'" @click="changeProbPC('z')">频次</span>
|
|
|
+ <span :class="probPC ? 'white' : 'gray'" @click="changeProbPC('left')">频次</span>
|
|
|
<i class="blue fa fa-exchange mg-l-8 mg-r-8"></i>
|
|
|
- <span :class="probPC ? 'gray' : 'white'" @click="changeProbPC('y')">时长</span>
|
|
|
+ <span :class="probPC ? 'gray' : 'white'" @click="changeProbPC('left')">时长</span>
|
|
|
</div>
|
|
|
</template>
|
|
|
<template v-slot:default>
|
|
@@ -70,13 +70,13 @@
|
|
|
<div class="sand-table-right">
|
|
|
<PanelSand class="left-panel" title="停机信息">
|
|
|
<template v-slot:tools>
|
|
|
- <div class="exchange" @click="changeBjSwitch2">
|
|
|
+ <div class="exchange" @click="changeBjSwitch('right')">
|
|
|
<span :class="bjSwitch2 ? 'gray' : 'white'">故障</span>
|
|
|
<i class="blue fa fa-exchange mg-l-8 mg-r-8"></i>
|
|
|
<span :class="bjSwitch2 ? 'white' : 'gray'">检修</span>
|
|
|
</div>
|
|
|
</template>
|
|
|
- <RankTable :data="selsLH" @rowClick="clickStopRow" height="20vh"></RankTable>
|
|
|
+ <RankTable :data="selsLH" @rowClick="clickStopRow('right')" height="20vh"></RankTable>
|
|
|
</PanelSand>
|
|
|
<PanelSandToolbar class="right-panel mg-t-16" title="预警情况">
|
|
|
<template v-slot:tools>
|
|
@@ -90,16 +90,16 @@
|
|
|
</template>
|
|
|
<template v-slot:toolsL>
|
|
|
<div class="exchange">
|
|
|
- <span :class="warnPC2 ? 'white' : 'gray'" @click="changeWarnPC2('z')">频次</span>
|
|
|
+ <span :class="warnPC2 ? 'white' : 'gray'" @click="changeWarnPC('right')">频次</span>
|
|
|
<i class="blue fa fa-exchange mg-l-8 mg-r-8"></i>
|
|
|
- <span :class="warnPC2 ? 'gray' : 'white'" @click="changeWarnPC2('y')">时长</span>
|
|
|
+ <span :class="warnPC2 ? 'gray' : 'white'" @click="changeWarnPC('right')">时长</span>
|
|
|
</div>
|
|
|
</template>
|
|
|
<template v-slot:default>
|
|
|
<RadarPieChart height="18vh" :list="warnChartDataLH" :title="warnPC2 ? '预警频次情况' : '预警时长情况'" />
|
|
|
</template>
|
|
|
</PanelSandToolbar>
|
|
|
- <PanelSandToolbar class="right-panel mg-t-16" title="故障情况" @click="clickTime">
|
|
|
+ <PanelSandToolbar class="right-panel mg-t-16" title="故障情况" @click="clickTime('right')">
|
|
|
<template v-slot:tools>
|
|
|
<div class="exchange">
|
|
|
<span :class="probSwitch2 === 'z' ? 'white' : 'gray'" @click="changeProbSwitch2('z')">周</span>
|
|
@@ -111,9 +111,9 @@
|
|
|
</template>
|
|
|
<template v-slot:toolsL>
|
|
|
<div class="exchange">
|
|
|
- <span :class="probPC2 ? 'white' : 'gray'" @click="changeProbPC2('z')">频次</span>
|
|
|
+ <span :class="probPC2 ? 'white' : 'gray'" @click="changeProbPC('right')">频次</span>
|
|
|
<i class="blue fa fa-exchange mg-l-8 mg-r-8"></i>
|
|
|
- <span :class="probPC2 ? 'gray' : 'white'" @click="changeProbPC2('y')">时长</span>
|
|
|
+ <span :class="probPC2 ? 'gray' : 'white'" @click="changeProbPC('right')">时长</span>
|
|
|
</div>
|
|
|
</template>
|
|
|
<template v-slot:default>
|
|
@@ -129,7 +129,7 @@
|
|
|
class="cur"
|
|
|
style="width: 100%; height: 100%"
|
|
|
></div>
|
|
|
- <div class="hidBtn" @click="clickTime"></div>
|
|
|
+ <div class="hidBtn" @click="clickTime('left')"></div>
|
|
|
</div>
|
|
|
<div class="monthPower">
|
|
|
<div
|
|
@@ -137,7 +137,7 @@
|
|
|
class="cur"
|
|
|
style="width: 100%; height: 100%"
|
|
|
></div>
|
|
|
- <div class="hidBtn" @click="clickTime"></div>
|
|
|
+ <div class="hidBtn" @click="clickTime('right')"></div>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
@@ -153,6 +153,20 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<div class="allStyle">
|
|
|
+ <div class="radioGroupTime">
|
|
|
+ <el-date-picker
|
|
|
+ v-model="radioTime"
|
|
|
+ type="datetimerange"
|
|
|
+ range-separator="至"
|
|
|
+ start-placeholder="开始日期"
|
|
|
+ end-placeholder="结束日期"
|
|
|
+ format="YYYY-MM-DD HH:mm:ss">
|
|
|
+ </el-date-picker>
|
|
|
+ <el-radio-group v-model="radioGroup" @change="changeRadio">
|
|
|
+ <el-radio :label="1" >按日</el-radio>
|
|
|
+ <el-radio :label="2">按月</el-radio>
|
|
|
+ </el-radio-group>
|
|
|
+ </div>
|
|
|
<div class="allMain" v-for="it in 30" :key="it">
|
|
|
<span class="mainTit">2025-01-{{it}}</span>
|
|
|
<div class="allMsg">
|
|
@@ -239,7 +253,9 @@
|
|
|
apiGetqueryshutdowneventlist,
|
|
|
apiGetfindCtFeatureStat,
|
|
|
apiGetqueryShutdownEvent2ByType,
|
|
|
- apiGetqueryShutdownEvent2ByDay
|
|
|
+ apiGetqueryShutdownEvent2ByDay,
|
|
|
+ apiGetqueryShutdownEvent2ByMonth,
|
|
|
+ apiGetqueryShutdownEvent2ByMap
|
|
|
} from "@/api/sandtable/index.js";
|
|
|
import jsonData from "./component/data.json";
|
|
|
export default {
|
|
@@ -260,6 +276,8 @@
|
|
|
data() {
|
|
|
const that = this;
|
|
|
return {
|
|
|
+ radioGroup: 1,
|
|
|
+ radioTime: [],
|
|
|
problem1: null,
|
|
|
problem2: null,
|
|
|
problem3: {},
|
|
@@ -267,10 +285,10 @@
|
|
|
showPanel: false,
|
|
|
bjSwitch: false,
|
|
|
bjSwitch2: false,
|
|
|
- warnSwitch: 'z',
|
|
|
- warnSwitch2: 'z',
|
|
|
- probSwitch: 'z',
|
|
|
- probSwitch2: 'z',
|
|
|
+ warnSwitch: 'y',
|
|
|
+ warnSwitch2: 'y',
|
|
|
+ probSwitch: 'y',
|
|
|
+ probSwitch2: 'y',
|
|
|
warnPC: true,
|
|
|
warnPC2: true,
|
|
|
probPC: true,
|
|
@@ -281,6 +299,7 @@
|
|
|
showHealthDialog: false,
|
|
|
showMainInfoDialog: false,
|
|
|
noTimeDialog: false,
|
|
|
+ noTimeType: "",
|
|
|
weathercollapse: "",
|
|
|
weatherChart: [{
|
|
|
title: "温度",
|
|
@@ -399,6 +418,7 @@
|
|
|
warnChartDataLH: dataJson.data.warnChartData,
|
|
|
probChartDataZC: dataJson.data.probChartData,
|
|
|
probChartDataLH: dataJson.data.probChartData,
|
|
|
+ probChartData: dataJson.data.probChartData,
|
|
|
bjChartData: [],
|
|
|
ForecastPower: [{
|
|
|
name: "今日预测电量",
|
|
@@ -528,11 +548,11 @@
|
|
|
},
|
|
|
{
|
|
|
name: "停机时长",
|
|
|
- code: "selsTime"
|
|
|
+ code: "stopHours"
|
|
|
},
|
|
|
{
|
|
|
name: "故障信息",
|
|
|
- code: "message"
|
|
|
+ code: "faultView"
|
|
|
},
|
|
|
{
|
|
|
name: "当前状态",
|
|
@@ -595,19 +615,41 @@
|
|
|
},
|
|
|
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")
|
|
|
+ that.radioTime = [
|
|
|
+ dayjs().startOf('month').format("YYYY-MM-DD HH:mm:ss"),
|
|
|
+ dayjs().format("YYYY-MM-DD HH:mm:ss")
|
|
|
+ ]
|
|
|
+ that.getShutDownevenList("gz", "WT2000D121H85", 5)
|
|
|
+ that.getShutDownevenList("gz", "UP2000-130", 5)
|
|
|
+ that.getFindCtFeature("WT2000D121H85", this.warnSwitch)
|
|
|
+ that.getFindCtFeature("UP2000-130", this.warnSwitch2)
|
|
|
+ that.getShutDownEvent("WT2000D121H85", this.probSwitch)
|
|
|
+ that.getShutDownEvent("UP2000-130", this.probSwitch2)
|
|
|
+ that.getShutdownEventByDay("WT2000D121H85", that.radioTime)
|
|
|
+ that.getShutdownEventByDay("UP2000-130", that.radioTime)
|
|
|
|
|
|
},
|
|
|
+ changeRadio(val) {
|
|
|
+ if (val === 1) {
|
|
|
+ if (this.noTimeType === "left") {
|
|
|
+ this.getShutdownEventByDay("WT2000D121H85", this.radioTime)
|
|
|
+ this.getShutdownEventByMap("WT2000D121H85", this.radioTime)
|
|
|
+ } else {
|
|
|
+ this.getShutdownEventByDay("UP2000-130", this.radioTime)
|
|
|
+ this.getShutdownEventByMap("UP2000-130", this.radioTime)
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ if (this.noTimeType === "left") {
|
|
|
+ this.getShutdownEventByMonth("WT2000D121H85", this.radioTime)
|
|
|
+ this.getShutdownEventByMap("WT2000D121H85", this.radioTime)
|
|
|
+ } else {
|
|
|
+ this.getShutdownEventByMonth("UP2000-130", this.radioTime)
|
|
|
+ this.getShutdownEventByMap("UP2000-130", this.radioTime)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
//获取停机表格信息
|
|
|
- getShutDownevenList(types, modelIds) {
|
|
|
+ getShutDownevenList(types, modelIds, size) {
|
|
|
let that = this
|
|
|
let params = {
|
|
|
wpId: "NX_FGS_HA_FDC_STA",
|
|
@@ -615,35 +657,52 @@
|
|
|
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,
|
|
|
+ pageSize: size,
|
|
|
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" ? "故障" : "检修"
|
|
|
+ if (size === 5) {
|
|
|
+ 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
|
|
|
}
|
|
|
- result.push(obj)
|
|
|
- })
|
|
|
- if (modelIds === "WT2000D121H85") {
|
|
|
- that.selsZC.data = result
|
|
|
} else {
|
|
|
- that.selsLH.data = result
|
|
|
+ res.data.result.forEach(it =>{
|
|
|
+ it.status = types === "gz" ? "故障" : "检修"
|
|
|
+ })
|
|
|
+ that.tableData = res.data.result
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
//获取预警统计
|
|
|
- getFindCtFeature(modelIds) {
|
|
|
+ getFindCtFeature(modelIds, dateType) {
|
|
|
let that = this
|
|
|
+ let date = ""
|
|
|
+ if (dateType === "z") {
|
|
|
+ date = dayjs().subtract(1, 'week').format("YYYY-MM-DD HH:mm:ss")
|
|
|
+ } else if (dateType === "y") {
|
|
|
+ date = dayjs().subtract(1, 'month').format("YYYY-MM-DD HH:mm:ss")
|
|
|
+ } else if (dateType === "n") {
|
|
|
+ date = dayjs().subtract(1, 'year').format("YYYY-MM-DD HH:mm:ss")
|
|
|
+ } else {
|
|
|
+ date = dayjs().subtract(1, 'month').format("YYYY-MM-DD HH:mm:ss")
|
|
|
+ }
|
|
|
let params = {
|
|
|
stationid: "NX_FGS_HA_FDC_STA",
|
|
|
modelId: modelIds,
|
|
|
- begin: dayjs().subtract(1, 'month').format("YYYY-MM-DD HH:mm:ss"),
|
|
|
+ begin: date,
|
|
|
end: dayjs().format("YYYY-MM-DD HH:mm:ss"),
|
|
|
deviceType: "windturbine"
|
|
|
}
|
|
@@ -653,7 +712,7 @@
|
|
|
res.forEach(it =>{
|
|
|
let obj = {
|
|
|
name: it.typeName,
|
|
|
- value: it.total
|
|
|
+ value: modelIds === "WT2000D121H85" ? that.warnPC : that.warnPC2 ? it.total : it.totalSeconds
|
|
|
}
|
|
|
result.push(obj)
|
|
|
})
|
|
@@ -666,12 +725,22 @@
|
|
|
})
|
|
|
},
|
|
|
//获取故障统计
|
|
|
- getShutDownEvent(modelIds) {
|
|
|
+ getShutDownEvent(modelIds, dateType) {
|
|
|
let that = this
|
|
|
+ let date = ""
|
|
|
+ if (dateType === "z") {
|
|
|
+ date = dayjs().subtract(1, 'week').format("YYYY-MM-DD HH:mm:ss")
|
|
|
+ } else if (dateType === "y") {
|
|
|
+ date = dayjs().subtract(1, 'month').format("YYYY-MM-DD HH:mm:ss")
|
|
|
+ } else if (dateType === "n") {
|
|
|
+ date = dayjs().subtract(1, 'year').format("YYYY-MM-DD HH:mm:ss")
|
|
|
+ } else {
|
|
|
+ date = dayjs().subtract(1, 'month').format("YYYY-MM-DD HH:mm:ss")
|
|
|
+ }
|
|
|
let params = {
|
|
|
wpId: "NX_FGS_HA_FDC_STA",
|
|
|
modelId: modelIds,
|
|
|
- begin: dayjs().subtract(1, 'month').format("YYYY-MM-DD HH:mm:ss"),
|
|
|
+ begin: date,
|
|
|
end: dayjs().format("YYYY-MM-DD HH:mm:ss")
|
|
|
}
|
|
|
apiGetqueryShutdownEvent2ByType(params).then(res =>{
|
|
@@ -680,7 +749,7 @@
|
|
|
res.data.forEach(it =>{
|
|
|
let obj = {
|
|
|
name: it.name,
|
|
|
- value: it.times
|
|
|
+ value: modelIds === "WT2000D121H85" ? that.warnPC : that.warnPC2 ? it.times : it.hours
|
|
|
}
|
|
|
result.push(obj)
|
|
|
})
|
|
@@ -692,14 +761,14 @@
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- //获取故障次数时长
|
|
|
- getShutdownEventByDay(modelIds) {
|
|
|
+ //获取故障次数时长----日
|
|
|
+ getShutdownEventByDay(modelIds, dates) {
|
|
|
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")
|
|
|
+ begin: dates[0],
|
|
|
+ end: dates[1]
|
|
|
}
|
|
|
apiGetqueryShutdownEvent2ByDay(params).then(res =>{
|
|
|
if (res && res.data) {
|
|
@@ -726,20 +795,95 @@
|
|
|
symbol: "none",
|
|
|
},
|
|
|
];
|
|
|
- that.getPowerLine(
|
|
|
- xAxis,
|
|
|
- series,
|
|
|
- "problem1"
|
|
|
- );
|
|
|
- that.getPowerLine2(
|
|
|
- xAxis,
|
|
|
- series,
|
|
|
- "problem2"
|
|
|
- );
|
|
|
+ if (modelIds === "WT2000D121H85") {
|
|
|
+ that.getPowerLine(
|
|
|
+ xAxis,
|
|
|
+ series,
|
|
|
+ "problem1"
|
|
|
+ );
|
|
|
+ } else {
|
|
|
+ that.getPowerLine2(
|
|
|
+ xAxis,
|
|
|
+ series,
|
|
|
+ "problem2"
|
|
|
+ );
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ getShutdownEventByMonth(modelIds, dates) {
|
|
|
+ let that = this
|
|
|
+ let params = {
|
|
|
+ wpId: "NX_FGS_HA_FDC_STA",
|
|
|
+ modelId: modelIds,
|
|
|
+ begin: dates[0],
|
|
|
+ end: dates[1]
|
|
|
+ }
|
|
|
+ apiGetqueryShutdownEvent2ByMonth(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",
|
|
|
+ },
|
|
|
+ ];
|
|
|
+ if (modelIds === "WT2000D121H85") {
|
|
|
+ that.problem3 = {
|
|
|
+ xAxis: xAxis,
|
|
|
+ series: series
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ that.problem3 = {
|
|
|
+ xAxis: xAxis,
|
|
|
+ series: series
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ getShutdownEventByMap(modelIds, dates) {
|
|
|
+ let that = this
|
|
|
+ let params = {
|
|
|
+ wpId: "NX_FGS_HA_FDC_STA",
|
|
|
+ modelId: modelIds,
|
|
|
+ begin: dates[0],
|
|
|
+ end: dates[1]
|
|
|
+ }
|
|
|
+ apiGetqueryShutdownEvent2ByMap(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.probChartData = result
|
|
|
+ } else {
|
|
|
+ that.probChartData = result
|
|
|
+ }
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
-
|
|
|
|
|
|
getPowerLine(
|
|
|
xAxis,
|
|
@@ -968,25 +1112,119 @@
|
|
|
});
|
|
|
},
|
|
|
|
|
|
- openWeatherDialog() {
|
|
|
- // this.showWeatherDialog = true;
|
|
|
- this.$refs.weatherDia.showWeaterDialog()
|
|
|
+ clickStopRow(type) {
|
|
|
+ this.showTableDialog = true;
|
|
|
+ if (type === 'left') {
|
|
|
+ if (!this.bjSwitch) {
|
|
|
+ this.getShutDownevenList("gz", "WT2000D121H85", 100)
|
|
|
+ } else {
|
|
|
+ this.getShutDownevenList("wh", "WT2000D121H85", 100)
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ if (!this.bjSwitch2) {
|
|
|
+ this.getShutDownevenList("gz", "UP2000-130", 100)
|
|
|
+ } else {
|
|
|
+ this.getShutDownevenList("wh", "UP2000-130", 100)
|
|
|
+ }
|
|
|
+ }
|
|
|
},
|
|
|
|
|
|
- openVideoDialog(item) {
|
|
|
- if (item.url && item.token) {
|
|
|
- this.dialogVideoUrl = item.url + item.token;
|
|
|
- this.showVideoDialog = true;
|
|
|
+ changeBjSwitch(type) {
|
|
|
+ if (type === "left") {
|
|
|
+ this.bjSwitch = !this.bjSwitch;
|
|
|
+ if (!this.bjSwitch) {
|
|
|
+ this.getShutDownevenList("gz", "WT2000D121H85", 5)
|
|
|
+ } else {
|
|
|
+ this.getShutDownevenList("wh", "WT2000D121H85", 5)
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ this.bjSwitch2 = !this.bjSwitch2;
|
|
|
+ if (!this.bjSwitch2) {
|
|
|
+ this.getShutDownevenList("gz", "UP2000-130", 5)
|
|
|
+ } else {
|
|
|
+ this.getShutDownevenList("wh", "UP2000-130", 5)
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
|
|
|
- openVideoDialog1(item) {
|
|
|
- if (item.code) {
|
|
|
- this.dialogVideoUrl = item.code;
|
|
|
- this.showVideoDialog = true;
|
|
|
+ changeWarnSwitch(val) {
|
|
|
+ this.warnSwitch = val
|
|
|
+ this.getFindCtFeature("WT2000D121H85", val)
|
|
|
+ },
|
|
|
+ changeWarnSwitch2(val) {
|
|
|
+ this.warnSwitch2 = val
|
|
|
+ this.getFindCtFeature("UP2000-130", val)
|
|
|
+ },
|
|
|
+ changeProbSwitch(val) {
|
|
|
+ this.probSwitch = val
|
|
|
+ this.getShutDownEvent("WT2000D121H85", val)
|
|
|
+ },
|
|
|
+ changeProbSwitch2(val) {
|
|
|
+ this.probSwitch2 = val
|
|
|
+ this.getShutDownEvent("UP2000-130", val)
|
|
|
+ },
|
|
|
+
|
|
|
+ changeProbPC(type) {
|
|
|
+ if (type === 'left') {
|
|
|
+ this.probPC = !this.probPC;
|
|
|
+ this.getShutDownEvent("WT2000D121H85", this.probSwitch)
|
|
|
+ } else {
|
|
|
+ this.probPC2 = !this.probPC2;
|
|
|
+ this.getShutDownEvent("UP2000-130", this.probSwitch2)
|
|
|
+ }
|
|
|
+ },
|
|
|
+ changeWarnPC(type) {
|
|
|
+ if (type === 'left') {
|
|
|
+ this.warnPC = !this.warnPC;
|
|
|
+ this.getFindCtFeature("WT2000D121H85", this.warnSwitch)
|
|
|
+ } else {
|
|
|
+ this.warnPC2 = !this.warnPC2;
|
|
|
+ this.getFindCtFeature("UP2000-130", this.warnSwitch2)
|
|
|
+ }
|
|
|
+ },
|
|
|
+ clickTime(type) {
|
|
|
+ let res = jsonData
|
|
|
+ this.noTimeDialog = true
|
|
|
+ this.noTimeType = type
|
|
|
+ let that = this
|
|
|
+ // 72小时功率曲线
|
|
|
+ if (res.data["72time"] && res.data["72time"].length > 0) {
|
|
|
+ let xAxis = [];
|
|
|
+ let seriesSpeed = [];
|
|
|
+ let seriesGl = []
|
|
|
+ res.data["72time"].forEach((it) => {
|
|
|
+ xAxis.push(dayjs(it.time).format("MM-DD HH:mm"));
|
|
|
+ seriesSpeed.push(it.speed);
|
|
|
+ seriesGl.push(it.expectedpower);
|
|
|
+ });
|
|
|
+ let series = [
|
|
|
+ {
|
|
|
+ name: "故障次数",
|
|
|
+ data: seriesSpeed,
|
|
|
+ type: "line",
|
|
|
+ symbol: "none",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "故障时长",
|
|
|
+ data: seriesGl,
|
|
|
+ yAxisIndex: 1,
|
|
|
+ type: "line",
|
|
|
+ symbol: "none",
|
|
|
+ },
|
|
|
+ ];
|
|
|
+ this.problem3 = {
|
|
|
+ xAxis: xAxis,
|
|
|
+ series: series
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (type === 'left') {
|
|
|
+ that.getShutdownEventByDay("WT2000D121H85", that.radioTime)
|
|
|
+ that.getShutdownEventByMap("WT2000D121H85", that.radioTime)
|
|
|
+ } else {
|
|
|
+ that.getShutdownEventByDay("UP2000-130", that.radioTime)
|
|
|
+ that.getShutdownEventByMap("UP2000-130", that.radioTime)
|
|
|
}
|
|
|
},
|
|
|
-
|
|
|
|
|
|
// 获取历史记录表
|
|
|
async getAlarmHistoryt(params, type) {
|
|
@@ -1179,30 +1417,6 @@
|
|
|
});
|
|
|
},
|
|
|
|
|
|
- clickStopRow() {
|
|
|
- this.showTableDialog = true;
|
|
|
- },
|
|
|
-
|
|
|
- clickHealthRow(row) {
|
|
|
- this.tableItem = row;
|
|
|
- this.showHealthDialog = true;
|
|
|
- },
|
|
|
-
|
|
|
- delaylyFn(time, fn) {
|
|
|
- setTimeout(() => {
|
|
|
- fn();
|
|
|
- }, time);
|
|
|
- },
|
|
|
-
|
|
|
- riseNumber(number) {
|
|
|
- // if (number < 0) {
|
|
|
- // return (number - number * 2) / 100;
|
|
|
- // } else {
|
|
|
- // return number / 100;
|
|
|
- // }
|
|
|
- return number / 100;
|
|
|
- },
|
|
|
-
|
|
|
// 切换人员展示
|
|
|
changePeople(index) {
|
|
|
if (!this.peopleAnmLock && this.workDataIndex !== index) {
|
|
@@ -1260,93 +1474,11 @@
|
|
|
this.getWpMainInfo();
|
|
|
},
|
|
|
|
|
|
- // 页面跳转
|
|
|
- jumpUrl(url) {
|
|
|
- this.$router.push(url);
|
|
|
- },
|
|
|
-
|
|
|
when() {
|
|
|
this.showPanel = true;
|
|
|
},
|
|
|
|
|
|
- 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) {
|
|
|
- this.warnSwitch = val
|
|
|
- },
|
|
|
- changeWarnSwitch2(val) {
|
|
|
- this.warnSwitch2 = val
|
|
|
- },
|
|
|
- changeProbSwitch(val) {
|
|
|
- this.probSwitch = val
|
|
|
- },
|
|
|
- changeProbSwitch2(val) {
|
|
|
- this.warnSwitch2 = val
|
|
|
- },
|
|
|
|
|
|
- changeProbPC() {
|
|
|
- this.probPC = !this.probPC;
|
|
|
- },
|
|
|
- changeProbPC2() {
|
|
|
- this.probPC2 = !this.probPC2;
|
|
|
- },
|
|
|
- changeWarnPC() {
|
|
|
- this.warnPC = !this.warnPC;
|
|
|
- },
|
|
|
- changeWarnPC2() {
|
|
|
- this.warnPC2 = !this.warnPC2;
|
|
|
- },
|
|
|
- clickTime() {
|
|
|
- let res = jsonData
|
|
|
- this.noTimeDialog = true
|
|
|
- let that = this
|
|
|
- // 72小时功率曲线
|
|
|
- if (res.data["72time"] && res.data["72time"].length > 0) {
|
|
|
- let xAxis = [];
|
|
|
- let seriesSpeed = [];
|
|
|
- let seriesGl = []
|
|
|
- res.data["72time"].forEach((it) => {
|
|
|
- xAxis.push(dayjs(it.time).format("MM-DD HH:mm"));
|
|
|
- seriesSpeed.push(it.speed);
|
|
|
- seriesGl.push(it.expectedpower);
|
|
|
- });
|
|
|
- let series = [
|
|
|
- {
|
|
|
- name: "故障次数",
|
|
|
- data: seriesSpeed,
|
|
|
- type: "line",
|
|
|
- symbol: "none",
|
|
|
- },
|
|
|
- {
|
|
|
- name: "故障时长",
|
|
|
- data: seriesGl,
|
|
|
- yAxisIndex: 1,
|
|
|
- type: "line",
|
|
|
- symbol: "none",
|
|
|
- },
|
|
|
- ];
|
|
|
- this.problem3 = {
|
|
|
- xAxis: xAxis,
|
|
|
- series: series
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
},
|
|
|
// 生命周期钩子
|
|
|
beforeCreate() {
|
|
@@ -1732,9 +1864,17 @@
|
|
|
.el-overlay-dialog{
|
|
|
.el-dialog{
|
|
|
.el-dialog__body{
|
|
|
+ padding-top: 0 !important;
|
|
|
.allStyle{
|
|
|
max-height: 55vh;
|
|
|
overflow: auto;
|
|
|
+ .radioGroupTime{
|
|
|
+ display: flex;
|
|
|
+ margin-bottom: 10px;
|
|
|
+ .el-date-editor{
|
|
|
+ margin-right: 10px;
|
|
|
+ }
|
|
|
+ }
|
|
|
.allMain{
|
|
|
.mainTit{
|
|
|
display: inline-block;
|