| | |
| | | left-arrow |
| | | @click="fanhui" |
| | | /> |
| | | <div> |
| | | <div style="padding: 10px;"> |
| | | <van-calendar |
| | | color="#769AFF" |
| | | :min-date="minDate" |
| | | @month-show="monthShow" |
| | | :poppable="false" |
| | |
| | | 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='end' |
| | | } else { |
| | | day.type='start' |
| | | } |
| | | day.text=selectDate.value[index].type |
| | | if (selectDate.value[index].timeSlot===0){ |
| | |
| | | else { |
| | | day.bottomInfo='晚上' |
| | | } |
| | | console.log(day,'有排班' ) |
| | | } |
| | | |
| | | return day |
| | | } |
| | | onMounted(()=>{ |
| | |
| | | } |
| | | |
| | | .listdiv { |
| | | margin-top: 20px; |
| | | // margin-top: 20px; |
| | | |
| | | .listrow { |
| | | margin-top: 10px; |
| | |
| | | } |
| | | } |
| | | |
| | | .fanhui { |
| | | // padding-top: 20px; |
| | | width: 100%; |
| | | background: #4696f9; |
| | | text-align: center; |
| | | border-radius: 5px; |
| | | color: #fff; |
| | | height: 36px; |
| | | line-height: 36px; |
| | | /* 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) { |
| | | background: #46a8f9; |
| | | border-radius: 10px; |
| | | font-size: 12px; |
| | | } |
| | | |
| | | :deep(.van-calendar__day--start) { |
| | | background: #f98546; |
| | | border-radius: 10px; |
| | | font-size: 12px; |
| | | } |
| | | |
| | | </style> |