From 829f5116884f98643ffc5b2a548a600d40c0cedb Mon Sep 17 00:00:00 2001
From: zhanghua <314079846@qq.com>
Date: 星期一, 14 四月 2025 23:09:32 +0800
Subject: [PATCH] 处理图片显示问题
---
src/views/smoke/report/components/overallSituation.vue | 40 +++++++++++++++++-----------------------
1 files changed, 17 insertions(+), 23 deletions(-)
diff --git a/src/views/smoke/report/components/overallSituation.vue b/src/views/smoke/report/components/overallSituation.vue
index 29e084d..0644259 100644
--- a/src/views/smoke/report/components/overallSituation.vue
+++ b/src/views/smoke/report/components/overallSituation.vue
@@ -20,42 +20,42 @@
>
<el-table-column label="搴忓彿" type="index" width="50">
</el-table-column>
- <el-table-column prop="AcquitAtStr" label="閲囬泦鏃堕棿" width="auto" min-width="20%">
+ <el-table-column prop="AcquitDate" label="閲囬泦鏃堕棿" width="auto" min-width="20%">
</el-table-column>
- <el-table-column prop="Addr" label="璁惧鎬绘暟" width="auto" min-width="10%">
+ <el-table-column prop="Total" label="璁惧鎬绘暟" width="auto" min-width="10%">
</el-table-column>
<el-table-column
- prop="FanStatusStr"
+ prop="ComplianceCount"
label="杈炬爣鏁�"
width="auto" min-width="10%"
>
</el-table-column>
<el-table-column
- prop="杈炬爣姣斾緥"
- label="鍑�鍖栧櫒鐘舵��"
+ prop="CompliancePercent"
+ label="杈炬爣姣斾緥"
width="auto" min-width="10%"
>
</el-table-column>
<el-table-column
- prop="EmissionsConc"
+ prop="ExceedStandardCount"
label="瓒呮爣鏁�"
width="auto" min-width="10%"
>
</el-table-column>
<el-table-column
- prop="CEmissions"
+ prop="ExceedStandardPercent"
label="瓒呮爣姣斾緥"
width="auto" min-width="10%"
>
</el-table-column>
<el-table-column
- prop="GranuleConc"
+ prop="OnlineCount"
label="鍦ㄧ嚎鏁�"
width="auto" min-width="10%"
>
</el-table-column>
<el-table-column
- prop="CGranule"
+ prop="OnlinePercent"
label="鍦ㄧ嚎姣斾緥"
width="auto" min-width="10%"
>
@@ -82,7 +82,7 @@
<script>
import MyHeader from "./header/header1.vue";
-import realTimeApi from "@/api/smoke/realTime";
+import statisticsApi from "@/api/smoke/statistics";
export default {
data() {
return {
@@ -108,18 +108,13 @@
};
}
- realTimeApi
- .findInTimeList(params)
- .then(({ list, total }) => {
- list.forEach(e => {
- e.AcquitAtStr = this.dateFormat("YYYY-mm-dd HH:MM", new Date(e.AcquitAt*1000));
- e.FanStatusStr = this.FanStatusStr(e.FanStatus)
- e.FilterStatusStr = this.FanStatusStr(e.FilterStatus)
- e.OnlineStatusStr = this.OnlineStatusStr(e.OnlineStatus)
- e.StatusStr = this.StatusStr(e.Status)
- });
- this.tableData = list;
- this.totalNum = total;
+ statisticsApi
+ .findDataDetectorDailyStats(params)
+ .then((json) => {
+ let res = JSON.parse(json)
+
+ this.tableData = res.sumGroupByDates;
+ this.totalNum = res.sumGroupByDates.lengtn;
})
.catch((err) => this.$message.error(err));
},
@@ -131,7 +126,6 @@
realTimeApi
.exportInTime(params)
.then((res) => {
- debugger
let time = new Date();
let deathdate = time.toLocaleDateString();
const blob = new Blob([res.data], {
--
Gitblit v1.8.0