From 63ef70ab6ae2aa8245181e3f23151df6319a6d40 Mon Sep 17 00:00:00 2001 From: YeMingfei666 <1619116647@qq.com> Date: Mon, 4 Nov 2024 15:01:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=97=AE=E9=A2=98=EF=BC=9A?= =?UTF-8?q?=20=E3=80=90=E7=AE=A1=E7=90=86=E7=B3=BB=E7=BB=9F=E3=80=91?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E7=BB=9F=E8=AE=A1-=E6=A1=8C=E5=8F=B0?= =?UTF-8?q?=E7=BB=9F=E8=AE=A1=E9=A1=B5=E9=9D=A2=E4=B8=AD=EF=BC=8C=E6=8C=89?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E7=AD=9B=E9=80=89=E5=87=BA=E5=BD=93=E6=97=A5?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E5=90=84=E4=B8=AA=E6=A1=8C=E5=8F=B0=E8=AE=A2?= =?UTF-8?q?=E5=8D=95=E6=95=B0=E9=87=8F=EF=BC=8C=E7=82=B9=E5=87=BB=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC=E5=88=B0=E8=AE=A2=E5=8D=95=E9=A1=B5=E9=9D=A2=E7=BB=93?= =?UTF-8?q?=E6=9E=9C=E4=B8=8D=E5=87=86=E7=A1=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/home/data_tables.vue | 3 +-- src/views/order_manage/order_list.vue | 10 ++++------ 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/src/views/home/data_tables.vue b/src/views/home/data_tables.vue index cdf2a83..61b6237 100644 --- a/src/views/home/data_tables.vue +++ b/src/views/home/data_tables.vue @@ -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 } }) }, diff --git a/src/views/order_manage/order_list.vue b/src/views/order_manage/order_list.vue index 952e019..aa6bdd8 100644 --- a/src/views/order_manage/order_list.vue +++ b/src/views/order_manage/order_list.vue @@ -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