shish hace 2 años
padre
commit
43ae283fa1
Se han modificado 1 ficheros con 18 adiciones y 14 borrados
  1. 18 14
      ghsApp/src/pagesClient/member/detail.vue

+ 18 - 14
ghsApp/src/pagesClient/member/detail.vue

@@ -249,24 +249,28 @@ export default {
         return false
         return false
       }
       }
       let that = this
       let that = this
-      modifySeatSnFn({id:this.option.id,seatSn:this.userInfo.seatSn}).then(res=>{
-        if(res.code == 1){
-          that.$msg(res.msg)
-          setTimeout(function(){
-            that.getUserDetail()
-          },1000)
-        }
+      this.$util.confirmModal({content:'确认修改?'},() => {
+        modifySeatSnFn({id:this.option.id,seatSn:this.userInfo.seatSn}).then(res=>{
+          if(res.code == 1){
+            that.$msg(res.msg)
+            setTimeout(function(){
+              that.getUserDetail()
+            },1000)
+          }
+        })
       })
       })
     },
     },
     createSeatSn(){
     createSeatSn(){
       let that = this
       let that = this
-      createSeatSnFn({id:this.option.id}).then(res=>{
-        if(res.code == 1){
-          that.$msg(res.msg)
-          setTimeout(function(){
-            that.getUserDetail()
-          },1000)
-        }
+      this.$util.confirmModal({content:'确认生成?'},() => {
+        createSeatSnFn({id:this.option.id}).then(res=>{
+          if(res.code == 1){
+            that.$msg(res.msg)
+            setTimeout(function(){
+              that.getUserDetail()
+            },1000)
+          }
+        })
       })
       })
     },
     },
     changeWlFn() {
     changeWlFn() {