修改菜单+权限+图表渲染

This commit is contained in:
ym1026
2025-09-11 19:01:01 +08:00
parent 45ff73c295
commit 506c2e98f2
26 changed files with 1069 additions and 527 deletions

View File

@@ -48,7 +48,7 @@ import Alarm from '@/components/Home/Alarm.vue'
import Map from '@/components/Home/Map.vue'
import { getReq, postReq } from '@/request/api'
import { getRunDays, getDateDaysAgo } from '@/utils/dealWithData'
import { markRaw } from 'vue';
export default {
name: 'Home',
components: { Map },
@@ -62,38 +62,38 @@ export default {
{
title: '运行状况',
class: 'online-status',
componentId: onLine,
componentId:markRaw(onLine),
infoKey: 'onLineTotal'
},
{
title: '运行分析',
class: 'stats-cards',
componentId: Operational,
componentId:markRaw( Operational),
infoKey: ''
},
{
title: '储能设备',
class: 'energy-status',
componentId: Energy,
componentId:markRaw( Energy),
infoKey: 'energy'
},
{
title: '充电设备',
class: 'charge-analysis',
componentId: Charge,
componentId:markRaw( Charge),
infoKey: 'charge'
},
{
title: '光伏设备',
class: 'work-order',
componentId: Pv,
componentId:markRaw( Pv),
infoKey: 'pv'
},
{
title: '告警信息',
class: 'alarm-stats',
componentId: Alarm,
componentId: markRaw(Alarm),
infoKey: 'alarm'
}
],