Browse Source

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

duanxiaoduan 1 year ago
parent
commit
ddfea2da3b
2 changed files with 9 additions and 2 deletions
  1. 0 0
      dist/index.html
  2. 9 2
      src/views/cost/diesel/index.vue

File diff suppressed because it is too large
+ 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
           })
         }
       })

Some files were not shown because too many files changed in this diff