浏览代码

fiex:考试次数前培次数更改

Tang 3 年之前
父节点
当前提交
c4258cd096
共有 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>{{
             <span>{{
               activeInfoType === 1
               activeInfoType === 1
-                ? infoData.examNumber
+                ? infoData.examNumber - infoData.examNumberAll
                 : activeInfoType === 2
                 : activeInfoType === 2
-                ? infoData.doNumber
+                ? infoData.doNumber - infoData.doNumberAll
                 : ""
                 : ""
             }}</span>
             }}</span>
           </el-form-item>
           </el-form-item>
@@ -752,6 +752,14 @@ export default {
         })
         })
         .then((res) => {
         .then((res) => {
           this.infoData = JSON.parse(JSON.stringify(res.data));
           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;
           this.dialoginfoWatch = true;
         });
         });
     },
     },