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); + }, }, };