|
|
|
|
@ -1,8 +1,8 @@
|
|
|
|
|
<template>
|
|
|
|
|
<div>
|
|
|
|
|
<div class="gatewrap">
|
|
|
|
|
<div class="gateLeft">
|
|
|
|
|
<span @click='openList'>今日访客</span>
|
|
|
|
|
<div class="gatewrap">
|
|
|
|
|
<div class="gateLeft">
|
|
|
|
|
<span @click='openList'>今日访客</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="gateRight">
|
|
|
|
|
<span>
|
|
|
|
|
@ -51,9 +51,9 @@
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<script>
|
|
|
|
|
import Cookies from 'js-cookie'
|
|
|
|
|
import Cookies from 'js-cookie'
|
|
|
|
|
import axios from 'axios'
|
|
|
|
|
import showVisit from '@/views/visit/component/showVisit'
|
|
|
|
|
import showVisit from '@/views/visit/component/showVisit'
|
|
|
|
|
import list from '@/views/gate/components/list.vue'
|
|
|
|
|
import {
|
|
|
|
|
getList,
|
|
|
|
|
@ -61,8 +61,8 @@
|
|
|
|
|
} from '@/api/gate'
|
|
|
|
|
export default {
|
|
|
|
|
components: {
|
|
|
|
|
showVisit,
|
|
|
|
|
list
|
|
|
|
|
showVisit,
|
|
|
|
|
list
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
@ -99,9 +99,9 @@
|
|
|
|
|
this.getToday()
|
|
|
|
|
// this.enterfullscreen()
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
openList(){
|
|
|
|
|
this.$refs.list.listShow = true
|
|
|
|
|
methods: {
|
|
|
|
|
openList(){
|
|
|
|
|
this.$refs.list.listShow = true
|
|
|
|
|
},
|
|
|
|
|
getToday() {
|
|
|
|
|
let now = new Date()
|
|
|
|
|
@ -140,7 +140,7 @@
|
|
|
|
|
this.$refs['showVisit'].form = k
|
|
|
|
|
this.$refs['showVisit'].formDataType = 'coderecord'
|
|
|
|
|
this.$refs['showVisit'].gateAdminId = this.gateAdminId
|
|
|
|
|
this.$refs['showVisit'].isShow = true
|
|
|
|
|
this.$refs['showVisit'].isShow = true
|
|
|
|
|
return
|
|
|
|
|
} else {
|
|
|
|
|
this.$successMessage(k.audit_status_text, '', 'success')
|
|
|
|
|
@ -148,8 +148,8 @@
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
this.$successMessage("未查询到记录", '', 'warning')
|
|
|
|
|
}
|
|
|
|
|
this.select.code = ''
|
|
|
|
|
}
|
|
|
|
|
this.select.code = ''
|
|
|
|
|
this.select.idcard = ''
|
|
|
|
|
},
|
|
|
|
|
async getUserList() {
|
|
|
|
|
@ -187,27 +187,27 @@
|
|
|
|
|
})
|
|
|
|
|
this.gateShow = false
|
|
|
|
|
},
|
|
|
|
|
getIdcard() {
|
|
|
|
|
let that = this
|
|
|
|
|
axios.get('https://127.0.0.1:24011/ZKIDROnline/ScanReadIdCardInfo?OP-DEV=1&CMD-URL=4&REPEAT=1&READTYPE=1',{
|
|
|
|
|
'headers':{
|
|
|
|
|
"Content-Type":'application/json'
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
.then(res=>{
|
|
|
|
|
console.log(res)
|
|
|
|
|
console.log(res.data)
|
|
|
|
|
if(!res.data){
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
let data1 = res.data?res.data.split('"IDNumber"'):''
|
|
|
|
|
let data2= data1[1].split(",")
|
|
|
|
|
let data3 =data2[0].replace(/[^\d]/g, "")
|
|
|
|
|
that.select.idcard = data3
|
|
|
|
|
that.getList()
|
|
|
|
|
}).catch(err=>{
|
|
|
|
|
console.log(err)
|
|
|
|
|
this.$successMessage(err.statusText, '', 'warning')
|
|
|
|
|
getIdcard() {
|
|
|
|
|
let that = this
|
|
|
|
|
axios.get('https://127.0.0.1:24011/ZKIDROnline/ScanReadIdCardInfo?OP-DEV=1&CMD-URL=4&REPEAT=1&READTYPE=1',{
|
|
|
|
|
'headers':{
|
|
|
|
|
"Content-Type":'application/json'
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
.then(res=>{
|
|
|
|
|
console.log(res)
|
|
|
|
|
console.log(res.data)
|
|
|
|
|
if(!res.data){
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
let data1 = res.data?res.data.split('"IDNumber"'):''
|
|
|
|
|
let data2= data1[1].split(",")
|
|
|
|
|
let data3 =data2[0].replace(/[^\d]/g, "")
|
|
|
|
|
that.select.idcard = data3
|
|
|
|
|
that.getList()
|
|
|
|
|
}).catch(err=>{
|
|
|
|
|
console.log(err)
|
|
|
|
|
this.$successMessage(err.statusText, '', 'warning')
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
screen() {
|
|
|
|
|
@ -309,15 +309,15 @@
|
|
|
|
|
margin-left: 5px;
|
|
|
|
|
}
|
|
|
|
|
.gateRight span>span {
|
|
|
|
|
text-decoration: underline;
|
|
|
|
|
text-decoration: underline;
|
|
|
|
|
color:#004593
|
|
|
|
|
}
|
|
|
|
|
.gateLeft{
|
|
|
|
|
position: absolute;
|
|
|
|
|
left: 20px;
|
|
|
|
|
top: 20px;
|
|
|
|
|
font-size: 20px;
|
|
|
|
|
color:#004593
|
|
|
|
|
.gateLeft{
|
|
|
|
|
position: absolute;
|
|
|
|
|
left: 20px;
|
|
|
|
|
top: 20px;
|
|
|
|
|
font-size: 20px;
|
|
|
|
|
color:#004593
|
|
|
|
|
}
|
|
|
|
|
/deep/ .el-input {
|
|
|
|
|
width: 400px !important;
|
|
|
|
|
@ -360,4 +360,4 @@
|
|
|
|
|
font-size: 32px;
|
|
|
|
|
height: 70px
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
</style>
|
|
|
|
|
|