소스 검색

提交按钮的限制

gyj 2 년 전
부모
커밋
088ed7e30c
2개의 변경된 파일6개의 추가작업 그리고 2개의 파일을 삭제
  1. 1
    0
      package.json
  2. 5
    2
      src/views/caseManagement/components/mediation.vue

+ 1
- 0
package.json 파일 보기

@@ -48,6 +48,7 @@
48 48
     "js-beautify": "1.13.0",
49 49
     "js-cookie": "3.0.1",
50 50
     "jsencrypt": "3.0.0-rc.1",
51
+    "lodash": "^4.17.21",
51 52
     "moment": "^2.30.1",
52 53
     "nprogress": "0.2.0",
53 54
     "qrcodejs2": "0.0.2",

+ 5
- 2
src/views/caseManagement/components/mediation.vue 파일 보기

@@ -128,6 +128,7 @@
128 128
 </template>
129 129
 <!-- hearDate -->
130 130
 <script>
131
+import _ from 'lodash'
131 132
 import {
132 133
   caseApplicationSelectById,
133 134
   mediation,
@@ -274,6 +275,7 @@ export default {
274 275
           });
275 276
         });
276 277
       })
278
+      this.isSecretaryRole = false
277 279
     },
278 280
     /** 庭审笔录附件 */
279 281
     toFile2(annexPath) {
@@ -293,7 +295,8 @@ export default {
293 295
     cancel() {
294 296
       this.$emit("cancelMediation");
295 297
     },
296
-    submitMediation() {
298
+    
299
+    submitMediation: _.debounce(function() {
297 300
       if (this.fileList.length < 1 && !this.mediationType && this.mediationData.mediationMethod == "2") {
298 301
         this.$modal.msgError("请上传调解书");
299 302
         return
@@ -315,7 +318,7 @@ export default {
315 318
         }
316 319
       }
317 320
       this.mediationFn(mediationVal);
318
-    },
321
+    },5000),
319 322
     resultsMediation() {
320 323
 
321 324
     }