| | |
| | | > |
| | | <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%" |
| | | > |
| | |
| | | |
| | | <script> |
| | | import MyHeader from "./header/header1.vue"; |
| | | import realTimeApi from "@/api/smoke/realTime"; |
| | | import statisticsApi from "@/api/smoke/statistics"; |
| | | export default { |
| | | data() { |
| | | return { |
| | |
| | | }; |
| | | } |
| | | |
| | | 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)); |
| | | }, |