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