diff --git a/frontend/src/views/virtual/orders/cards.vue b/frontend/src/views/virtual/orders/cards.vue
index a5e0571b..3e100058 100644
--- a/frontend/src/views/virtual/orders/cards.vue
+++ b/frontend/src/views/virtual/orders/cards.vue
@@ -104,7 +104,7 @@
- 已选 {{counts}} / {{filterTotal}} 张
+ 已选 {{counts}} 张
清空
diff --git a/frontend/src/views/virtual/orders/js/cards.js b/frontend/src/views/virtual/orders/js/cards.js
index e8d8da25..4ecdd4d9 100644
--- a/frontend/src/views/virtual/orders/js/cards.js
+++ b/frontend/src/views/virtual/orders/js/cards.js
@@ -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') {