增加订单搜索
This commit is contained in:
parent
1a1545c495
commit
6ef7608dbe
|
@ -9,6 +9,7 @@
|
||||||
v-model="keywords"
|
v-model="keywords"
|
||||||
placeholder="输入订单编号/客户姓名/电话"
|
placeholder="输入订单编号/客户姓名/电话"
|
||||||
placeholder-class="placeholder-style-3"
|
placeholder-class="placeholder-style-3"
|
||||||
|
@input="inputKeywords"
|
||||||
/>
|
/>
|
||||||
</view>
|
</view>
|
||||||
<view class="scroll-box">
|
<view class="scroll-box">
|
||||||
|
@ -94,6 +95,7 @@ export default {
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
currentId: 0,
|
currentId: 0,
|
||||||
|
keywordsTimer: null,
|
||||||
keywords: "",
|
keywords: "",
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
@ -179,6 +181,7 @@ export default {
|
||||||
data: {
|
data: {
|
||||||
page: currentTab.page,
|
page: currentTab.page,
|
||||||
status: currentTab.status,
|
status: currentTab.status,
|
||||||
|
key: this.keywords,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
listType: currentTab.listType,
|
listType: currentTab.listType,
|
||||||
|
@ -203,6 +206,12 @@ export default {
|
||||||
refresh() {
|
refresh() {
|
||||||
this.switchTab(this.tabIndex);
|
this.switchTab(this.tabIndex);
|
||||||
},
|
},
|
||||||
|
inputKeywords(e) {
|
||||||
|
clearTimeout(this.keywordsTimer);
|
||||||
|
this.keywordsTimer = setTimeout(() => {
|
||||||
|
this.loadData();
|
||||||
|
}, 1000);
|
||||||
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue