|
@@ -42,43 +42,43 @@
|
|
<el-table
|
|
<el-table
|
|
:data="tableData"
|
|
:data="tableData"
|
|
stripe
|
|
stripe
|
|
- size="small"
|
|
|
|
|
|
+ size="large"
|
|
:border="true"
|
|
:border="true"
|
|
:style="{ width: '100%' }"
|
|
:style="{ width: '100%' }"
|
|
>
|
|
>
|
|
<el-table-column
|
|
<el-table-column
|
|
- width="250"
|
|
|
|
|
|
+
|
|
resizable
|
|
resizable
|
|
align="center"
|
|
align="center"
|
|
type="index"
|
|
type="index"
|
|
label="序号"
|
|
label="序号"
|
|
/>
|
|
/>
|
|
<el-table-column
|
|
<el-table-column
|
|
- width="350"
|
|
|
|
|
|
+
|
|
resizable
|
|
resizable
|
|
align="center"
|
|
align="center"
|
|
prop="station"
|
|
prop="station"
|
|
label="场站名称"
|
|
label="场站名称"
|
|
/>
|
|
/>
|
|
<el-table-column
|
|
<el-table-column
|
|
- width="350"
|
|
|
|
|
|
+
|
|
resizable
|
|
resizable
|
|
align="center"
|
|
align="center"
|
|
prop="time"
|
|
prop="time"
|
|
label="时间"
|
|
label="时间"
|
|
/>
|
|
/>
|
|
<el-table-column
|
|
<el-table-column
|
|
- width="350"
|
|
|
|
|
|
+
|
|
resizable
|
|
resizable
|
|
align="center"
|
|
align="center"
|
|
prop="wtidcount"
|
|
prop="wtidcount"
|
|
label="风机数量"
|
|
label="风机数量"
|
|
/>
|
|
/>
|
|
- <el-table-column width="350" resizable align="center" label="操作">
|
|
|
|
|
|
+ <el-table-column resizable align="center" label="操作">
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
- <el-button size="small" @click="handleEdit(scope.$index, scope.row)"
|
|
|
|
|
|
+ <!-- <el-button size="small" @click="handleEdit(scope.$index, scope.row)"
|
|
>下载</el-button
|
|
>下载</el-button
|
|
- >
|
|
|
|
|
|
+ > -->
|
|
<el-button
|
|
<el-button
|
|
size="small"
|
|
size="small"
|
|
type="danger"
|
|
type="danger"
|
|
@@ -89,24 +89,26 @@
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
</div>
|
|
</div>
|
|
- <div id="pdfDom">
|
|
|
|
|
|
+ <div >
|
|
<el-dialog
|
|
<el-dialog
|
|
v-model="centerDialogVisible"
|
|
v-model="centerDialogVisible"
|
|
title="风电场性能分析报告"
|
|
title="风电场性能分析报告"
|
|
width="50%"
|
|
width="50%"
|
|
center
|
|
center
|
|
>
|
|
>
|
|
|
|
+ <div id="pdfDom">
|
|
|
|
+ <!-- <h3 style="font-weight: bolder; font-size: 18px; color: black;text-aling:center">风电场性能分析报告</h3> -->
|
|
<p>
|
|
<p>
|
|
- <span>场站:{{ nbdata.name }}</span>
|
|
|
|
- <span class="ml-79">风机型号:{{ nbdata.model }}</span>
|
|
|
|
|
|
+ <span class="ml-10">场站: {{ nbdata.name }}</span>
|
|
|
|
+ <span class="ml-77">风机型号: {{ nbdata.model }}</span>
|
|
</p>
|
|
</p>
|
|
<p>
|
|
<p>
|
|
- <span>风机数量:{{ nbdata.quantity }}</span>
|
|
|
|
- <span class="ml-87">装机容量(MW):{{ nbdata.capacity }}</span>
|
|
|
|
|
|
+ <span class="ml-10">风机数量: {{ nbdata.quantity }}</span>
|
|
|
|
+ <span class="ml-85">装机容量(MW): {{ nbdata.capacity }}</span>
|
|
</p>
|
|
</p>
|
|
<p>
|
|
<p>
|
|
- <span>报告生成日期:{{ time }}</span>
|
|
|
|
- <span class="ml-74">数据分析周期:{{ eltime }}</span>
|
|
|
|
|
|
+ <span class="ml-10">报告生成日期: {{ time }}</span>
|
|
|
|
+ <span class="ml-72">数据分析周期: {{ eltime }}</span>
|
|
</p>
|
|
</p>
|
|
<h3 style="font-weight: bolder; font-size: 18px; color: black">概述:</h3>
|
|
<h3 style="font-weight: bolder; font-size: 18px; color: black">概述:</h3>
|
|
<p class="ml-7">
|
|
<p class="ml-7">
|
|
@@ -225,7 +227,7 @@
|
|
<p class="ml-7">
|
|
<p class="ml-7">
|
|
综上统计周期内数据分析,{{ nbdata.name }}的{{hjwtid}}台风机出现频率最高为{{hjcount}}次。
|
|
综上统计周期内数据分析,{{ nbdata.name }}的{{hjwtid}}台风机出现频率最高为{{hjcount}}次。
|
|
</p>
|
|
</p>
|
|
-
|
|
|
|
|
|
+</div>
|
|
<template #footer>
|
|
<template #footer>
|
|
<span class="dialog-footer">
|
|
<span class="dialog-footer">
|
|
<el-button @click="centerDialogVisible = false">取消</el-button>
|
|
<el-button @click="centerDialogVisible = false">取消</el-button>
|
|
@@ -252,10 +254,14 @@ const staticwind = ref([]);
|
|
const stoptime = ref([]);
|
|
const stoptime = ref([]);
|
|
const nbdata = ref({});
|
|
const nbdata = ref({});
|
|
const loading=ref(false)
|
|
const loading=ref(false)
|
|
|
|
+
|
|
const exportPDF = () => {
|
|
const exportPDF = () => {
|
|
loading.value = true;
|
|
loading.value = true;
|
|
// 调用htmlToPdf工具函数
|
|
// 调用htmlToPdf工具函数
|
|
- htmlToPdf.getPdf('分析报告');
|
|
|
|
|
|
+ htmlToPdf.getPdf(
|
|
|
|
+ document.querySelector("#pdfDom"),
|
|
|
|
+ "风电场性能分析报告"
|
|
|
|
+ );
|
|
// 定时器模拟按钮loading动画的时间
|
|
// 定时器模拟按钮loading动画的时间
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
loading.value = false;
|
|
loading.value = false;
|
|
@@ -265,12 +271,6 @@ const exportPDF = () => {
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
const centerDialogVisible = ref(false);
|
|
const centerDialogVisible = ref(false);
|
|
/**场站 */
|
|
/**场站 */
|
|
const stationList = ref([]);
|
|
const stationList = ref([]);
|