master
lion 3 years ago
parent b44c717151
commit 5eb9e8454c

@ -68,7 +68,6 @@
data() {
return {
fullscreen: false,
clientHeight: 0,
gateShow: false,
gateAdminId: '',
gateName: "",
@ -100,11 +99,7 @@
this.getToday()
// this.enterfullscreen()
},
methods: {
init() {
let clientHeight = document.documentElement.clientHeight;
this.clientHeight = clientHeight
},
methods: {
openList(){
this.$refs.list.listShow = true
},
@ -203,7 +198,6 @@
console.log(res)
console.log(res.data)
if(!res.data){
return
}
let data1 = res.data?res.data.split('"IDNumber"'):''

@ -46,7 +46,7 @@
<!-- <el-input style="font-size: 32px;padding: 25px;width:400px" v-model="codeForm.person_no"
placeholder="请输入入场牌"></el-input> -->
<xy-table style="width: 620px" :height="260" :is-page="false" :list="codeForm.person_no"
<xy-table style="width: 600px" :height="260" :is-page="false" :list="codeForm.person_no"
:table-item="codefollowTable">
<template v-slot:btns>
</template>
@ -64,7 +64,7 @@
<!-- <el-input style="font-size: 32px;padding: 25px;width:400px" v-model="codeForm.car_no"
placeholder="请输入停车牌"></el-input> -->
<xy-table style="width: 620px" :height="260" :is-page="false" :list="codeForm.car_no"
<xy-table style="width: 600px" :height="260" :is-page="false" :list="codeForm.car_no"
:table-item="carfollowTable">
<template v-slot:btns>
</template>
@ -406,7 +406,7 @@
},{
label: "停车牌",
prop: "car_no",
width: 420,
width: 400,
customFn: (row, scope) => {
return (<el-input type="text" placeholder = "请填写停车牌"
v-model={row.car_no}>
@ -421,7 +421,7 @@
},{
label: "入场牌",
prop: "person_no",
width: 420,
width: 400,
customFn: (row, scope) => {
return (<el-input type="text" placeholder = "请填写入场牌"
v-model={row.person_no}>
@ -489,17 +489,30 @@
this.getDetail()
}
if (this.formDataType == 'coderecord') {
if (this.formDataType == 'coderecord') {
console.log("123")
console.log(this.form)
this.codeForm.code = this.form.code
this.codeForm.admin_id = parseInt(this.gateAdminId)
this.codeForm.type = this.form.audit_status == 1 ? 1 : (this.form.audit_status == 3 ? 2 : '')
this.codeForm.person_no.push({name:this.form.name,person_no:''})
for(var k of this.form.follw_people){
this.codeForm.person_no.push({name:k.name,person_no:''})
if(this.codeForm.type==1){
this.codeForm.person_no.push({name:this.form.name,person_no:''})
for(var k of this.form.follw_people){
this.codeForm.person_no.push({name:k.name,person_no:''})
}
for(var m of this.form.cars){
this.codeForm.car_no.push({car:m,car_no:''})
}
}else{
for(var k of this.form.person_no){
this.codeForm.person_no.push(JSON.parse(k))
}
for(var m of this.form.car_no){
this.codeForm.car_no.push(JSON.parse(m))
}
}
for(var m of this.form.cars){
this.codeForm.car_no.push({car:m,car_no:''})
}
}
} else {
this.reset()
@ -555,7 +568,11 @@
this.formDataType = ''
this.checkForm = {}
this.check_admin_name = ''
this.codeForm = {}
this.codeForm = {
type: 1,
car_no: [],
person_no: []
}
this.codeType = ''
this.gateAdminId = ''
this.isShow = false
@ -577,8 +594,7 @@
codeSubmit() {
let that = this
console.log(this.codeForm)
console.log(this.codeForm.person_no)
return
console.log(this.codeForm.person_no)
cancelCode({
...that.codeForm
}).then(res => {

Loading…
Cancel
Save