From 6ef7608dbe5ef40e3be7f382a241934f6c1aa361 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?TOP=E7=B3=AF=E7=B1=B3?= <1130395124@qq.com> Date: Sun, 19 Mar 2023 14:06:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=AE=A2=E5=8D=95=E6=90=9C?= =?UTF-8?q?=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/order/order.vue | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/pages/order/order.vue b/src/pages/order/order.vue index 068fc18..99da681 100644 --- a/src/pages/order/order.vue +++ b/src/pages/order/order.vue @@ -9,6 +9,7 @@ v-model="keywords" placeholder="输入订单编号/客户姓名/电话" placeholder-class="placeholder-style-3" + @input="inputKeywords" /> @@ -94,6 +95,7 @@ export default { }, ], currentId: 0, + keywordsTimer: null, keywords: "", }; }, @@ -179,6 +181,7 @@ export default { data: { page: currentTab.page, status: currentTab.status, + key: this.keywords, }, }, listType: currentTab.listType, @@ -203,6 +206,12 @@ export default { refresh() { this.switchTab(this.tabIndex); }, + inputKeywords(e) { + clearTimeout(this.keywordsTimer); + this.keywordsTimer = setTimeout(() => { + this.loadData(); + }, 1000); + }, }, };