Jelajahi Sumber

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

duanxiaoduan 1 tahun lalu
induk
melakukan
ddfea2da3b
2 mengubah file dengan 9 tambahan dan 2 penghapusan
  1. 0 0
      dist/index.html
  2. 9 2
      src/views/cost/diesel/index.vue

File diff ditekan karena terlalu besar
+ 0 - 0
dist/index.html


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

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

Beberapa file tidak ditampilkan karena terlalu banyak file yang berubah dalam diff ini