|
@@ -49,22 +49,17 @@
|
|
{{ item[1] }}
|
|
{{ item[1] }}
|
|
</td>
|
|
</td>
|
|
<td style="width: 105px">
|
|
<td style="width: 105px">
|
|
- <div
|
|
|
|
- :style="
|
|
|
|
|
|
+ <div :style="
|
|
'background-color: ' +
|
|
'background-color: ' +
|
|
item[0] +
|
|
item[0] +
|
|
';width:10px;height:10px;margin:0 auto;'
|
|
';width:10px;height:10px;margin:0 auto;'
|
|
- "
|
|
|
|
- ></div>
|
|
|
|
|
|
+ "></div>
|
|
</td>
|
|
</td>
|
|
<td style="width: 400px">
|
|
<td style="width: 400px">
|
|
<div class="percent-item">
|
|
<div class="percent-item">
|
|
{{ item[3] }}%
|
|
{{ item[3] }}%
|
|
<div class="percent-bar" style="margin-right: 4px">
|
|
<div class="percent-bar" style="margin-right: 4px">
|
|
- <div
|
|
|
|
- class="percent-value"
|
|
|
|
- :style="'width:' + item[3] + '%'"
|
|
|
|
- ></div>
|
|
|
|
|
|
+ <div class="percent-value" :style="'width:' + item[3] + '%'"></div>
|
|
</div>
|
|
</div>
|
|
<!-- 剩余9999/建个故障9999 -->
|
|
<!-- 剩余9999/建个故障9999 -->
|
|
{{ item[4] }}
|
|
{{ item[4] }}
|
|
@@ -87,43 +82,28 @@
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
<div class="chart-title">
|
|
<div class="chart-title">
|
|
<div class="title-panel" style="">
|
|
<div class="title-panel" style="">
|
|
- <span style="text-align: left; padding-left: 20px; font-size: 12px"
|
|
|
|
- >故障信息
|
|
|
|
|
|
+ <span style="text-align: left; padding-left: 20px; font-size: 12px">故障信息
|
|
</span>
|
|
</span>
|
|
- <span class="des-title"
|
|
|
|
- >预计损失电量<span class="num">73824.0</span
|
|
|
|
- ><span class="unit">Kwh</span></span
|
|
|
|
- >
|
|
|
|
- <span class="des-title"
|
|
|
|
- >预计检修时长<span class="num">29.33</span
|
|
|
|
- ><span class="unit">H</span></span
|
|
|
|
- >
|
|
|
|
|
|
+ <span class="des-title">预计损失电量<span class="num">73824.0</span><span class="unit">Kwh</span></span>
|
|
|
|
+ <span class="des-title">预计检修时长<span class="num">29.33</span><span class="unit">H</span></span>
|
|
</div>
|
|
</div>
|
|
- <img-line-chart
|
|
|
|
|
|
+ <!-- <img-line-chart
|
|
height="270px"
|
|
height="270px"
|
|
- />
|
|
|
|
- <!-- <weather-line-chart/> -->
|
|
|
|
|
|
+ /> -->
|
|
|
|
+ <weather-line-chart :list="weatherData"/>
|
|
</div>
|
|
</div>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
<div class="fc-info mg-b-16">
|
|
<div class="fc-info mg-b-16">
|
|
<panel :title="'曲线'" :showLine="false">
|
|
<panel :title="'曲线'" :showLine="false">
|
|
- <zoom-line-chart
|
|
|
|
- height="35vh"
|
|
|
|
- :list="powerChartData.value"
|
|
|
|
- :units="powerChartData.units"
|
|
|
|
- />
|
|
|
|
|
|
+ <zoom-line-chart height="35vh" :list="powerChartData.value" :units="powerChartData.units" />
|
|
</panel>
|
|
</panel>
|
|
</div>
|
|
</div>
|
|
- <HealthReport
|
|
|
|
- :show="healthReportShow"
|
|
|
|
- :params="{ wtId: this.wtId, recorddate: this.recorddate }"
|
|
|
|
- @closed="
|
|
|
|
|
|
+ <HealthReport :show="healthReportShow" :params="{ wtId: this.wtId, recorddate: this.recorddate }" @closed="
|
|
(res) => {
|
|
(res) => {
|
|
this.healthReportShow = false;
|
|
this.healthReportShow = false;
|
|
}
|
|
}
|
|
- "
|
|
|
|
- />
|
|
|
|
|
|
+ " />
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -191,7 +171,7 @@ export default {
|
|
template() {
|
|
template() {
|
|
return "<div style='border: 1px solid #182238;background: #303f6e;width: 70%;margin: 0 auto;color:#FFF;cursor: pointer;'>查看报告</div>";
|
|
return "<div style='border: 1px solid #182238;background: #303f6e;width: 70%;margin: 0 auto;color:#FFF;cursor: pointer;'>查看报告</div>";
|
|
},
|
|
},
|
|
- click(e,row) {
|
|
|
|
|
|
+ click(e, row) {
|
|
that.recorddate = row.date;
|
|
that.recorddate = row.date;
|
|
that.healthReportShow = true;
|
|
that.healthReportShow = true;
|
|
},
|
|
},
|
|
@@ -325,144 +305,7 @@ export default {
|
|
],
|
|
],
|
|
},
|
|
},
|
|
// 月发电量对比
|
|
// 月发电量对比
|
|
- weatherChart: {
|
|
|
|
- units: ["功率", "风速"],
|
|
|
|
- value: [
|
|
|
|
- {
|
|
|
|
- title: "应发功率",
|
|
|
|
- yAxisIndex: 1,
|
|
|
|
- value: [
|
|
|
|
- {
|
|
|
|
- text: "05-02 00:00",
|
|
|
|
- value: 11,
|
|
|
|
- weather: 'sun',
|
|
|
|
- direction: "n",
|
|
|
|
- angle: 0,
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- text: "05-04 00:00",
|
|
|
|
- value: 11,
|
|
|
|
- weather: 'rain',
|
|
|
|
- direction: "s",
|
|
|
|
- angle: 20,
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- text: "05-06 00:00",
|
|
|
|
- value: 13,
|
|
|
|
- weather: 'sun',
|
|
|
|
- direction: "w",
|
|
|
|
- angle: 30,
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- text: "05-08 00:00",
|
|
|
|
- value: 12,
|
|
|
|
- weather: 'cloud',
|
|
|
|
- direction: "e",
|
|
|
|
- angle: 40,
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- text: "05-10 00:00",
|
|
|
|
- value: 13,
|
|
|
|
- weather: 'sun',
|
|
|
|
- direction: "nw",
|
|
|
|
- angle: 90,
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- text: "05-12 00:00",
|
|
|
|
- value: 12,
|
|
|
|
- weather: 'sun',
|
|
|
|
- direction: "ne",
|
|
|
|
- angle: 120,
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- text: "05-14 00:00",
|
|
|
|
- value: 11,
|
|
|
|
- weather: 'cloud',
|
|
|
|
- direction: "sw",
|
|
|
|
- angle: 180,
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- text: "05-16 00:00",
|
|
|
|
- value: 11,
|
|
|
|
- weather: 'sun',
|
|
|
|
- direction: "se",
|
|
|
|
- angle: 10,
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- text: "05-18 00:00",
|
|
|
|
- value: 13,
|
|
|
|
- weather: 'rain',
|
|
|
|
- direction: "n",
|
|
|
|
- angle: 270,
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- text: "05-20 00:00",
|
|
|
|
- value: 11,
|
|
|
|
- weather: 'cloud',
|
|
|
|
- direction: "n",
|
|
|
|
- angle: 10,
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- text: "05-22 00:00",
|
|
|
|
- value: 12,
|
|
|
|
- weather: 'sun',
|
|
|
|
- direction: "n",
|
|
|
|
- angle: 10,
|
|
|
|
- },
|
|
|
|
- ],
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- title: "实际功率",
|
|
|
|
- yAxisIndex: 1,
|
|
|
|
- value: [
|
|
|
|
- {
|
|
|
|
- text: "05-02 00:00",
|
|
|
|
- value: 1,
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- text: "05-04 00:00",
|
|
|
|
- value: 3,
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- text: "05-06 00:00",
|
|
|
|
- value: 4,
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- text: "05-08 00:00",
|
|
|
|
- value: 1,
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- text: "05-10 00:00",
|
|
|
|
- value: 3,
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- text: "05-12 00:00",
|
|
|
|
- value: 5,
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- text: "05-14 00:00",
|
|
|
|
- value: 1,
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- text: "05-16 00:00",
|
|
|
|
- value: 5,
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- text: "05-18 00:00",
|
|
|
|
- value: 4,
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- text: "05-20 00:00",
|
|
|
|
- value: 1,
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- text: "05-22 00:00",
|
|
|
|
- value: 3,
|
|
|
|
- },
|
|
|
|
- ],
|
|
|
|
- },
|
|
|
|
- ],
|
|
|
|
- },
|
|
|
|
|
|
+ weatherData: [],
|
|
powerChartData: {
|
|
powerChartData: {
|
|
units: [""],
|
|
units: [""],
|
|
value: [
|
|
value: [
|
|
@@ -482,7 +325,7 @@ export default {
|
|
},
|
|
},
|
|
|
|
|
|
methods: {
|
|
methods: {
|
|
- init(){
|
|
|
|
|
|
+ init() {
|
|
this.wpId = this.$route.params.wpId;
|
|
this.wpId = this.$route.params.wpId;
|
|
this.wtId = this.$route.params.wtId;
|
|
this.wtId = this.$route.params.wtId;
|
|
this.getTop5();
|
|
this.getTop5();
|
|
@@ -492,7 +335,7 @@ export default {
|
|
this.getFindPowerChar();
|
|
this.getFindPowerChar();
|
|
this.getWeather();
|
|
this.getWeather();
|
|
},
|
|
},
|
|
- switchWt(data){
|
|
|
|
|
|
+ switchWt(data) {
|
|
this.$router.push(`/health/health10/${data.wpId}/${data.wtId}`);
|
|
this.$router.push(`/health/health10/${data.wpId}/${data.wtId}`);
|
|
this.init();
|
|
this.init();
|
|
},
|
|
},
|
|
@@ -654,42 +497,22 @@ export default {
|
|
},
|
|
},
|
|
|
|
|
|
// 获取天气信息
|
|
// 获取天气信息
|
|
- getWeather() {
|
|
|
|
- let that = this;
|
|
|
|
- that.API.requestData({
|
|
|
|
|
|
+ async getWeather() {
|
|
|
|
+ const { data } = await this.API.requestData({
|
|
method: "POST",
|
|
method: "POST",
|
|
subUrl: "healthsub/getWeatherRealDay5Info",
|
|
subUrl: "healthsub/getWeatherRealDay5Info",
|
|
- data: {
|
|
|
|
- wpId: that.wpId,
|
|
|
|
- },
|
|
|
|
- success(res) {
|
|
|
|
- console.log(123123, res);
|
|
|
|
- let weatherChart = [];
|
|
|
|
-
|
|
|
|
- let chartUnits = ["(m/s)", "(℃)"];
|
|
|
|
- let chartData = [
|
|
|
|
- {
|
|
|
|
- title: "风速",
|
|
|
|
- yAxisIndex: 0,
|
|
|
|
- value: [],
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- title: "温度",
|
|
|
|
- yAxisIndex: 1,
|
|
|
|
- value: [],
|
|
|
|
- },
|
|
|
|
- ];
|
|
|
|
-
|
|
|
|
- res.data.ls.forEach((item) => {
|
|
|
|
- chartData[0].value.push({
|
|
|
|
- text: "05-02 00:00",
|
|
|
|
- value: 11,
|
|
|
|
- weather: "sun",
|
|
|
|
- direction: "n",
|
|
|
|
- });
|
|
|
|
- });
|
|
|
|
- },
|
|
|
|
|
|
+ data: { wpId: this.wpId },
|
|
});
|
|
});
|
|
|
|
+ // console.log(data);
|
|
|
|
+ if (data && data.data) {
|
|
|
|
+ this.weatherData = data.data.ls;
|
|
|
|
+ // const list = [];
|
|
|
|
+ // data.data.ls.forEach((element) => {
|
|
|
|
+ // console.log(element);
|
|
|
|
+ // console.log(new Date(element.time).formatDate("yyyy-MM-dd hh:mm:ss"));
|
|
|
|
+ // list.push();
|
|
|
|
+ // });
|
|
|
|
+ }
|
|
},
|
|
},
|
|
},
|
|
},
|
|
};
|
|
};
|