master
lion 3 years ago
parent b44c717151
commit 5eb9e8454c

@ -68,7 +68,6 @@
data() { data() {
return { return {
fullscreen: false, fullscreen: false,
clientHeight: 0,
gateShow: false, gateShow: false,
gateAdminId: '', gateAdminId: '',
gateName: "", gateName: "",
@ -101,10 +100,6 @@
// this.enterfullscreen() // this.enterfullscreen()
}, },
methods: { methods: {
init() {
let clientHeight = document.documentElement.clientHeight;
this.clientHeight = clientHeight
},
openList(){ openList(){
this.$refs.list.listShow = true this.$refs.list.listShow = true
}, },
@ -203,7 +198,6 @@
console.log(res) console.log(res)
console.log(res.data) console.log(res.data)
if(!res.data){ if(!res.data){
return return
} }
let data1 = res.data?res.data.split('"IDNumber"'):'' 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" <!-- <el-input style="font-size: 32px;padding: 25px;width:400px" v-model="codeForm.person_no"
placeholder="请输入入场牌"></el-input> --> 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"> :table-item="codefollowTable">
<template v-slot:btns> <template v-slot:btns>
</template> </template>
@ -64,7 +64,7 @@
<!-- <el-input style="font-size: 32px;padding: 25px;width:400px" v-model="codeForm.car_no" <!-- <el-input style="font-size: 32px;padding: 25px;width:400px" v-model="codeForm.car_no"
placeholder="请输入停车牌"></el-input> --> 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"> :table-item="carfollowTable">
<template v-slot:btns> <template v-slot:btns>
</template> </template>
@ -406,7 +406,7 @@
},{ },{
label: "停车牌", label: "停车牌",
prop: "car_no", prop: "car_no",
width: 420, width: 400,
customFn: (row, scope) => { customFn: (row, scope) => {
return (<el-input type="text" placeholder = "请填写停车牌" return (<el-input type="text" placeholder = "请填写停车牌"
v-model={row.car_no}> v-model={row.car_no}>
@ -421,7 +421,7 @@
},{ },{
label: "入场牌", label: "入场牌",
prop: "person_no", prop: "person_no",
width: 420, width: 400,
customFn: (row, scope) => { customFn: (row, scope) => {
return (<el-input type="text" placeholder = "请填写入场牌" return (<el-input type="text" placeholder = "请填写入场牌"
v-model={row.person_no}> v-model={row.person_no}>
@ -490,16 +490,29 @@
} }
if (this.formDataType == 'coderecord') { if (this.formDataType == 'coderecord') {
console.log("123")
console.log(this.form)
this.codeForm.code = this.form.code this.codeForm.code = this.form.code
this.codeForm.admin_id = parseInt(this.gateAdminId) this.codeForm.admin_id = parseInt(this.gateAdminId)
this.codeForm.type = this.form.audit_status == 1 ? 1 : (this.form.audit_status == 3 ? 2 : '') 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:''}) if(this.codeForm.type==1){
for(var k of this.form.follw_people){ this.codeForm.person_no.push({name:this.form.name,person_no:''})
this.codeForm.person_no.push({name:k.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:''}) 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))
}
} }
} }
} else { } else {
this.reset() this.reset()
@ -555,7 +568,11 @@
this.formDataType = '' this.formDataType = ''
this.checkForm = {} this.checkForm = {}
this.check_admin_name = '' this.check_admin_name = ''
this.codeForm = {} this.codeForm = {
type: 1,
car_no: [],
person_no: []
}
this.codeType = '' this.codeType = ''
this.gateAdminId = '' this.gateAdminId = ''
this.isShow = false this.isShow = false
@ -578,7 +595,6 @@
let that = this let that = this
console.log(this.codeForm) console.log(this.codeForm)
console.log(this.codeForm.person_no) console.log(this.codeForm.person_no)
return
cancelCode({ cancelCode({
...that.codeForm ...that.codeForm
}).then(res => { }).then(res => {

Loading…
Cancel
Save