|
@@ -1,7 +1,7 @@
|
|
<!--
|
|
<!--
|
|
* @Author: your name
|
|
* @Author: your name
|
|
* @Date: 2024-05-27 09:25:45
|
|
* @Date: 2024-05-27 09:25:45
|
|
- * @LastEditTime: 2024-07-29 10:34:39
|
|
|
|
|
|
+ * @LastEditTime: 2024-08-05 09:52:56
|
|
* @LastEditors: bogon
|
|
* @LastEditors: bogon
|
|
* @Description: In User Settings Edit
|
|
* @Description: In User Settings Edit
|
|
* @FilePath: /performance-test/src/views/performance/assetssDetail.vue
|
|
* @FilePath: /performance-test/src/views/performance/assetssDetail.vue
|
|
@@ -15,7 +15,8 @@
|
|
style="font-size: 20px"
|
|
style="font-size: 20px"
|
|
icon="el-icon-arrow-left"
|
|
icon="el-icon-arrow-left"
|
|
@click="() => $router.push('/home/performance/assetssMag')"
|
|
@click="() => $router.push('/home/performance/assetssMag')"
|
|
- >返回
|
|
|
|
|
|
+ >
|
|
|
|
+ 返回
|
|
</el-button>
|
|
</el-button>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="8">
|
|
<el-col :span="8">
|
|
@@ -83,9 +84,9 @@
|
|
<div v-else>
|
|
<div v-else>
|
|
<el-card class="box-card analysisType" v-if="generalFiles.length > 0">
|
|
<el-card class="box-card analysisType" v-if="generalFiles.length > 0">
|
|
<div slot="header" class="clearfix">
|
|
<div slot="header" class="clearfix">
|
|
- <span style="font-weight: 700; font-size: 16px"
|
|
|
|
- >分析总图{{ fileCheckResult1 }}</span
|
|
|
|
- >
|
|
|
|
|
|
+ <span style="font-weight: 700; font-size: 16px">
|
|
|
|
+ 分析总图{{ fileCheckResult1 }}
|
|
|
|
+ </span>
|
|
</div>
|
|
</div>
|
|
<el-row class="assetssConent">
|
|
<el-row class="assetssConent">
|
|
<!-- :span="getSpan(index, 'generalFiles')" -->
|
|
<!-- :span="getSpan(index, 'generalFiles')" -->
|
|
@@ -111,37 +112,14 @@
|
|
width="100%"
|
|
width="100%"
|
|
height="100%"
|
|
height="100%"
|
|
></iframe>
|
|
></iframe>
|
|
- <!-- <img
|
|
|
|
- v-if="getFileType(file.fileAddr) === 'image'"
|
|
|
|
- alt="加载图片"
|
|
|
|
- @load="imageLoad(index)"
|
|
|
|
- @error="imageError(index)"
|
|
|
|
- v-lazy-load="{
|
|
|
|
- src: file.fileAddr,
|
|
|
|
- errorImageSrc: require('../../assets/img/loadingErrorFx.webp'),
|
|
|
|
- }"
|
|
|
|
- /> -->
|
|
|
|
- <!-- <el-skeleton
|
|
|
|
- v-if="loadings[index] && getFileType(file.fileAddr) === 'image'"
|
|
|
|
- animated
|
|
|
|
- style="width: 100%; height: 100%"
|
|
|
|
- class="gjp"
|
|
|
|
- >
|
|
|
|
- <template slot="template">
|
|
|
|
- <el-skeleton-item
|
|
|
|
- variant="image"
|
|
|
|
- style="width: 100%; height: 100%"
|
|
|
|
- />
|
|
|
|
- </template>
|
|
|
|
- </el-skeleton> -->
|
|
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
</el-card>
|
|
</el-card>
|
|
<el-card class="box-card analysisType" v-if="diagramRelations.length > 0">
|
|
<el-card class="box-card analysisType" v-if="diagramRelations.length > 0">
|
|
<div slot="header" class="clearfix">
|
|
<div slot="header" class="clearfix">
|
|
- <span style="font-weight: 700; font-size: 16px"
|
|
|
|
- >分析分图 {{ fileCheckResult1 }}</span
|
|
|
|
- >
|
|
|
|
|
|
+ <span style="font-weight: 700; font-size: 16px">
|
|
|
|
+ 分析分图 {{ fileCheckResult1 }}
|
|
|
|
+ </span>
|
|
</div>
|
|
</div>
|
|
<el-row class="assetssConent">
|
|
<el-row class="assetssConent">
|
|
<el-col
|
|
<el-col
|
|
@@ -162,32 +140,6 @@
|
|
height="100%"
|
|
height="100%"
|
|
@load="iframeLoad(index + diagramRelations.length)"
|
|
@load="iframeLoad(index + diagramRelations.length)"
|
|
></iframe>
|
|
></iframe>
|
|
- <!-- <img
|
|
|
|
- v-if="getFileType(file.fileAddr) === 'image'"
|
|
|
|
- alt="加载图片"
|
|
|
|
- @load="imageLoad(index + generalFiles.length)"
|
|
|
|
- @error="imageError(index + generalFiles.length)"
|
|
|
|
- v-lazy-load="{
|
|
|
|
- src: file.fileAddr,
|
|
|
|
- errorImageSrc: require('../../assets/img/loadingErrorFx.webp'),
|
|
|
|
- }"
|
|
|
|
- /> -->
|
|
|
|
- <!-- <el-skeleton
|
|
|
|
- v-if="
|
|
|
|
- loadings[index + generalFiles.length] &&
|
|
|
|
- getFileType(file.fileAddr) === 'image'
|
|
|
|
- "
|
|
|
|
- animated
|
|
|
|
- style="width: 100%; height: 100%"
|
|
|
|
- class="gjp"
|
|
|
|
- >
|
|
|
|
- <template slot="template">
|
|
|
|
- <el-skeleton-item
|
|
|
|
- variant="image"
|
|
|
|
- style="width: 100%; height: 100%"
|
|
|
|
- />
|
|
|
|
- </template>
|
|
|
|
- </el-skeleton> -->
|
|
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
</el-card>
|
|
</el-card>
|
|
@@ -213,8 +165,8 @@ import {
|
|
analysisDetail,
|
|
analysisDetail,
|
|
queryAnalysisedType,
|
|
queryAnalysisedType,
|
|
queryAnalysisedEngine,
|
|
queryAnalysisedEngine,
|
|
|
|
+ queryAnalysisTypeConfig,
|
|
} from "@/api/performance";
|
|
} from "@/api/performance";
|
|
-import axios from "axios";
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
@@ -242,8 +194,13 @@ export default {
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
// this.initializeLoading();
|
|
// this.initializeLoading();
|
|
|
|
+ this.chartsTypeConfig();
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ async chartsTypeConfig() {
|
|
|
|
+ const result = await queryAnalysisTypeConfig();
|
|
|
|
+ console.log(result.data, "result");
|
|
|
|
+ },
|
|
iframeLoad(index) {
|
|
iframeLoad(index) {
|
|
this.$set(this.loadings, index, false);
|
|
this.$set(this.loadings, index, false);
|
|
},
|
|
},
|
|
@@ -254,16 +211,6 @@ export default {
|
|
// 初始化 loadings 数组,全部设置为 true,表示加载状态
|
|
// 初始化 loadings 数组,全部设置为 true,表示加载状态
|
|
this.loadings = new Array(totalFiles).fill(true);
|
|
this.loadings = new Array(totalFiles).fill(true);
|
|
},
|
|
},
|
|
- async fileAddrFn(file) {
|
|
|
|
- try {
|
|
|
|
- const res = await axios.get(file);
|
|
|
|
- this.fileCheckResult = true;
|
|
|
|
- return true;
|
|
|
|
- } catch (e) {
|
|
|
|
- console.error(file, e, "失败1111");
|
|
|
|
- this.fileCheckResult = false;
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
// 查询
|
|
// 查询
|
|
onSubmit() {
|
|
onSubmit() {
|
|
this.getDetailInfo();
|
|
this.getDetailInfo();
|
|
@@ -288,16 +235,19 @@ export default {
|
|
} else {
|
|
} else {
|
|
this.flage = false;
|
|
this.flage = false;
|
|
}
|
|
}
|
|
|
|
+ this.generalFiles = [];
|
|
this.generalFiles =
|
|
this.generalFiles =
|
|
(response.data &&
|
|
(response.data &&
|
|
response.data.length > 0 &&
|
|
response.data.length > 0 &&
|
|
response.data[0].generalFiles) ||
|
|
response.data[0].generalFiles) ||
|
|
[];
|
|
[];
|
|
|
|
+ this.diagramRelations = [];
|
|
this.diagramRelations =
|
|
this.diagramRelations =
|
|
(response.data &&
|
|
(response.data &&
|
|
response.data.length > 0 &&
|
|
response.data.length > 0 &&
|
|
response.data[0].diagramRelations) ||
|
|
response.data[0].diagramRelations) ||
|
|
[];
|
|
[];
|
|
|
|
+ console.log(this.diagramRelations, "this.diagramRelations");
|
|
this.commentDescriptionVos =
|
|
this.commentDescriptionVos =
|
|
(response.data &&
|
|
(response.data &&
|
|
response.data.length > 0 &&
|
|
response.data.length > 0 &&
|