master
lion 1 year ago
parent 88688b56f9
commit 3551b419d8

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

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

Loading…
Cancel
Save