|
@@ -1,12 +1,12 @@
|
|
|
<!--
|
|
|
* @Author: your name
|
|
|
* @Date: 2025-01-10 09:09:17
|
|
|
- * @LastEditTime: 2025-01-20 15:45:41
|
|
|
+ * @LastEditTime: 2025-01-20 16:33:59
|
|
|
* @LastEditors: bogon
|
|
|
* @Description: In User Settings Edit
|
|
|
* @FilePath: /performance-test/src/views/overview/components/speed_power/index.vue
|
|
|
-->
|
|
|
-
|
|
|
+<!-- -->
|
|
|
<template>
|
|
|
<div class="type-variable">
|
|
|
<!-- 发电机转速和有功功率分析 -->
|
|
@@ -31,7 +31,17 @@
|
|
|
在风力发电机组中,转速-功率散点图展示了风机发电机转速与风机产生的功率之间的关系。这种散点图能够揭示在不同转速速和操作条件下,发电机转速调整是如何影响风机的功率和转矩输出的。
|
|
|
</div>
|
|
|
</el-alert>
|
|
|
- <div class="titleCharts">分析总图 :</div>
|
|
|
+ <!-- <div class="titleCharts">分析总图 :</div> -->
|
|
|
+ <!-- <div v-for="(item, index) in generalFilesDatas">
|
|
|
+ <DDrawingChart
|
|
|
+ :key="item.batchCode + index"
|
|
|
+ :index="index + 'zong'"
|
|
|
+ :ref="item.batchCode + index"
|
|
|
+ :fileAddr="item.fileAddr"
|
|
|
+ >
|
|
|
+ </DDrawingChart>
|
|
|
+ </div> -->
|
|
|
+
|
|
|
<VirtualList
|
|
|
:list="generalFilesDatas"
|
|
|
keyField="batchCode"
|
|
@@ -47,16 +57,16 @@
|
|
|
</DDrawingChart>
|
|
|
</VirtualList>
|
|
|
|
|
|
- <div class="titleCharts">分析分图 :</div>
|
|
|
+ <!-- <div class="titleCharts">分析分图 :</div> -->
|
|
|
|
|
|
<VirtualList
|
|
|
- :list="diagramRelationsDatas"
|
|
|
+ :list="diagramRelationsDatas2D"
|
|
|
keyField="fieldEngineCode"
|
|
|
:itemSize="452"
|
|
|
v-slot="{ item, index }"
|
|
|
>
|
|
|
<TwoDMarkersChart
|
|
|
- :index="index"
|
|
|
+ :index="index + 'TwoDMarkersChart'"
|
|
|
:key="item.fieldEngineCode + 'TwoDMarkersChart'"
|
|
|
:ref="item.fieldEngineCode"
|
|
|
:fileAddr="item.fileAddr"
|
|
@@ -64,7 +74,7 @@
|
|
|
</TwoDMarkersChart>
|
|
|
</VirtualList>
|
|
|
<VirtualList
|
|
|
- :list="diagramRelationsDatas"
|
|
|
+ :list="diagramRelationsDatas3D"
|
|
|
keyField="fieldEngineCode"
|
|
|
:itemSize="452"
|
|
|
v-slot="{ item, index }"
|
|
@@ -153,6 +163,8 @@ export default {
|
|
|
requestRecord: [],
|
|
|
commentDescriptionVos: [], //评论列表
|
|
|
editableTabs: [],
|
|
|
+ diagramRelationsDatas2D: [],
|
|
|
+ diagramRelationsDatas3D: [],
|
|
|
};
|
|
|
},
|
|
|
watch: {
|
|
@@ -273,6 +285,19 @@ export default {
|
|
|
result.data[0].generalFiles.filter((item) =>
|
|
|
item.fileAddr.endsWith(".json")
|
|
|
); //总图数据
|
|
|
+ console.log(this.generalFilesDatas, "总图数据");
|
|
|
+
|
|
|
+ if (result.data && result.data[0] && result.data[0].diagramRelations) {
|
|
|
+ const diagramRelationsDatas = result.data[0].diagramRelations.filter(
|
|
|
+ (item) => item.fileAddr.endsWith(".json")
|
|
|
+ );
|
|
|
+ this.diagramRelationsDatas2D = diagramRelationsDatas.filter(
|
|
|
+ (item) => this.getFileTypeFromUrl(item.fileAddr) === "speed_torque"
|
|
|
+ );
|
|
|
+ this.diagramRelationsDatas3D = diagramRelationsDatas.filter(
|
|
|
+ (item) => this.getFileTypeFromUrl(item.fileAddr) === "3D"
|
|
|
+ );
|
|
|
+ }
|
|
|
this.diagramRelationsDatas =
|
|
|
result.data &&
|
|
|
result.data[0] &&
|
|
@@ -283,7 +308,16 @@ export default {
|
|
|
console.error("Failed to fetch analysis details:", err);
|
|
|
}
|
|
|
},
|
|
|
-
|
|
|
+ getFileTypeFromUrl(url) {
|
|
|
+ // 判断文件名或路径是否包含关键字
|
|
|
+ if (url.includes("3D")) {
|
|
|
+ return "3D"; // 如果 URL 中包含 "3D" 字符串,判断为 3D 类型
|
|
|
+ } else if (url.includes("speed_torque")) {
|
|
|
+ return "speed_torque"; // 如果 URL 中包含 "speed_torque" 字符串,判断为 speed_torque 类型
|
|
|
+ } else {
|
|
|
+ return "Unknown"; // 如果都不包含,返回 Unknown 或其他提示
|
|
|
+ }
|
|
|
+ },
|
|
|
// 请求风机列表
|
|
|
async getWindEnfineList(batchCode, analysisTypeCode) {
|
|
|
// console.log("请求风机列表 分钟级");
|