Authored by lea guo

订单列表

... ... @@ -79,6 +79,9 @@ export default {
});
}
},
activated() {
this.fetchData();
},
methods: {
...mapActions(["fetchEntryOrderList", "fetchNotEntryOrderList"]),
fetchData() {
... ...
... ... @@ -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: {
... ...