修复问题:
【管理系统】数据统计-桌台统计页面中,按时间筛选出当日时间各个桌台订单数量,点击跳转到订单页面结果不准确
This commit is contained in:
@@ -134,12 +134,11 @@ export default {
|
||||
//携带table id跳转到订单列表页面
|
||||
toTableOrderList(data) {
|
||||
// console.log(data)
|
||||
let date = [this.query.createdAt[0], this.query.createdAt[1]]
|
||||
this.$router.push({
|
||||
path: '/order_manage/order_list',
|
||||
query: {
|
||||
tableName: data.tableName,
|
||||
date: date
|
||||
timeValue: this.timeValue
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
@@ -233,12 +233,10 @@ export default {
|
||||
mounted() {
|
||||
if (this.$route.query.tableName) {
|
||||
this.query.tableName = this.$route.query.tableName
|
||||
console.log(this.$route.query.date,'体哦啊是1111')
|
||||
if(this.$route.query.date[0]){
|
||||
this.query.createdAt = this.$route.query.date
|
||||
}else{
|
||||
this.query.createdAt = []
|
||||
}
|
||||
}
|
||||
if (this.$route.query.timeValue) {
|
||||
this.timeValue = this.$route.query.timeValue
|
||||
this.timeChange(this.timeValue);
|
||||
}
|
||||
if (this.$route.query.orderNo) {
|
||||
this.query.orderNo = this.$route.query.orderNo
|
||||
|
||||
Reference in New Issue
Block a user