From 41cbf92f64edcac7489fc108dadeb405ba1bad04 Mon Sep 17 00:00:00 2001
From: chenyc <501753378@qq.com>
Date: 星期二, 26 八月 2025 17:27:26 +0800
Subject: [PATCH] 排班颜色

---
 src/views/paiban/index.vue |   16 ++++------------
 1 files changed, 4 insertions(+), 12 deletions(-)

diff --git a/src/views/paiban/index.vue b/src/views/paiban/index.vue
index 9a8ef92..43384fd 100644
--- a/src/views/paiban/index.vue
+++ b/src/views/paiban/index.vue
@@ -8,7 +8,6 @@
         />
         <div>
             <van-calendar
-                color="#769AFF"
                 :min-date="minDate"
                 @month-show="monthShow"
                 :poppable="false"
@@ -124,8 +123,9 @@
         const index= selectDate.value.findIndex(el=>{return el.y===year&&el.m===month&&el.d===date})
         if (index>0){
             console.log(day)
-            day.type='start'
             if (selectDate.value[index].透析单状态){
+                day.type='start'
+            } else {
                 day.type='end'
             }
             day.text=selectDate.value[index].type
@@ -138,7 +138,9 @@
             else {
                 day.bottomInfo='晚上'
             }
+            console.log(day,'有排班' )
         }
+
         return day
     }
     onMounted(()=>{
@@ -232,14 +234,4 @@
     }
 }
 
-.fanhui {
-    // padding-top: 20px;
-    width: 100%;
-    background: #4696f9;
-    text-align: center;
-    border-radius: 5px;
-    color: #fff;
-    height: 36px;
-    line-height: 36px;
-}
 </style>
\ No newline at end of file

--
Gitblit v1.8.0