<!--
|
* @Author: shuishen 1109946754@qq.com
|
* @Date: 2023-03-02 09:39:32
|
* @LastEditors: shuishen 1109946754@qq.com
|
* @LastEditTime: 2023-04-01 14:43:39
|
* @FilePath: \srs-police-affairs\src\components\map\components\mapSearchPopup.vue
|
* @Description:
|
*
|
* Copyright (c) 2023 by ${git_name_email}, All Rights Reserved.
|
-->
|
<template>
|
<div>
|
<div v-if="hotelPopup" class="divForms-dom" id="hotelPopup">
|
<div style="width: 100%; height: 100%; transform: translate(0, 50%);">
|
<div class="divForms divForms-theme" :class="{ 'scale-dom': scaleDomFlag }">
|
<div class="divForms-wrap">
|
<div class="area" :class="{ 'area-plus': isShowAll }">
|
<div class="arrow-lt"></div>
|
<div class="b-t"></div>
|
<div class="b-r"></div>
|
<div class="b-b"></div>
|
<div class="b-l"></div>
|
<div class="arrow-rb"></div>
|
<div class="label-wrap">
|
<div class="title">
|
旅馆信息
|
<div class="close" @click="closePopup" title="关闭"></div>
|
</div>
|
<div class="lable-box">
|
<div class="label-content">
|
<div class="item">
|
<div>旅馆代码</div>:
|
<div>{{ hotelPopupData.hotelCode }}</div>
|
</div>
|
<div class="item">
|
<div>旅馆名称</div>:
|
<div>{{ hotelPopupData.hotelName }}</div>
|
</div>
|
<div class="item">
|
<div>法人</div>:
|
<div>{{ hotelPopupData.legalRepresentative }}</div>
|
</div>
|
<div class="item">
|
<div>法人身份证号</div>:
|
<div>{{ hotelPopupData.legalRepresentativeCard }}</div>
|
</div>
|
<div class="item">
|
<div>法人电话</div>:
|
<div>{{ hotelPopupData.legalRepresentativePhone }}</div>
|
</div>
|
<div class="item">
|
<div>负责人</div>:
|
<div>{{ hotelPopupData.principal }}</div>
|
</div>
|
<div class="item">
|
<div>总台电话</div>:
|
<div>{{ hotelPopupData.receptionTel }}</div>
|
</div>
|
<div class="item">
|
<div>治安负责人</div>:
|
<div>{{ hotelPopupData.publicSecurityPrincipal }}</div>
|
</div>
|
<div class="item">
|
<div>保安部电话</div>:
|
<div>{{ hotelPopupData.securityTel }}</div>
|
</div>
|
<div class="item">
|
<div>旅馆地址</div>:
|
<div>{{ hotelPopupData.hotelAddress }}</div>
|
</div>
|
<div class="item">
|
<div>状态</div>:
|
<div>{{ hotelPopupData.status == 1 ? '开业' : '停业' }}</div>
|
</div>
|
</div>
|
<el-button :icon="isShowAll ? 'el-icon-arrow-left' : 'el-icon-arrow-right'"
|
class="open-btn" type="primary" @click="openAll"></el-button>
|
<div class="label-content" v-show="isShowAll">
|
<div class="item">
|
<div>前台经理</div>:
|
<div>{{ hotelPopupData.receptionManager }}</div>
|
</div>
|
<div class="item">
|
<div>保安人数</div>:
|
<div>{{ hotelPopupData.securityNum }}</div>
|
</div>
|
<div class="item">
|
<div>从业人数</div>:
|
<div>{{ hotelPopupData.getJobNum }}</div>
|
</div>
|
<div class="item">
|
<div>外来打工人数</div>:
|
<div>{{ hotelPopupData.migrantWorkNum }}</div>
|
</div>
|
<div class="item">
|
<div>房间数</div>:
|
<div>{{ hotelPopupData.roomNum }}</div>
|
</div>
|
<div class="item">
|
<div>床位数</div>:
|
<div>{{ hotelPopupData.bed }}</div>
|
</div>
|
<div class="item">
|
<div>星级</div>:
|
<div>{{ hotelPopupData.starLevel }}</div>
|
</div>
|
<div class="item">
|
<div>套房</div>:
|
<div>{{ hotelPopupData.suite }}</div>
|
</div>
|
<div class="item">
|
<div>标准房</div>:
|
<div>{{ hotelPopupData.standard }}</div>
|
</div>
|
<div class="item">
|
<div>双人房</div>:
|
<div>{{ hotelPopupData.two }}</div>
|
</div>
|
<div class="item">
|
<div>单人房</div>:
|
<div>{{ hotelPopupData.one }}</div>
|
</div>
|
<div class="item">
|
<div>其他房型</div>:
|
<div>{{ hotelPopupData.rests }}</div>
|
</div>
|
<div class="item">
|
<div>备案时间</div>:
|
<div>{{ hotelPopupData.filingTime }}</div>
|
</div>
|
</div>
|
</div>
|
|
</div>
|
</div>
|
<div class="b-t-l"></div>
|
<div class="b-b-r"></div>
|
</div>
|
<div class="arrow"></div>
|
</div>
|
</div>
|
</div>
|
</div>
|
</template>
|
|
<script>
|
import { mapGetters } from 'vuex'
|
|
export default {
|
name: 'hotelPopup',
|
|
inject: ["getWidth", 'userInfo'],
|
|
data () {
|
return {
|
scaleDomFlag: false,
|
isShowAll: false
|
}
|
},
|
|
computed: {
|
...mapGetters([
|
'hotelPopup',
|
'hotelPopupData'
|
])
|
},
|
|
mounted () {
|
if (this.getWidth() > 7000) {
|
this.scaleDomFlag = true
|
} else {
|
this.scaleDomFlag = false
|
}
|
|
},
|
|
methods: {
|
closePopup () {
|
this.$store.commit('SET_HOTELPOPUP', false)
|
},
|
|
openAll () {
|
this.isShowAll = !this.isShowAll
|
console.log('this.isShowAll.', this.isShowAll)
|
},
|
}
|
}
|
</script>
|
|
<style lang="scss" scoped>
|
.divForms-dom {
|
position: fixed;
|
left: 0;
|
z-index: 1 !important;
|
|
.scale-dom {
|
transform: scale(3);
|
transform-origin: left;
|
}
|
}
|
|
.divForms .arrow {
|
position: absolute;
|
bottom: 50%;
|
left: 0;
|
width: 45px;
|
height: 2px;
|
transform: rotate(-45deg) translate(5px, -15px);
|
background-color: #28bbf0;
|
}
|
|
.divForms-theme .area {
|
background-image: linear-gradient(135deg,
|
transparent 30px,
|
#1831a79a 30px,
|
#3f487ba6 50%,
|
transparent 50%),
|
linear-gradient(-45deg,
|
transparent 30px,
|
#1831a79a 30px,
|
#3f487ba6 50.1%,
|
transparent 50%);
|
}
|
|
.divForms .area {
|
position: relative;
|
min-width: 360px;
|
}
|
|
.divForms .area-plus {
|
position: relative;
|
min-width: 740px;
|
}
|
|
.divForms-wrap {
|
position: relative;
|
overflow: hidden;
|
padding: 30px;
|
}
|
|
.divForms-theme .b-b,
|
.divForms-theme .b-b-r,
|
.divForms-theme .b-l,
|
.divForms-theme .b-r,
|
.divForms-theme .b-t,
|
.divForms-theme .b-t-l {
|
background-color: #1831a7;
|
box-shadow: 0 0 10px 2px #1831a7;
|
}
|
|
.divForms .b-t {
|
position: absolute;
|
top: 0;
|
left: 44px;
|
right: 0;
|
height: 1px;
|
z-index: 10;
|
}
|
|
.divForms .b-r {
|
position: absolute;
|
top: 0;
|
right: 0;
|
bottom: 44px;
|
width: 1px;
|
z-index: 10;
|
}
|
|
.divForms .b-l {
|
position: absolute;
|
top: 44px;
|
left: 0;
|
bottom: 0;
|
width: 1px;
|
z-index: 10;
|
}
|
|
.divForms .b-b {
|
position: absolute;
|
left: 0;
|
right: 44px;
|
bottom: 0;
|
height: 1px;
|
z-index: 10;
|
}
|
|
.divForms .b-b-r {
|
position: absolute;
|
bottom: 0;
|
right: 0;
|
width: 1px;
|
height: 62px;
|
transform: rotate(45deg) translate(-52px, 22px);
|
z-index: 10;
|
}
|
|
.divForms .b-t-l {
|
position: absolute;
|
top: 0;
|
left: 0;
|
width: 1px;
|
height: 62px;
|
transform: rotate(45deg) translate(52px, -22px);
|
z-index: 10;
|
}
|
|
.divForms .label-wrap {
|
padding: 0 12px;
|
color: #fff;
|
font-size: 16px;
|
white-space: nowrap;
|
overflow: hidden;
|
|
.change-btn {
|
margin-top: 6px;
|
display: flex;
|
align-items: center;
|
justify-content: space-around;
|
|
&>div {
|
width: 36%;
|
height: 36px;
|
line-height: 36px;
|
cursor: pointer;
|
}
|
|
&>div.on {
|
color: #3d95f3;
|
border-bottom: 2px solid #3d95f3;
|
}
|
}
|
|
.lable-box {
|
display: flex;
|
|
.label-content {
|
// width: 50%;
|
padding: 10px 0;
|
|
.item {
|
display: flex;
|
flex-direction: row;
|
width: calc(100% - 20px);
|
height: 30px;
|
line-height: 30px;
|
margin: 0 10px;
|
text-align: left;
|
|
&>div:first-child {
|
width: 112px;
|
text-align: justify;
|
display: inline-block;
|
text-align-last: justify;
|
margin-right: 20px;
|
}
|
|
&>div:nth-of-type(2) {
|
width: calc(100% - 120px);
|
max-width: 190px;
|
// overflow: hidden;
|
// text-overflow: ellipsis;
|
// white-space: nowrap;
|
}
|
|
}
|
|
// .item:nth-of-type(6) {
|
// height: 90px;
|
|
// &>div:nth-of-type(2) {
|
// word-wrap: break-word;
|
// white-space: break-spaces;
|
// width: 190px;
|
// }
|
// }
|
|
}
|
|
.open-btn {
|
border: 0;
|
background-color: transparent;
|
width: 20px;
|
padding: 0;
|
}
|
|
.label-content:nth-of-type(1) .item:nth-of-type(10) {
|
height: 90px;
|
|
&>div:nth-of-type(2) {
|
word-wrap: break-word;
|
white-space: break-spaces;
|
// width: 190px;
|
}
|
}
|
}
|
|
|
.label-content.no-data {
|
display: flex;
|
align-items: center;
|
justify-content: center;
|
min-height: 240px;
|
}
|
}
|
|
.divForms .title {
|
position: relative;
|
margin-top: 20px;
|
padding: 0 12px 0 30px;
|
height: 36px;
|
line-height: 36px;
|
|
.details-btn {
|
position: absolute;
|
top: 0;
|
right: 28px;
|
height: 100%;
|
cursor: pointer;
|
|
span {
|
font-size: 14px;
|
}
|
}
|
|
.details-btn:hover {
|
color: #3d95f3;
|
}
|
|
.close {
|
position: absolute;
|
right: 5px;
|
top: 0;
|
}
|
|
.close::before {
|
font-family: element-icons;
|
content: '\e6db';
|
cursor: pointer;
|
font-size: 16px;
|
}
|
|
.close:hover::before {
|
color: #3d95f3;
|
}
|
}
|
|
.divForms-theme .title {
|
background-image: linear-gradient(135deg, transparent 25px, #1c309e9a 25px);
|
}
|
|
.divForms-theme .arrow,
|
.divForms-theme .title::before {
|
background-color: #1c309e;
|
}
|
|
.divForms .title::before {
|
content: '';
|
position: absolute;
|
bottom: -4px;
|
left: 0;
|
right: 0;
|
z-index: 10;
|
height: 2px;
|
}
|
</style>
|