resetParams
This commit is contained in:
parent
df4985250e
commit
e325d501b7
@ -104,7 +104,7 @@
|
||||
<div class="text-exp">
|
||||
<Row v-if="counts">
|
||||
<a @click="sort" class="umar-r10">
|
||||
<b>已选 {{counts}} / {{filterTotal}} 张</b>
|
||||
<b>已选 {{counts}} 张</b>
|
||||
</a>
|
||||
<a @click="clearSelect">
|
||||
<b>清空</b>
|
||||
|
@ -408,18 +408,15 @@ export default {
|
||||
this.clear();
|
||||
this.close();
|
||||
},
|
||||
resetSearch() {
|
||||
resetParams() {
|
||||
for (let k in this.params) {
|
||||
if (k === 'time') {
|
||||
this.params[k] = [
|
||||
this.moment().subtract('2', 'months').startOf('month').format('YYYY-MM-DD'),
|
||||
this.moment().subtract('2', 'months').endOf('month').format('YYYY-MM-DD')
|
||||
];
|
||||
} else {
|
||||
if (k !== 'time') {
|
||||
this.params[k] = '';
|
||||
}
|
||||
}
|
||||
|
||||
},
|
||||
resetSearch() {
|
||||
this.resetParams();
|
||||
this.$store.dispatch('initOrder');
|
||||
this.index(1);
|
||||
},
|
||||
@ -558,7 +555,7 @@ export default {
|
||||
});
|
||||
|
||||
this.$store.commit('SET_REAL_ORDERS', orders);
|
||||
|
||||
this.resetParams();
|
||||
this.changePage(1);
|
||||
},
|
||||
sortOrders(sortBy = 'times') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user