|
|
@@ -34,7 +34,7 @@
|
|
34
|
34
|
<!-- 科室数据卡片 -->
|
|
35
|
35
|
<div class="dept-cards">
|
|
36
|
36
|
<template v-if="attendanceData && attendanceData.length > 0">
|
|
37
|
|
- <div v-for="(item, index) in attendanceData.slice(0, 3)" :key="index" class="dept-card">
|
|
|
37
|
+ <div v-for="(item, index) in attendanceData.slice(0, 4)" :key="index" class="dept-card">
|
|
38
|
38
|
<div class="dept-name">{{ item.deptName || '未知科室' }}</div>
|
|
39
|
39
|
<div class="dept-count"><span>{{ item.currentValue || 0 }}</span>人次</div>
|
|
40
|
40
|
<div class="dept-trend">
|
|
|
@@ -708,7 +708,7 @@ const updateTrendBarChart = () => {
|
|
708
|
708
|
const updateAttendanceBarChart = () => {
|
|
709
|
709
|
if (trendData.value && Array.isArray(trendData.value)) {
|
|
710
|
710
|
const trendList = trendData.value
|
|
711
|
|
- debugger
|
|
|
711
|
+
|
|
712
|
712
|
// 提取横坐标数据(timeLabel字段)
|
|
713
|
713
|
const xAxisData = trendList.map(item => item.timeLabel || '未知时间')
|
|
714
|
714
|
|