Selaa lähdekoodia

fix: 调整科室卡片显示数量并移除调试代码

- 将科室卡片显示数量从3个增加到4个
- 移除updateAttendanceBarChart函数中的debugger语句
huoyi 3 viikkoa sitten
vanhempi
commit
2b20f61473
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      src/views/assistant/components/dutyOrganization.vue

+ 2 - 2
src/views/assistant/components/dutyOrganization.vue

@@ -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