|
|
|
|
@ -1,37 +1,70 @@
|
|
|
|
|
<template>
|
|
|
|
|
<div>
|
|
|
|
|
<div class="gatewrap">
|
|
|
|
|
<div class="gateLeft">
|
|
|
|
|
<span @click='openList'>今日访客</span>
|
|
|
|
|
<!-- 头部导航 -->
|
|
|
|
|
<div class="gate-header">
|
|
|
|
|
<div class="gate-left">
|
|
|
|
|
<span @click='openList' class="today-visitors">今日访客</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="gateRight">
|
|
|
|
|
<span>
|
|
|
|
|
{{gateName}}<span @click="gateShow = true">切换</span>
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
|
|
<span @click='screen'>{{fullscreen?'取消全屏':'打开全屏'}}</span>
|
|
|
|
|
<div class="gate-right">
|
|
|
|
|
<div class="gate-info">
|
|
|
|
|
<span class="gate-name">{{gateName}}</span>
|
|
|
|
|
<span @click="gateShow = true" class="switch-gate">切换</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="gatecode">
|
|
|
|
|
<div>
|
|
|
|
|
拜访日期:
|
|
|
|
|
<el-date-picker v-model="selectRange" @change="selectRangeM" value-format="yyyy-MM-dd" type="daterange"
|
|
|
|
|
range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"
|
|
|
|
|
style="width:400px;vertical-align: middle;">
|
|
|
|
|
<div class="fullscreen-btn" @click='screen'>
|
|
|
|
|
{{fullscreen?'取消全屏':'打开全屏'}}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!-- 主要内容区域 -->
|
|
|
|
|
<div class="gate-content">
|
|
|
|
|
<div class="form-container">
|
|
|
|
|
<div class="form-item">
|
|
|
|
|
<label class="form-label">拜访日期:</label>
|
|
|
|
|
<el-date-picker
|
|
|
|
|
v-model="selectRange"
|
|
|
|
|
@change="selectRangeM"
|
|
|
|
|
value-format="yyyy-MM-dd"
|
|
|
|
|
type="daterange"
|
|
|
|
|
range-separator="至"
|
|
|
|
|
start-placeholder="开始日期"
|
|
|
|
|
end-placeholder="结束日期"
|
|
|
|
|
class="date-picker"
|
|
|
|
|
:popper-class="'mobile-date-picker'"
|
|
|
|
|
append-to-body>
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
核验销码:
|
|
|
|
|
<el-input clearable ref='codeInput' size="mini" placeholder="请输入核销码或扫码" v-model="select.code"
|
|
|
|
|
style="width: 160px;margin-right: 10px;" @change='getList'></el-input>
|
|
|
|
|
|
|
|
|
|
<div class="form-item">
|
|
|
|
|
<label class="form-label">核验销码:</label>
|
|
|
|
|
<el-input
|
|
|
|
|
clearable
|
|
|
|
|
ref='codeInput'
|
|
|
|
|
placeholder="请输入核销码或扫码"
|
|
|
|
|
v-model="select.code"
|
|
|
|
|
class="form-input"
|
|
|
|
|
@change='getList'>
|
|
|
|
|
</el-input>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
身份证件:
|
|
|
|
|
<el-input clearable ref='idInput' size="mini" placeholder="请输入身份证" v-model="select.idcard"
|
|
|
|
|
style="width: 160px;margin-right: 10px;"></el-input>
|
|
|
|
|
<el-button type="primary" @click='getIdcard'>查询身份证</el-button>
|
|
|
|
|
|
|
|
|
|
<div class="form-item">
|
|
|
|
|
<label class="form-label">身份证件:</label>
|
|
|
|
|
<div class="id-input-group">
|
|
|
|
|
<el-input
|
|
|
|
|
clearable
|
|
|
|
|
ref='idInput'
|
|
|
|
|
placeholder="请输入身份证"
|
|
|
|
|
v-model="select.idcard"
|
|
|
|
|
class="form-input id-input">
|
|
|
|
|
</el-input>
|
|
|
|
|
<el-button type="primary" @click='getIdcard' class="id-btn">查询身份证</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="form-item query-btn-container">
|
|
|
|
|
<el-button class="query-btn" type="primary" @click='getList'>查询</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<el-button class="getButton" type="primary" @click='getList'>查询</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
@ -63,7 +96,6 @@
|
|
|
|
|
components: {
|
|
|
|
|
showVisit,
|
|
|
|
|
list
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
@ -273,91 +305,365 @@
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
|
/* 基础容器样式 */
|
|
|
|
|
.gatewrap {
|
|
|
|
|
background-color: #fff;
|
|
|
|
|
position: relative;
|
|
|
|
|
height: 100vh
|
|
|
|
|
min-height: 100vh;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.gatecode {
|
|
|
|
|
font-size: 32px;
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 50%;
|
|
|
|
|
left: 50%;
|
|
|
|
|
transform: translate(-50%, -50%);
|
|
|
|
|
text-align: left;
|
|
|
|
|
display: inline-block;
|
|
|
|
|
/* 头部导航样式 */
|
|
|
|
|
.gate-header {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
align-items: center;
|
|
|
|
|
padding: 15px 20px;
|
|
|
|
|
border-bottom: 1px solid #f0f0f0;
|
|
|
|
|
background: #fafafa;
|
|
|
|
|
|
|
|
|
|
@media (max-width: 767px) {
|
|
|
|
|
padding: 10px 15px;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
gap: 10px;
|
|
|
|
|
align-items: stretch;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.gate-left {
|
|
|
|
|
.today-visitors {
|
|
|
|
|
color: #004593;
|
|
|
|
|
font-size: 18px;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
|
|
.gatecode>div {
|
|
|
|
|
margin-bottom: 40px;
|
|
|
|
|
@media (max-width: 767px) {
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.gatecode>div:last-child {
|
|
|
|
|
margin-bottom: 0px;
|
|
|
|
|
&:hover {
|
|
|
|
|
text-decoration: underline;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.gateRight {
|
|
|
|
|
position: absolute;
|
|
|
|
|
right: 20px;
|
|
|
|
|
top: 20px;
|
|
|
|
|
font-size: 20px;
|
|
|
|
|
.gate-right {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 20px;
|
|
|
|
|
|
|
|
|
|
@media (max-width: 767px) {
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
gap: 10px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.gateRight span {
|
|
|
|
|
margin-right: 10px;
|
|
|
|
|
margin-left: 5px;
|
|
|
|
|
.gate-info {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 5px;
|
|
|
|
|
|
|
|
|
|
.gate-name {
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
color: #333;
|
|
|
|
|
|
|
|
|
|
@media (max-width: 767px) {
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
}
|
|
|
|
|
.gateRight span>span {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.switch-gate {
|
|
|
|
|
color: #004593;
|
|
|
|
|
text-decoration: underline;
|
|
|
|
|
color:#004593
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
|
|
|
|
|
@media (max-width: 767px) {
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
}
|
|
|
|
|
.gateLeft{
|
|
|
|
|
position: absolute;
|
|
|
|
|
left: 20px;
|
|
|
|
|
top: 20px;
|
|
|
|
|
font-size: 20px;
|
|
|
|
|
color:#004593
|
|
|
|
|
}
|
|
|
|
|
/deep/ .el-input {
|
|
|
|
|
width: 400px !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/deep/ .el-input__inner {
|
|
|
|
|
font-size: 32px;
|
|
|
|
|
height: 45px;
|
|
|
|
|
width: 400px;
|
|
|
|
|
.fullscreen-btn {
|
|
|
|
|
color: #666;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
|
|
|
|
|
@media (max-width: 767px) {
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/deep/ .gatewrap .el-button {
|
|
|
|
|
vertical-align: top;
|
|
|
|
|
height: 45px;
|
|
|
|
|
width: 145px;
|
|
|
|
|
font-size: 20px;
|
|
|
|
|
&:hover {
|
|
|
|
|
color: #004593;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/deep/ .el-range-editor .el-range-input {
|
|
|
|
|
font-size: 20px;
|
|
|
|
|
/* 主要内容区域 */
|
|
|
|
|
.gate-content {
|
|
|
|
|
flex: 1;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
padding: 20px;
|
|
|
|
|
|
|
|
|
|
@media (max-width: 767px) {
|
|
|
|
|
align-items: flex-start;
|
|
|
|
|
padding: 20px 15px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.form-container {
|
|
|
|
|
width: 100%;
|
|
|
|
|
max-width: 500px;
|
|
|
|
|
|
|
|
|
|
@media (min-width: 768px) {
|
|
|
|
|
max-width: 600px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.form-item {
|
|
|
|
|
margin-bottom: 25px;
|
|
|
|
|
|
|
|
|
|
@media (max-width: 767px) {
|
|
|
|
|
margin-bottom: 20px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
|
margin-bottom: 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.form-label {
|
|
|
|
|
display: block;
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
color: #333;
|
|
|
|
|
margin-bottom: 8px;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
|
|
|
|
|
@media (max-width: 767px) {
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
margin-bottom: 6px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/deep/ .el-date-editor .el-range-separator {
|
|
|
|
|
@media (min-width: 768px) {
|
|
|
|
|
font-size: 20px;
|
|
|
|
|
line-height: 36px;
|
|
|
|
|
margin-bottom: 10px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.form-input {
|
|
|
|
|
width: 100%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.date-picker {
|
|
|
|
|
width: 100%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.id-input-group {
|
|
|
|
|
display: flex;
|
|
|
|
|
gap: 10px;
|
|
|
|
|
|
|
|
|
|
@media (max-width: 767px) {
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
gap: 8px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.id-input {
|
|
|
|
|
flex: 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.id-btn {
|
|
|
|
|
@media (max-width: 767px) {
|
|
|
|
|
width: 100%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/deep/ .el-date-editor .el-range__icon {
|
|
|
|
|
@media (min-width: 768px) {
|
|
|
|
|
min-width: 120px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.query-btn-container {
|
|
|
|
|
text-align: center;
|
|
|
|
|
margin-top: 30px;
|
|
|
|
|
|
|
|
|
|
@media (max-width: 767px) {
|
|
|
|
|
margin-top: 25px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.query-btn {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 50px;
|
|
|
|
|
font-size: 18px;
|
|
|
|
|
line-height: 38px;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
|
|
|
|
|
@media (max-width: 767px) {
|
|
|
|
|
height: 44px;
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/deep/ .el-date-editor .el-range__close-icon {
|
|
|
|
|
@media (min-width: 768px) {
|
|
|
|
|
height: 60px;
|
|
|
|
|
font-size: 24px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Element UI 组件样式覆盖 */
|
|
|
|
|
::v-deep .el-input__inner {
|
|
|
|
|
height: 44px;
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
|
|
|
|
|
@media (max-width: 767px) {
|
|
|
|
|
height: 40px;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@media (min-width: 768px) {
|
|
|
|
|
height: 50px;
|
|
|
|
|
font-size: 18px;
|
|
|
|
|
line-height: 38px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::v-deep .el-button {
|
|
|
|
|
height: 44px;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
|
|
|
|
|
@media (max-width: 767px) {
|
|
|
|
|
height: 40px;
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@media (min-width: 768px) {
|
|
|
|
|
height: 50px;
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::v-deep .el-date-editor {
|
|
|
|
|
width: 100%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::v-deep .el-range-editor .el-range-input {
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
|
|
|
|
|
@media (min-width: 768px) {
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::v-deep .el-date-editor .el-range-separator {
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
|
|
|
|
|
@media (min-width: 768px) {
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::v-deep .el-date-editor .el-range__icon,
|
|
|
|
|
::v-deep .el-date-editor .el-range__close-icon {
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.gatecode .getButton.el-button {
|
|
|
|
|
/* 对话框样式优化 */
|
|
|
|
|
::v-deep .el-dialog {
|
|
|
|
|
@media (max-width: 767px) {
|
|
|
|
|
width: 90% !important;
|
|
|
|
|
margin-top: 15vh !important;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::v-deep .el-radio {
|
|
|
|
|
@media (max-width: 767px) {
|
|
|
|
|
width: 100%;
|
|
|
|
|
font-size: 32px;
|
|
|
|
|
height: 70px
|
|
|
|
|
margin-bottom: 10px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* 日期选择器输入框在移动端的样式调整 */
|
|
|
|
|
::v-deep .el-range-editor {
|
|
|
|
|
@media (max-width: 767px) {
|
|
|
|
|
.el-range-input {
|
|
|
|
|
width: 35% !important;
|
|
|
|
|
font-size: 13px !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.el-range-separator {
|
|
|
|
|
width: 15% !important;
|
|
|
|
|
font-size: 12px !important;
|
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.el-range__icon,
|
|
|
|
|
.el-range__close-icon {
|
|
|
|
|
font-size: 12px !important;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
|
|
|
|
|
<!-- 不带scoped的样式,专门处理日期选择器弹出层 -->
|
|
|
|
|
<style>
|
|
|
|
|
/* 移动端日期选择器弹出层优化 */
|
|
|
|
|
@media (max-width: 767px) {
|
|
|
|
|
.mobile-date-picker.el-picker-panel {
|
|
|
|
|
position: fixed !important;
|
|
|
|
|
left: 10px !important;
|
|
|
|
|
right: 10px !important;
|
|
|
|
|
top: 50% !important;
|
|
|
|
|
transform: translateY(-50%) !important;
|
|
|
|
|
width: auto !important;
|
|
|
|
|
max-width: none !important;
|
|
|
|
|
min-width: auto !important;
|
|
|
|
|
margin: 0 !important;
|
|
|
|
|
z-index: 9999 !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.mobile-date-picker.el-date-range-picker {
|
|
|
|
|
min-width: auto !important;
|
|
|
|
|
width: 100% !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.mobile-date-picker .el-picker-panel__body {
|
|
|
|
|
display: flex !important;
|
|
|
|
|
flex-direction: column !important;
|
|
|
|
|
min-width: auto !important;
|
|
|
|
|
width: 100% !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.mobile-date-picker .el-picker-panel__content {
|
|
|
|
|
display: flex !important;
|
|
|
|
|
flex-direction: column !important;
|
|
|
|
|
width: 100% !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.mobile-date-picker .el-picker-panel__content .el-date-table {
|
|
|
|
|
margin: 0 5px 10px 5px !important;
|
|
|
|
|
width: calc(100% - 10px) !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.mobile-date-picker .el-date-range-picker__time-header {
|
|
|
|
|
display: flex !important;
|
|
|
|
|
flex-direction: column !important;
|
|
|
|
|
gap: 5px !important;
|
|
|
|
|
padding: 5px !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.mobile-date-picker .el-picker-panel__sidebar {
|
|
|
|
|
width: 100% !important;
|
|
|
|
|
padding: 5px !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.mobile-date-picker .el-picker-panel__sidebar .el-picker-panel__shortcut {
|
|
|
|
|
display: inline-block !important;
|
|
|
|
|
margin: 2px !important;
|
|
|
|
|
padding: 3px 8px !important;
|
|
|
|
|
font-size: 12px !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.mobile-date-picker .el-picker-panel__footer {
|
|
|
|
|
text-align: center !important;
|
|
|
|
|
padding: 10px !important;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
|