|
|
@@ -116,28 +116,27 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="home-body">
|
|
|
- <div class="room-floor">
|
|
|
- <div class="floor">
|
|
|
+ <div class="room-floor wrapper">
|
|
|
+ <div class="floor" v-for="i in 5" :key="i">
|
|
|
<div class="header-title">
|
|
|
<div class="tier">2层</div>
|
|
|
<span>/ 共10间</span>
|
|
|
</div>
|
|
|
<div class="main-floor">
|
|
|
- <div class="room-num" v-for="i in 8" :key="i">
|
|
|
+ <div class="room-num" v-for="i in 12" :key="i">
|
|
|
<el-popover
|
|
|
- width="70"
|
|
|
placement="right"
|
|
|
trigger="click"
|
|
|
popper-class="popperOptions"
|
|
|
>
|
|
|
<div class="control-room">
|
|
|
- <div>关灯</div>
|
|
|
- <div>关灯</div>
|
|
|
- <div>关灯</div>
|
|
|
- <div>关灯</div>
|
|
|
- <div>关灯</div>
|
|
|
- <div>关灯</div>
|
|
|
- <div>关灯</div>
|
|
|
+ <div>关房</div>
|
|
|
+ <div>转脏房</div>
|
|
|
+ <div>转空闲</div>
|
|
|
+ <div>关水</div>
|
|
|
+ <div>关电</div>
|
|
|
+ <div>清扫</div>
|
|
|
+ <div>取消</div>
|
|
|
</div>
|
|
|
<div class="card" slot="reference">
|
|
|
<div class="title">
|
|
|
@@ -151,8 +150,38 @@
|
|
|
</div>
|
|
|
<div class="count-down">
|
|
|
<span>退房倒计时:00:13:26</span>
|
|
|
- <div class="tuifang">
|
|
|
+ <div class="tuifang" @click.stop="doorLock = true">
|
|
|
<IconSvg :W="21" :H="21" name="tuifang" />
|
|
|
+ <el-dialog
|
|
|
+ title="门锁管理"
|
|
|
+ :visible.sync="doorLock"
|
|
|
+ width="30%"
|
|
|
+ :before-close="lockClose"
|
|
|
+ >
|
|
|
+ <div class="text" style="margin-top: 13px">
|
|
|
+ <span>门锁ID:123456789</span>
|
|
|
+ <IconSvg :W="16" :H="16" name="edit" />
|
|
|
+ </div>
|
|
|
+ <div class="text">
|
|
|
+ <span>门锁序列号:123456789</span>
|
|
|
+ <IconSvg :W="16" :H="16" name="edit" />
|
|
|
+ </div>
|
|
|
+ <div class="text">
|
|
|
+ <span>门锁密码:123456789</span>
|
|
|
+
|
|
|
+ <span class="password" @click="sending"
|
|
|
+ >下发密码</span
|
|
|
+ >
|
|
|
+ </div>
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click.stop="doorLock = false" size="mini"
|
|
|
+ >取消</el-button
|
|
|
+ >
|
|
|
+ <el-button size="mini" @click.stop="doorLock = false"
|
|
|
+ >完成</el-button
|
|
|
+ >
|
|
|
+ </span>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -223,6 +252,8 @@ export default {
|
|
|
name: "Home",
|
|
|
data() {
|
|
|
return {
|
|
|
+ // 门锁管理
|
|
|
+ doorLock: false,
|
|
|
// 批量数据
|
|
|
dialogVisible: false,
|
|
|
count: 20,
|
|
|
@@ -407,8 +438,20 @@ export default {
|
|
|
this.checkAll = false;
|
|
|
},
|
|
|
|
|
|
- handleCommand(command) {
|
|
|
- this.$message("click on item " + command);
|
|
|
+ //门锁管理
|
|
|
+ lockClose(done) {
|
|
|
+ this.$confirm("确认关闭?")
|
|
|
+ .then((_) => {
|
|
|
+ done();
|
|
|
+ })
|
|
|
+ .catch((_) => {});
|
|
|
+ },
|
|
|
+ sending(done) {
|
|
|
+ this.$confirm("确认下发密码吗?")
|
|
|
+ .then((_) => {
|
|
|
+ done();
|
|
|
+ })
|
|
|
+ .catch((_) => {});
|
|
|
},
|
|
|
},
|
|
|
};
|
|
|
@@ -516,12 +559,11 @@ export default {
|
|
|
.home-body {
|
|
|
display: flex;
|
|
|
height: 100%;
|
|
|
-
|
|
|
.room-floor {
|
|
|
- height: 2000px;
|
|
|
+ height: 100%;
|
|
|
+ overflow: auto;
|
|
|
flex: 1;
|
|
|
.floor {
|
|
|
- height: 394px;
|
|
|
margin: 0 0 0 33px;
|
|
|
.header-title {
|
|
|
display: flex;
|
|
|
@@ -603,6 +645,48 @@ export default {
|
|
|
.tuifang {
|
|
|
width: 21px;
|
|
|
height: 21px;
|
|
|
+ cursor: pointer;
|
|
|
+ .el-dialog {
|
|
|
+ box-shadow: none;
|
|
|
+ margin: 350px 0 0 450px !important;
|
|
|
+ width: 555px !important;
|
|
|
+ height: 377px !important;
|
|
|
+ .text {
|
|
|
+ display: flex;
|
|
|
+ margin-left: 34px;
|
|
|
+ margin-bottom: 15px;
|
|
|
+ font-size: 14px;
|
|
|
+ font-weight: 400;
|
|
|
+ span {
|
|
|
+ margin-right: 20px;
|
|
|
+ }
|
|
|
+ .password {
|
|
|
+ color: #fff;
|
|
|
+ border-radius: 2px;
|
|
|
+ font-size: 12px;
|
|
|
+ padding: 2px;
|
|
|
+ cursor: pointer;
|
|
|
+ background-color: rgba(41, 109, 227, 1);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .el-dialog__body {
|
|
|
+ flex-direction: column;
|
|
|
+ }
|
|
|
+ .el-dialog__footer {
|
|
|
+ margin: 40px -48px 0 0;
|
|
|
+ .dialog-footer {
|
|
|
+ .el-button:nth-child(2) {
|
|
|
+ color: #fff;
|
|
|
+ background: rgba(41, 109, 227, 1);
|
|
|
+ }
|
|
|
+ .el-button {
|
|
|
+ width: 67px;
|
|
|
+ height: 37px;
|
|
|
+ padding-left: 20px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -856,16 +940,38 @@ export default {
|
|
|
padding: 24px 30px 0 0;
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
-.popperOptions {
|
|
|
- min-width: 69.99px;
|
|
|
+</style>
|
|
|
+<style lang="scss">
|
|
|
+.el-popover.popperOptions {
|
|
|
+ min-width: 0;
|
|
|
+ padding: 0;
|
|
|
height: 167px;
|
|
|
+ width: 70px;
|
|
|
+
|
|
|
.control-room {
|
|
|
- width: 69.99px;
|
|
|
+ width: 70px;
|
|
|
height: 167px;
|
|
|
opacity: 1;
|
|
|
background: rgba(240, 243, 247, 1);
|
|
|
box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.25);
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ justify-content: space-around;
|
|
|
+ text-align: center;
|
|
|
+
|
|
|
+ font-size: 12px;
|
|
|
+ font-weight: 400;
|
|
|
+ letter-spacing: 0px;
|
|
|
+ line-height: 0px;
|
|
|
+ color: rgba(0, 0, 0, 1);
|
|
|
+ text-align: left;
|
|
|
+ vertical-align: top;
|
|
|
+ div {
|
|
|
+ margin-left: 15px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .popper__arrow {
|
|
|
+ top: 35px !important;
|
|
|
}
|
|
|
}
|
|
|
</style>
|