zhangjie 1 éve
szülő
commit
6fb86a1cf9

+ 2 - 2
src/api/invigilation.js

@@ -168,8 +168,8 @@ export function examActivityRoomList(examId) {
   );
 }
 // 考试属性统计接口
-export function examPropCount(examId, examActivityId = null) {
-  const data = pickBy({ examId, examActivityId }, paramFilter);
+export function examPropCount({ examId, examActivityId, freshen }) {
+  const data = pickBy({ examId, examActivityId, freshen }, paramFilter);
   return httpApp.post(
     "/api/admin/exam/prop/count?" + object2QueryString(data),
     {}

+ 5 - 3
src/features/invigilation/common/mixins/summaryLineMixin.js

@@ -100,9 +100,11 @@ export default {
   methods: {
     async initData() {
       if (!this.examId) return;
-      const res = await examPropCount(this.examId, this.examActivityId).catch(
-        () => {}
-      );
+      const res = await examPropCount({
+        examId: this.examId,
+        examActivityId: this.examActivityId,
+        freshen: true,
+      }).catch(() => {});
       this.examPropData = (res && res.data && res.data.data) || {};
       if (this.examPropData["completionRate"])
         this.examPropData["completionRate"] = Math.round(