增加订单搜索
This commit is contained in:
parent
1a1545c495
commit
6ef7608dbe
|
@ -9,6 +9,7 @@
|
|||
v-model="keywords"
|
||||
placeholder="输入订单编号/客户姓名/电话"
|
||||
placeholder-class="placeholder-style-3"
|
||||
@input="inputKeywords"
|
||||
/>
|
||||
</view>
|
||||
<view class="scroll-box">
|
||||
|
@ -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);
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
|
Loading…
Reference in New Issue