|
|
|
|
@ -311,16 +311,18 @@
|
|
|
|
|
car_park_id: carId,
|
|
|
|
|
...this.searchFields
|
|
|
|
|
}).then(res => {
|
|
|
|
|
for (var m of res.data) {
|
|
|
|
|
m.orderType = m.visit_order ? "参观预约" : "活动预约";
|
|
|
|
|
if (m.visit_order) {
|
|
|
|
|
m.teamunit = m.visit_order.unit ? m.visit_order.unit : "无";
|
|
|
|
|
m.teamType = m.visit_order.type == 1 ? "团队" : "个人";
|
|
|
|
|
} else {
|
|
|
|
|
m.teamunit = m.activity_order.unit ? m.activity_order.unit : "无";
|
|
|
|
|
m.teamType = m.activity_order.type == 1 ? "团队" : "个人";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
console.log("this.tableData",res.data)
|
|
|
|
|
// for (var m of res.data) {
|
|
|
|
|
// m.orderType = m.visit_order ? "参观预约" : "活动预约";
|
|
|
|
|
// if (m.visit_order) {
|
|
|
|
|
// m.teamunit = m.visit_order.unit ? m.visit_order.unit : "无";
|
|
|
|
|
// m.teamType = m.visit_order.type == 1 ? "团队" : "个人";
|
|
|
|
|
// } else {
|
|
|
|
|
// m.teamunit = m.activity_order.unit ? m.activity_order.unit : "无";
|
|
|
|
|
// m.teamType = m.activity_order.type == 1 ? "团队" : "个人";
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
this.tableData = res.data;
|
|
|
|
|
this.paginations.total = res.total
|
|
|
|
|
}).catch(error => {
|
|
|
|
|
|