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);