master
lion 1 year ago
parent 88688b56f9
commit 3551b419d8

@ -310,17 +310,19 @@
page_size: this.paginations.page_size,
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 ? "团队" : "个人";
}
}
}).then(res => {
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 => {

@ -25,7 +25,7 @@ module.exports = {
* Detail: https://cli.vuejs.org/config/#publicpath
*/
publicPath: '/admin/',
outputDir: '/Users/liuxiangyu/Work/g-guangdian/app/d-dangxingjiaoyujidi/dangxingjiaoyujidi-service/public/admin',
outputDir: '/Users/mac/Documents/朗业/2022/l-乐益预约/service',
assetsDir: 'static',
css: {
loaderOptions: { // 向 CSS 相关的 loader 传递选项

Loading…
Cancel
Save