|
@@ -1,13 +1,13 @@
|
|
|
<!--
|
|
|
* @Author: your name
|
|
|
* @Date: 2024-05-29 09:13:51
|
|
|
- * @LastEditTime: 2024-06-14 16:01:05
|
|
|
+ * @LastEditTime: 2024-06-17 15:45:24
|
|
|
* @LastEditors: bogon
|
|
|
* @Description: In User Settings Edit
|
|
|
* @FilePath: /performance-test/src/views/performance/components/analysisEvent.vue
|
|
|
-->
|
|
|
<template>
|
|
|
- <div>
|
|
|
+ <div v-loading="loading">
|
|
|
<el-form ref="form" :model="form" label-position="right">
|
|
|
<el-row type="flex" justify="end">
|
|
|
<el-col :span="5">
|
|
@@ -572,6 +572,7 @@ export default {
|
|
|
return {
|
|
|
engineCode: null, //台账机组编号
|
|
|
picker: [],
|
|
|
+ loading: false,
|
|
|
form: {
|
|
|
configAnalysis: null, //分析类型
|
|
|
powerFarmID: null, //风场编号//通过路由获取的默认传递的
|
|
@@ -627,21 +628,79 @@ export default {
|
|
|
this.getWindEngList();
|
|
|
},
|
|
|
async getWindEngList() {
|
|
|
+ this.loading = true;
|
|
|
try {
|
|
|
const res = await getWindEngineGroup({
|
|
|
engineCode: this.engineCode,
|
|
|
});
|
|
|
+ this.loading = false;
|
|
|
this.windDetail = res.data;
|
|
|
} catch (error) {
|
|
|
+ this.loading = false;
|
|
|
console.error(error);
|
|
|
}
|
|
|
},
|
|
|
async getAnalysis() {
|
|
|
console.log(this.form.excludingMonths, "过滤月份");
|
|
|
console.log(this.picker, "分析时间");
|
|
|
+ this.loading = true;
|
|
|
try {
|
|
|
await analysis({
|
|
|
- ...this.form,
|
|
|
+ // ...this.form,
|
|
|
+ configAnalysis:
|
|
|
+ this.form.configAnalysis !== null
|
|
|
+ ? this.form.configAnalysis
|
|
|
+ : undefined, //分析类型
|
|
|
+ powerFarmID: this.$route.query.fieldEngineCode, //风场编号//通过路由获取的默认传递的
|
|
|
+ dataBatchNum: this.$route.query.batchCode, //批次号
|
|
|
+ scada: this.form.scada !== null ? this.form.scada : undefined, //scada数类型
|
|
|
+ turbines:
|
|
|
+ this.form.turbines.length > 0 ? this.form.turbines : undefined, //机组编号
|
|
|
+ excludingMonths:
|
|
|
+ this.form.excludingMonths === null
|
|
|
+ ? undefined
|
|
|
+ : this.form.excludingMonths, //过滤月份
|
|
|
+ valueWindSpeed:
|
|
|
+ this.form.valueWindSpeed.length > 0
|
|
|
+ ? this.form.valueWindSpeed
|
|
|
+ : undefined, //风速值最大最小 数组第一值为min 第二个 max
|
|
|
+ valuePitchAngle:
|
|
|
+ this.form.valuePitchAngle.length > 0
|
|
|
+ ? this.form.valuePitchAngle
|
|
|
+ : undefined, //桨距角最大最小
|
|
|
+ valueActivePower:
|
|
|
+ this.form.valueActivePower.length > 0
|
|
|
+ ? this.form.valueActivePower
|
|
|
+ : undefined, //有功功率
|
|
|
+ valueGeneratorSpeed:
|
|
|
+ this.form.valueGeneratorSpeed.length > 0
|
|
|
+ ? this.form.valueGeneratorSpeed
|
|
|
+ : undefined, //发电机转速
|
|
|
+ //图像
|
|
|
+ dGeneratorSpeed:
|
|
|
+ this.form.dGeneratorSpeed.length > 0
|
|
|
+ ? this.form.dGeneratorSpeed
|
|
|
+ : undefined, //直驱发电机转速轴系 第一个值为步长 第二个min 第三个 max
|
|
|
+ iGeneratorSpeed:
|
|
|
+ this.form.iGeneratorSpeed.length > 0
|
|
|
+ ? this.form.iGeneratorSpeed
|
|
|
+ : undefined, //非直驱发电机转速轴系设置
|
|
|
+ dGeneratorTorque:
|
|
|
+ this.form.dGeneratorTorque.length > 0
|
|
|
+ ? this.form.dGeneratorTorque
|
|
|
+ : undefined, //直驱发电机转矩轴系
|
|
|
+ iGeneratorTorque:
|
|
|
+ this.form.iGeneratorTorque.length > 0
|
|
|
+ ? this.form.iGeneratorTorque
|
|
|
+ : undefined, //非直驱发电机转矩轴系
|
|
|
+ cp: this.form.cp.length > 0 ? this.form.cp : undefined, //风能利用系数轴系
|
|
|
+ tsr: this.form.tsr.length > 0 ? this.form.tsr : undefined, //叶尖速比轴系
|
|
|
+ pitchAngle:
|
|
|
+ this.form.pitchAngle.length > 0 ? this.form.pitchAngle : undefined, //桨距角轴系
|
|
|
+ activePower:
|
|
|
+ this.form.activePower.length > 0
|
|
|
+ ? this.form.activePower
|
|
|
+ : undefined, //有功功率轴系
|
|
|
beginTime: this.picker[0], //开始时间
|
|
|
endTime: this.picker[1], //结束时间
|
|
|
});
|
|
@@ -649,11 +708,14 @@ export default {
|
|
|
type: "success",
|
|
|
message: "已分析请前往分析详情中查看结果",
|
|
|
});
|
|
|
+ this.loading = false;
|
|
|
} catch (error) {
|
|
|
console.error(error);
|
|
|
+ this.loading = false;
|
|
|
}
|
|
|
},
|
|
|
async getWindCodeList() {
|
|
|
+ this.loading = true;
|
|
|
try {
|
|
|
const response = await analysisEditQuery({
|
|
|
batchCode: this.$route.query.batchCode,
|
|
@@ -663,13 +725,14 @@ export default {
|
|
|
this.analysisTypeList = response.data.analysisTypeList;
|
|
|
this.windEngineGroupList = response.data.windEngineGroupList;
|
|
|
this.engineCode = response.data.windEngineGroupList[0];
|
|
|
- if(response.data.windEngineGroupList.length>0){
|
|
|
- //获取台账机组编号
|
|
|
- this.getWindEngList();
|
|
|
+ if (response.data.windEngineGroupList.length > 0) {
|
|
|
+ //获取台账机组编号
|
|
|
+ this.getWindEngList();
|
|
|
}
|
|
|
-
|
|
|
+ this.loading = false;
|
|
|
} catch (error) {
|
|
|
console.error(error);
|
|
|
+ this.loading = false;
|
|
|
this.$router.go(-1);
|
|
|
}
|
|
|
},
|