From ef944e895392cf57004b2e8dbad76a159ab0cd4b Mon Sep 17 00:00:00 2001
From: chenyc <501753378@qq.com>
Date: 星期二, 26 八月 2025 17:47:01 +0800
Subject: [PATCH] 45
---
src/views/paiban/index.vue | 30 +++++++++++++++++++-----------
1 files changed, 19 insertions(+), 11 deletions(-)
diff --git a/src/views/paiban/index.vue b/src/views/paiban/index.vue
index 0134563..8fd725e 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"
@@ -100,7 +99,8 @@
timeSlot:element.timeSlot,
code:element.code,
scheduleDay:element.scheduleDay,
- id:element.id
+ id:element.id,
+ 透析单状态:element.透析单状态,
})
}
@@ -123,7 +123,11 @@
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
if (selectDate.value[index].timeSlot===0){
day.bottomInfo='上午'
@@ -134,7 +138,9 @@
else {
day.bottomInfo='晚上'
}
+ console.log(day,'有排班' )
}
+
return day
}
onMounted(()=>{
@@ -228,14 +234,16 @@
}
}
-.fanhui {
- // padding-top: 20px;
- width: 100%;
+/* eslint-disable selector-class-pattern */
+
+/* eslint-disable selector-pseudo-element-no-unknown */
+
+/* eslint-disable color-named */
+/* stylelint-disable selector-pseudo-class-no-unknown */
+
+:deep(.van-calendar__day--end) {
+ border-radius: 0 var(--van-border-radius-md) var(--van-border-radius-md) 0;
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