Commit 33be408d by peijy

pyj 7.18 个人工作-录播室预约-空闲情况 鼠标样式修改

parent 2ac67099
......@@ -34,14 +34,17 @@
<table style="margin-left: 30px">
<thead>
<tr>
<!-- 表头 -->
<!-- 表头首列 -->
<th></th>
<!-- 表格表头日期-->
<th style="background:none;font-size:16px;font-weight:normal" v-for="day in days" :key="day">{{ day }}</th>
</tr>
</thead>
<tbody>
<!--tr 行 -->
<tr v-for="(timeSlot, index) in timeSlots" :key="index">
<!-- td 列 -->
<!-- 第一列 -->
<td>{{ timeSlot }}</td>
<!-- <td v-for="(day, dayIndex) in days" :key="dayIndex" :class="{-->
<!-- occupied: isOccupied(day, index),-->
......@@ -50,7 +53,8 @@
<!-- @mouseenter="handleMouseEnter(day, index)" @click="handleCellClick(day, index)">-->
<!-- {{ isOccupied(day, index) ? "占用" : "" }}-->
<!-- </td>-->
<td v-for="(day, dayIndex) in days" :key="dayIndex" :class="{
<!-- 第二列往后循环 -->
<td style="cursor: pointer" v-for="(day, dayIndex) in days" :key="dayIndex" :class="{
occupied: isOccupied(day, index),
selected: isSelected(day, index),
}" @click="handleCellClick(day, index)">
......@@ -162,7 +166,6 @@ export default {
},
//表格点击选中
isSelected(day, index) {
if (this.isOccupied(day, index)) {
return false
} else {
......@@ -464,10 +467,12 @@ th {
.occupied {
background-color: #ccc;
color: #000;
cursor: not-allowed;
cursor: not-allowed !important;
}
.selected {
background-color: #66b3ff;
}
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment