|
@@ -48,8 +48,52 @@
|
|
|
</div>
|
|
|
|
|
|
<div class="data-line">
|
|
|
- <AlarmHistoryCard></AlarmHistoryCard>
|
|
|
- <FallingHistoryCard></FallingHistoryCard>
|
|
|
+ <!-- <AlarmHistoryCard></AlarmHistoryCard>
|
|
|
+ <FallingHistoryCard></FallingHistoryCard> -->
|
|
|
+
|
|
|
+ <HistoryChartCard
|
|
|
+ title="历史告警统计"
|
|
|
+ :dayStatInfo="[
|
|
|
+ { date: '2024-07-01', fallingCount: 5 },
|
|
|
+ { date: '2024-07-02', fallingCount: 8 },
|
|
|
+ { date: '2024-07-03', fallingCount: 6 },
|
|
|
+ { date: '2024-07-04', fallingCount: 10 },
|
|
|
+ { date: '2024-07-05', fallingCount: 7 },
|
|
|
+ ]"
|
|
|
+ :monthStatInfo="[
|
|
|
+ { month: '2024-06', fallingCount: 32 },
|
|
|
+ { month: '2024-07', fallingCount: 41 },
|
|
|
+ { month: '2024-08', fallingCount: 45 },
|
|
|
+ { month: '2024-09', fallingCount: 30 },
|
|
|
+ { month: '2024-10', fallingCount: 60 },
|
|
|
+ { month: '2024-11', fallingCount: 35 },
|
|
|
+ { month: '2024-12', fallingCount: 50 },
|
|
|
+ ]"
|
|
|
+ color="#f39c12"
|
|
|
+ seriesName="告警次数"
|
|
|
+ />
|
|
|
+
|
|
|
+ <HistoryChartCard
|
|
|
+ title="历史跌倒统计"
|
|
|
+ :dayStatInfo="[
|
|
|
+ { date: '2024-07-01', fallingCount: 5 },
|
|
|
+ { date: '2024-07-02', fallingCount: 8 },
|
|
|
+ { date: '2024-07-03', fallingCount: 6 },
|
|
|
+ { date: '2024-07-04', fallingCount: 10 },
|
|
|
+ { date: '2024-07-05', fallingCount: 7 },
|
|
|
+ ]"
|
|
|
+ :monthStatInfo="[
|
|
|
+ { month: '2024-06', fallingCount: 32 },
|
|
|
+ { month: '2024-07', fallingCount: 41 },
|
|
|
+ { month: '2024-08', fallingCount: 60 },
|
|
|
+ { month: '2024-09', fallingCount: 30 },
|
|
|
+ { month: '2024-10', fallingCount: 35 },
|
|
|
+ { month: '2024-11', fallingCount: 45 },
|
|
|
+ { month: '2024-12', fallingCount: 70 },
|
|
|
+ ]"
|
|
|
+ color="#e74c3c"
|
|
|
+ seriesName="跌倒次数"
|
|
|
+ />
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -66,8 +110,9 @@ import PeopleDetectedCard from './components/PeopleDetectedCard/index.vue'
|
|
|
import DeviceLocationCard from './components/DeviceLocationCard/index.vue'
|
|
|
import DeviceAgeCard from './components/DeviceAgeCard/index.vue'
|
|
|
import ObjectDistributionCard from './components/ObjectDistributionCard/index.vue'
|
|
|
-import AlarmHistoryCard from './components/AlarmHistoryCard/index.vue'
|
|
|
-import FallingHistoryCard from './components/FallingHistoryCard/index.vue'
|
|
|
+// import AlarmHistoryCard from './components/AlarmHistoryCard/index.vue'
|
|
|
+// import FallingHistoryCard from './components/FallingHistoryCard/index.vue'
|
|
|
+import HistoryChartCard from './components/HistoryChartCard/index.vue'
|
|
|
import { useUserStore } from '@/stores/user'
|
|
|
import type { TodayData } from './types'
|
|
|
import { ZoomInOutlined, ZoomOutOutlined, RedoOutlined } from '@ant-design/icons-vue'
|