|
@@ -1,7 +1,7 @@
|
|
|
<!--
|
|
|
* @Author: your name
|
|
|
* @Date: 2024-05-29 09:14:23
|
|
|
- * @LastEditTime: 2024-12-31 14:29:58
|
|
|
+ * @LastEditTime: 2025-01-03 12:15:53
|
|
|
* @LastEditors: bogon
|
|
|
* @Description: In User Settings Edit
|
|
|
* @FilePath: /performance-test/src/views/performance/components/EditAnalysis.vue
|
|
@@ -347,6 +347,21 @@
|
|
|
height="100%"
|
|
|
></iframe>
|
|
|
</el-col>
|
|
|
+ <el-col
|
|
|
+ :key="index + file.fileAddr + file.createTime + 'png'"
|
|
|
+ :span="24"
|
|
|
+ class="col_content"
|
|
|
+ :style="{
|
|
|
+ display:
|
|
|
+ getFileType(file.fileAddr) === 'image' ? 'block' : 'none',
|
|
|
+ }"
|
|
|
+ >
|
|
|
+ <img
|
|
|
+ :src="file.fileAddr"
|
|
|
+ alt=""
|
|
|
+ style="width: 100%; height: 590px"
|
|
|
+ />
|
|
|
+ </el-col>
|
|
|
</template>
|
|
|
</template>
|
|
|
</template>
|
|
@@ -479,6 +494,21 @@
|
|
|
@load="iframeLoad(index + diagramRelations.length)"
|
|
|
></iframe>
|
|
|
</el-col>
|
|
|
+ <el-col
|
|
|
+ :key="index + file.fileAddr + file.createTime + 'png'"
|
|
|
+ :span="24"
|
|
|
+ class="col_content"
|
|
|
+ :style="{
|
|
|
+ display:
|
|
|
+ getFileType(file.fileAddr) === 'image' ? 'block' : 'none',
|
|
|
+ }"
|
|
|
+ >
|
|
|
+ <img
|
|
|
+ :src="file.fileAddr"
|
|
|
+ alt=""
|
|
|
+ style="width: 100%; height: 590px"
|
|
|
+ />
|
|
|
+ </el-col>
|
|
|
</template>
|
|
|
</template>
|
|
|
</template>
|
|
@@ -741,11 +771,17 @@ export default {
|
|
|
? this.editableTabs[0].commentTypeCode
|
|
|
: "";
|
|
|
}
|
|
|
- const fileUrl = response.data[0].generalFiles[0].fileAddr;
|
|
|
- if (this.form.configAnalysis === "yaw_error") {
|
|
|
- this.fetchCsvData("yaw_error", fileUrl);
|
|
|
- } else if (this.form.configAnalysis === "production_indicator") {
|
|
|
- this.fetchCsvData("production_indicator", fileUrl);
|
|
|
+ if (
|
|
|
+ response.data[0] &&
|
|
|
+ response.data[0]?.generalFiles &&
|
|
|
+ response.data[0]?.generalFiles[0]?.fileAddr
|
|
|
+ ) {
|
|
|
+ const fileUrl = response.data[0].generalFiles[0].fileAddr;
|
|
|
+ if (this.form.configAnalysis === "yaw_error") {
|
|
|
+ this.fetchCsvData("yaw_error", fileUrl);
|
|
|
+ } else if (this.form.configAnalysis === "production_indicator") {
|
|
|
+ this.fetchCsvData("production_indicator", fileUrl);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
//有功功率的数据处理
|