优化0918

This commit is contained in:
白菜
2025-09-25 17:30:16 +08:00
parent 0e7b54291f
commit a0ea6041cc
7 changed files with 121 additions and 87 deletions

View File

@ -75,10 +75,11 @@ import ActiveChart from "./ActiveChart.vue";
import AlarmTable from "./AlarmTable.vue";
import ClInfo from "./ClInfo.vue";
import getQuerySiteId from "@/mixins/ems/getQuerySiteId";
import intervalUpdate from "@/mixins/ems/intervalUpdate";
export default {
name: "DzjkSbjkHome",
components: { WeekChart, ActiveChart, AlarmTable, ClInfo },
mixins: [getQuerySiteId],
mixins: [getQuerySiteId,intervalUpdate],
data() {
return {
loading: false,
@ -153,6 +154,8 @@ export default {
Promise.all([this.getBaseInfo(), this.getRunningInfo()]).finally(() => {
this.loading = false;
});
// 一分钟循环一次总累计运行数据
this.updateInterval(this.getRunningInfo)
},
},
};