zhangwencui
2026-01-16 41c9d91da0c73303ea6f8eae03f030ce28b6cd1d
src/pages/managementMeetings/meetingList/index.vue
@@ -176,23 +176,28 @@
    handleSearch();
  };
  // 初始化时间槽(以半小时为间隔,从8:00到18:00)
  // 初始化时间槽(以半小时为间隔,从8:00到17:30)
  const initTimeSlots = () => {
    const slots = [];
    for (let hour = 8; hour < 18; hour++) {
      // 每个小时添加两个时间段:整点和半点
    // 生成8:00到17:00的时间段
    for (let hour = 8; hour <= 17; hour++) {
      // 添加整点
      slots.push({
        label: `${hour.toString().padStart(2, "0")}:00`,
        value: `${hour.toString().padStart(2, "0")}:00`,
      });
      if (hour < 17) {
        // 到17:30为止
      // 添加半点,直到17:30
      if (hour <= 17) {
        slots.push({
          label: `${hour.toString().padStart(2, "0")}:30`,
          value: `${hour.toString().padStart(2, "0")}:30`,
        });
      }
    }
    // 移除最后一个18:00的时间段
    if (slots.length > 0 && slots[slots.length - 1].value === "18:00") {
      slots.pop();
    }
    timeSlots.value = slots;
    console.log(timeSlots.value, "timeSlots.value");
@@ -266,7 +271,7 @@
        timeSlots.value.findIndex(s => s.value === timeB)
      );
    });
    console.log(cells, "cells");
    return cells;
  };
@@ -427,8 +432,11 @@
    min-height: 120rpx;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 16rpx;
    box-sizing: border-box;
  }
  .content-cell:active {