소스 검색

Merge branch 'fouradd' of http://120.79.166.78:19005/zhongzheng-edu/saas_entrepot_admin into fiveadd

Tang 3 년 전
부모
커밋
538488e6fa
1개의 변경된 파일10개의 추가작업 그리고 2개의 파일을 삭제
  1. 10 2
      src/views/education/examManagement/applicationData/byTrainee.vue

+ 10 - 2
src/views/education/examManagement/applicationData/byTrainee.vue

@@ -379,9 +379,9 @@
           >
             <span>{{
               activeInfoType === 1
-                ? infoData.examNumber
+                ? infoData.examNumber - infoData.examNumberAll
                 : activeInfoType === 2
-                ? infoData.doNumber
+                ? infoData.doNumber - infoData.doNumberAll
                 : ""
             }}</span>
           </el-form-item>
@@ -752,6 +752,14 @@ export default {
         })
         .then((res) => {
           this.infoData = JSON.parse(JSON.stringify(res.data));
+          this.infoData.doNumberAll = 0;
+          this.infoData.examNumberAll = 0;
+          this.infoData.userExamGoodsSupplement.forEach((item) => {
+            this.infoData.examNumberAll += item.examNumber;
+          });
+          this.infoData.userExamGoodsSupplementVos.forEach((item) => {
+            this.infoData.doNumberAll += item.doNumber;
+          });
           this.dialoginfoWatch = true;
         });
     },