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