Ver Fonte

柴油用量新增保存禁止连点时间延长

duanxiaoduan há 1 ano atrás
pai
commit
ddfea2da3b
2 ficheiros alterados com 9 adições e 2 exclusões
  1. 0 0
      dist/index.html
  2. 9 2
      src/views/cost/diesel/index.vue

Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/index.html


+ 9 - 2
src/views/cost/diesel/index.vue

@@ -915,7 +915,7 @@ export default {
       this.isokDisable = true
       setTimeout(() => {
         this.isokDisable = false
-      }, 1000)
+      }, 10000)
       this.$refs['temp'].validate(valid => {
         if (valid) {
           if(this.temp.oilType){
@@ -965,6 +965,7 @@ export default {
                 duration: 2000
               })
             }
+            this.isokDisable = false
           })
         }
       })
@@ -974,7 +975,7 @@ export default {
       this.isokDisable = true
       setTimeout(() => {
         this.isokDisable = false
-      }, 1000)
+      }, 10000)
 
       this.$refs['temp'].validate(valid => {
         if (valid) {
@@ -1026,6 +1027,7 @@ export default {
                 duration: 2000
               })
             }
+            this.isokDisable = false
           })
         }
       })
@@ -1042,6 +1044,10 @@ export default {
 
     // 修改加油信息
     edit_dialog_save() {
+      this.isokDisable = true
+      setTimeout(() => {
+        this.isokDisable = false
+      }, 10000)
       this.$refs['temp'].validate(valid => {
         if (valid) {
           if(this.temp.oilType){
@@ -1084,6 +1090,7 @@ export default {
                 duration: 2000
               })
             }
+            this.isokDisable = false
           })
         }
       })

Alguns ficheiros não foram mostrados porque muitos ficheiros mudaram neste diff