Selaa lähdekoodia

取消订单loading

DELL 3 vuotta sitten
vanhempi
commit
c523725b9a
1 muutettua tiedostoa jossa 7 lisäystä ja 1 poistoa
  1. 7 1
      src/views/order/channel/index.vue

+ 7 - 1
src/views/order/channel/index.vue

@@ -405,18 +405,24 @@ export default {
         cancelButtonText: '取消',
         type: 'warning'
       }).then(() => {
+        this.vloading = this.$loading({
+          lock: true,
+          text: "正在取消订单.....",
+          background: "rgba(0, 0, 0, 0.7)",
+        });
         let data = {
           orderId:row.orderId
         }
         return  removeChannelOrder(data)
       }).then(()=>{
+        this.vloading.close();
         this.getList()
         this.$message({
           type: 'success',
           message: '取消订单成功!'
         })
       }).catch(() => {
-
+        this.vloading.close();
       });
     },