From 3607cfd674a34f1ec00d51be75582f06c7ed82dd Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Thu, 21 Oct 2021 19:34:56 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9B=91=E5=90=AC=E6=90=9C=E7=B4=A2=E6=9D=A1?= =?UTF-8?q?=E4=BB=B6=EF=BC=8C=E5=AE=9E=E6=97=B6=E6=9F=A5=E8=AF=A2=E6=95=B0?= =?UTF-8?q?=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/order/Order.vue | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/views/order/Order.vue b/src/views/order/Order.vue index 94df695..e76ffd3 100644 --- a/src/views/order/Order.vue +++ b/src/views/order/Order.vue @@ -48,8 +48,7 @@ - + @@ -154,14 +153,14 @@ export default { pageNo: 1, pageSize: 10, totals: 1, - setTime: "" + searchTimer: null }; }, watch: { keyword: function(val) { - clearTimeout(this.setTime); - this.setTime = setTimeout(() => { - this.onSearch(); + clearTimeout(this.searchTimer); + this.searchTimer = setTimeout(() => { + this.initData(); }, 500); } }, @@ -273,7 +272,7 @@ export default { this.$message.error("请先选择订单 !"); } }, - onSearch() { + initData() { this.pageNo = 1; this.getData(); },