master
lion 3 years ago
parent 73736bc859
commit 5a9b8d8857

@ -42,7 +42,7 @@
return { return {
select: { select: {
page: 1, page: 1,
rows: 10, page_size: 10,
keyword: "" keyword: ""
}, },
total: 0, total: 0,

@ -99,7 +99,7 @@
visible: false, visible: false,
select: { select: {
page: 1, page: 1,
rows: 10, page_size: 10,
keyword: "", keyword: "",
audit_status: 0, audit_status: 0,
my_accept_admin: 0, my_accept_admin: 0,

@ -187,7 +187,7 @@
</div> </div>
</div> </div>
</template> </template>
<template v-slot:carsno v-if="visitType==1||visitType==2"> <template v-slot:carsno v-else>
<div class="xy-table-item"> <div class="xy-table-item">
<div class="xy-table-item-label"> <div class="xy-table-item-label">
<span style="color: red;font-weight: 600;padding-right: 4px;"></span>到访车辆 <span style="color: red;font-weight: 600;padding-right: 4px;"></span>到访车辆
@ -570,7 +570,8 @@
credent: res?.credent, credent: res?.credent,
idcard: res?.idcard, idcard: res?.idcard,
company_name: res?.company_name, company_name: res?.company_name,
cars: res?.cars, cars:[],
carsno: [],
follw_people: res?.follw_people, follw_people: res?.follw_people,
long_time: res?.long_time, long_time: res?.long_time,
longrange: res.start_date?[res.start_date,res.end_date]:"", longrange: res.start_date?[res.start_date,res.end_date]:"",
@ -583,6 +584,7 @@
for(var k of res?.cars){ for(var k of res?.cars){
this.carsList.push({car:k}) this.carsList.push({car:k})
} }
console.log(this.followList,this.carsList)
}, },
async getLabel() { async getLabel() {
const res = await getTimeList() const res = await getTimeList()
@ -665,6 +667,7 @@
watch: { watch: {
isShow(newVal) { isShow(newVal) {
if (newVal) { if (newVal) {
console.log("this.visitType",this.visitType)
this.form.type = this.visitType this.form.type = this.visitType
this.form.audit_status = 1 this.form.audit_status = 1
if (this.type === 'editor') { if (this.type === 'editor') {

@ -53,7 +53,7 @@
return { return {
select: { select: {
page: 1, page: 1,
rows: 10, page_size: 10,
keyword: "", keyword: "",
audit_status: "", audit_status: "",
start_date: "", start_date: "",

@ -72,7 +72,7 @@
visible: false, visible: false,
select: { select: {
page: 1, page: 1,
rows: 10, page_size: 10,
keyword: "", keyword: "",
audit_status: "", audit_status: "",
start_date: "", start_date: "",
@ -141,7 +141,7 @@
prop: 'follw_people', prop: 'follw_people',
width: 80, width: 80,
formatter:(cell, data, value)=>{ formatter:(cell, data, value)=>{
return value?'是':'否' return value.length>0?'是':'否'
} }
}, },
{ {
@ -284,8 +284,9 @@
editorStudy(row) { editorStudy(row) {
// let addWhat = row.type == 1 ? "addCommon" : (row.type == 2 ? "addBuild" : (row.type == 3 ? "addPark" : "")) // let addWhat = row.type == 1 ? "addCommon" : (row.type == 2 ? "addBuild" : (row.type == 3 ? "addPark" : ""))
let addWhat = "addCommon" let addWhat = "addCommon"
console.log(row)
this.$refs[addWhat].id = row.id this.$refs[addWhat].id = row.id
this.$refs[addWhat].visitType=row.type this.$refs[addWhat].visitType= parseInt(row.type)
this.$refs[addWhat].type = 'editor' this.$refs[addWhat].type = 'editor'
this.$refs[addWhat].isShow = true this.$refs[addWhat].isShow = true
} }

Loading…
Cancel
Save