This commit is contained in:
wangxiaoxian 2026-03-08 19:16:20 +08:00
parent 06a49a3ad9
commit 4e5b399038
2 changed files with 6 additions and 1 deletions

View File

@ -6,7 +6,7 @@
<span>房屋详情</span> <span>房屋详情</span>
<div class="action-buttons"> <div class="action-buttons">
<el-button v-if="room.status === 'empty' || room.status === 'reserved'" type="primary" size="small" @click="handleRent">租房</el-button> <el-button v-if="room.status === 'empty' || room.status === 'reserved'" type="primary" size="small" @click="handleRent">租房</el-button>
<el-button v-if="room.status === 'empty'" type="info" size="small" @click="handleReserve">预订</el-button> <el-button v-if="room.status === 'empty'" type="warning" size="small" @click="handleReserve">预订</el-button>
<el-button v-if="room.status === 'reserved'" type="warning" size="small" @click="handleCancelReserve">取消预订</el-button> <el-button v-if="room.status === 'reserved'" type="warning" size="small" @click="handleCancelReserve">取消预订</el-button>
<el-button v-if="room.status === 'rented'" type="warning" size="small" @click="handleCheckout">退房</el-button> <el-button v-if="room.status === 'rented'" type="warning" size="small" @click="handleCheckout">退房</el-button>
<el-button v-if="!room.otherStatus || room.otherStatus === ''" type="info" size="small" @click="handleCleaning">打扫</el-button> <el-button v-if="!room.otherStatus || room.otherStatus === ''" type="info" size="small" @click="handleCleaning">打扫</el-button>

View File

@ -424,6 +424,11 @@ export default {
/* 状态样式 */ /* 状态样式 */
.status-empty { .status-empty {
border-color: #dcdfe6;
background-color: #ffffff;
}
.status-reserved {
border-color: #dcdfe6; border-color: #dcdfe6;
background-color: #f5f7fa; background-color: #f5f7fa;
} }