|
@@ -499,9 +499,12 @@
|
|
|
style="width: 100%; height: 400px"
|
|
|
></div> -->
|
|
|
<ImagePreview
|
|
|
+ class="image-preview"
|
|
|
v-if="['4', '5'].includes(fileType)"
|
|
|
:src="imgPreviewUrl"
|
|
|
></ImagePreview>
|
|
|
+
|
|
|
+ <div class="remark">指标结果:{{ agloRemark }}</div>
|
|
|
</el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -561,6 +564,7 @@ export default {
|
|
|
resultChartData: {},
|
|
|
nowRow: {},
|
|
|
nowTypeNum: null,
|
|
|
+ agloRemark: "",
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
@@ -670,6 +674,7 @@ export default {
|
|
|
this.loading = true;
|
|
|
if (typeNum === 5 || typeNum === 6) {
|
|
|
getData(row.resultDataId).then((res) => {
|
|
|
+ this.agloRemark = res.data.remark;
|
|
|
this.imgPreviewUrl = res.data.imagePath;
|
|
|
this.loading = false;
|
|
|
this.fileShowVisible = true;
|
|
@@ -699,6 +704,7 @@ export default {
|
|
|
getData(row.resultDataId)
|
|
|
.then((resultRes) => {
|
|
|
const resData = resultRes.data;
|
|
|
+ this.agloRemark = resData.remark;
|
|
|
const url = process.env.VUE_APP_BASE_API + resData.dataPath;
|
|
|
this.fetchLogFile(url).then((text) => {
|
|
|
let data, content, head;
|
|
@@ -721,32 +727,32 @@ export default {
|
|
|
case "0":
|
|
|
this.fileShowVisible = true;
|
|
|
this.handleResultChartOption(content, head, true);
|
|
|
- this.loading = false;
|
|
|
+ // this.loading = false;
|
|
|
break;
|
|
|
case "1":
|
|
|
this.fileShowVisible = true;
|
|
|
this.handleResultChartOption(content, head, false);
|
|
|
- this.loading = false;
|
|
|
+ // this.loading = false;
|
|
|
break;
|
|
|
case "2":
|
|
|
this.fileShowVisible = true;
|
|
|
this.$nextTick(() => {
|
|
|
this.handleResultChartOption(content, head, false);
|
|
|
- this.loading = false;
|
|
|
+ // this.loading = false;
|
|
|
});
|
|
|
break;
|
|
|
case "3":
|
|
|
this.fileShowVisible = true;
|
|
|
this.$nextTick(() => {
|
|
|
this.handleResultChartOption(content, head, false);
|
|
|
- this.loading = false;
|
|
|
+ // this.loading = false;
|
|
|
});
|
|
|
break;
|
|
|
case "4":
|
|
|
this.fileShowVisible = true;
|
|
|
this.$nextTick(() => {
|
|
|
this.handleResultChartOption(content, head, false);
|
|
|
- this.loading = false;
|
|
|
+ // this.loading = false;
|
|
|
});
|
|
|
break;
|
|
|
case "5":
|
|
@@ -903,6 +909,7 @@ export default {
|
|
|
}
|
|
|
this.resultChartData.seriesData = series;
|
|
|
this.resultChartData.xAxisData = content[0].map((_, index) => index);
|
|
|
+ this.loading = false;
|
|
|
},
|
|
|
// 切换表格/曲线展示
|
|
|
changeShow() {
|
|
@@ -945,7 +952,7 @@ export default {
|
|
|
<style scoped lang="scss">
|
|
|
.home {
|
|
|
width: 100%;
|
|
|
- min-height: calc(100vh - 84px);
|
|
|
+ min-height: calc(100vh - 134px);
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
|
|
@@ -1175,4 +1182,15 @@ export default {
|
|
|
background-color: #1e262f;
|
|
|
color: white;
|
|
|
}
|
|
|
+.remark {
|
|
|
+ margin-top: 20px;
|
|
|
+ font-size: 1.2rem;
|
|
|
+ color: #fff;
|
|
|
+ margin-left: 10%;
|
|
|
+}
|
|
|
+
|
|
|
+.image-preview {
|
|
|
+ margin-left: 50%;
|
|
|
+ transform: translate(-50%, 0);
|
|
|
+}
|
|
|
</style>
|