...
|
...
|
@@ -62,18 +62,24 @@ export default { |
|
|
// store.dispatch("order/orderList/fetchOrderList", { owner, status });
|
|
|
},
|
|
|
mounted() {
|
|
|
const { params } = this.$route;
|
|
|
const { status } = params;
|
|
|
if (status) {
|
|
|
this.setOrderStatus(status);
|
|
|
}
|
|
|
this.fetchOrderList(params);
|
|
|
this.fetchData();
|
|
|
},
|
|
|
activated() {
|
|
|
this.fetchData();
|
|
|
},
|
|
|
methods: {
|
|
|
...mapActions(["fetchOrderList"]),
|
|
|
...mapMutations(["setOrderStatus"]),
|
|
|
fetchMore() {
|
|
|
this.fetchOrderList(this.$route.params);
|
|
|
},
|
|
|
fetchData() {
|
|
|
const { params } = this.$route;
|
|
|
const { status } = params;
|
|
|
if (status) {
|
|
|
this.setOrderStatus(status);
|
|
|
}
|
|
|
this.fetchOrderList(params);
|
|
|
}
|
|
|
},
|
|
|
watch: {
|
...
|
...
|
|