|
@@ -83,7 +83,7 @@
|
|
<el-button
|
|
<el-button
|
|
size="small"
|
|
size="small"
|
|
type="danger"
|
|
type="danger"
|
|
- @click="handleDelete(scope.$index, scope.row)"
|
|
|
|
|
|
+ @click="handleReport(scope.$index, scope.row)"
|
|
>查看报告</el-button
|
|
>查看报告</el-button
|
|
>
|
|
>
|
|
</template>
|
|
</template>
|
|
@@ -96,6 +96,7 @@
|
|
title="风电场性能分析报告"
|
|
title="风电场性能分析报告"
|
|
width="50%"
|
|
width="50%"
|
|
center
|
|
center
|
|
|
|
+ :before-close="handleClose"
|
|
style="padding: 15px 40px;"
|
|
style="padding: 15px 40px;"
|
|
>
|
|
>
|
|
<div id="pdfDom">
|
|
<div id="pdfDom">
|
|
@@ -232,7 +233,7 @@
|
|
</div>
|
|
</div>
|
|
<template #footer>
|
|
<template #footer>
|
|
<span class="dialog-footer">
|
|
<span class="dialog-footer">
|
|
- <el-button @click="centerDialogVisible = false">取消</el-button>
|
|
|
|
|
|
+ <el-button @click="handleClose">取消</el-button>
|
|
<!-- <el-button type="primary" @click="centerDialogVisible = false">
|
|
<!-- <el-button type="primary" @click="centerDialogVisible = false">
|
|
确定
|
|
确定
|
|
</el-button> -->
|
|
</el-button> -->
|
|
@@ -297,7 +298,7 @@ const addform = async () => {
|
|
let val1 = ref();
|
|
let val1 = ref();
|
|
let value2 = ref();
|
|
let value2 = ref();
|
|
const BeginChange = (val) => {
|
|
const BeginChange = (val) => {
|
|
- console.log(val);
|
|
|
|
|
|
+ // console.log(val);
|
|
val1.value = val;
|
|
val1.value = val;
|
|
// console.log(val);
|
|
// console.log(val);
|
|
};
|
|
};
|
|
@@ -310,7 +311,7 @@ let eltime = ref();
|
|
let wtcount=ref()
|
|
let wtcount=ref()
|
|
let hjwtid=ref()
|
|
let hjwtid=ref()
|
|
let hjcount=ref()
|
|
let hjcount=ref()
|
|
-const handleDelete = async (index, row) => {
|
|
|
|
|
|
+const handleReport = async (index, row) => {
|
|
time.value = row.time;
|
|
time.value = row.time;
|
|
// console.log(index, row)
|
|
// console.log(index, row)
|
|
centerDialogVisible.value = true;
|
|
centerDialogVisible.value = true;
|
|
@@ -319,9 +320,11 @@ const handleDelete = async (index, row) => {
|
|
);
|
|
);
|
|
nbdata.value = res.data.station;
|
|
nbdata.value = res.data.station;
|
|
// console.log('nb',nbdata.value);
|
|
// console.log('nb',nbdata.value);
|
|
- res.data.info.curve.forEach((ele) => {
|
|
|
|
|
|
+ if(res.data.info.curve?.length){
|
|
|
|
+ res.data.info.curve.forEach((ele) => {
|
|
ele.module = "偏差率负值";
|
|
ele.module = "偏差率负值";
|
|
});
|
|
});
|
|
|
|
+ }
|
|
// res.data.info.stoptime.forEach((ele)=>{
|
|
// res.data.info.stoptime.forEach((ele)=>{
|
|
// ele.remark=ele.remark/60
|
|
// ele.remark=ele.remark/60
|
|
// })
|
|
// })
|
|
@@ -352,6 +355,23 @@ const getTime1 = (val) => {
|
|
return end;
|
|
return end;
|
|
}
|
|
}
|
|
};
|
|
};
|
|
|
|
+
|
|
|
|
+const handleClose = (() => {
|
|
|
|
+ reset();
|
|
|
|
+ centerDialogVisible.value = false;
|
|
|
|
+})
|
|
|
|
+
|
|
|
|
+const reset = (() =>{
|
|
|
|
+ curve.value = [];
|
|
|
|
+ mrlxs.value = [];
|
|
|
|
+ staticwind.value = [];
|
|
|
|
+ stoptime.value = [];
|
|
|
|
+ eltime.value = '';
|
|
|
|
+ wtcount.value = '';
|
|
|
|
+ hjwtid.value = '';
|
|
|
|
+ hjcount.value = '';
|
|
|
|
+});
|
|
|
|
+
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
funGetStation();
|
|
funGetStation();
|
|
|
|
|