Authored by lea guo

订单删除

@@ -94,6 +94,7 @@ export default { @@ -94,6 +94,7 @@ export default {
94 // store.dispatch("order/orderList/fetchOrderList", { owner, status }); 94 // store.dispatch("order/orderList/fetchOrderList", { owner, status });
95 }, 95 },
96 activated() { 96 activated() {
  97 + this.reset("inSaleOrderList");
97 this.fetchData(); 98 this.fetchData();
98 }, 99 },
99 methods: { 100 methods: {
@@ -93,8 +93,13 @@ export default { @@ -93,8 +93,13 @@ export default {
93 this.fetchData(); 93 this.fetchData();
94 }, 94 },
95 methods: { 95 methods: {
96 - ...mapActions(["fetchOrderList", "cancelTradeConfirmInfo", "cancelTrade"]),  
97 - ...mapMutations(["setOrderStatus"]), 96 + ...mapActions([
  97 + "fetchOrderList",
  98 + "cancelTradeConfirmInfo",
  99 + "cancelTrade",
  100 + "deleteOrder"
  101 + ]),
  102 + ...mapMutations(["setOrderStatus", "filterOrderList"]),
98 ...orderMapMutations(["reset"]), 103 ...orderMapMutations(["reset"]),
99 fetchMore() { 104 fetchMore() {
100 this.fetchOrderList(this.$route.params); 105 this.fetchOrderList(this.$route.params);
@@ -130,6 +135,9 @@ export default { @@ -130,6 +135,9 @@ export default {
130 orderCode, 135 orderCode,
131 owner 136 owner
132 }); 137 });
  138 + if (isOk) {
  139 + this.filterOrderList(orderCode);
  140 + }
133 const txt = isOk ? "删除成功" : "删除失败"; 141 const txt = isOk ? "删除成功" : "删除失败";
134 this.$createToast({ txt, type: "txt" }).show(); 142 this.$createToast({ txt, type: "txt" }).show();
135 } 143 }