deason преди 2 години
родител
ревизия
9959ecc173
променени са 1 файла, в които са добавени 8 реда и са изтрити 1 реда
  1. 8 1
      src/modules/oe/component/ExamRecordDetail.vue

+ 8 - 1
src/modules/oe/component/ExamRecordDetail.vue

@@ -25,6 +25,7 @@
               size="small"
               type="success"
               icon="el-icon-check"
+              :disabled="needDisable"
               round
               @click="auditExamRecordData(true)"
               >通过</el-button
@@ -33,6 +34,7 @@
               size="small"
               type="danger"
               icon="el-icon-close"
+              :disabled="needDisable"
               round
               @click="auditExamRecordData(false)"
               >不通过</el-button
@@ -258,15 +260,20 @@ export default {
   },
   methods: {
     changeExamRecordData(isNext) {
+      this.needDisable = true;
       this.$emit("changeExamRecordData", isNext);
 
-      this.needDisable = true;
       setTimeout(() => {
         this.needDisable = false;
       }, 1000);
     },
     auditExamRecordData(isPass) {
+      this.needDisable = true;
       this.$emit("auditExamRecordData", isPass);
+
+      setTimeout(() => {
+        this.needDisable = false;
+      }, 1000);
     },
     initDetail() {
       console.log("initDetail... examRecordDataId:" + this.examRecordDataId);