Browse Source

上下一个只取当前页

zhangjie 1 năm trước cách đây
mục cha
commit
765a63df46

+ 9 - 9
src/features/invigilation/InvigilationDetail/InvigilationDetail.vue

@@ -369,15 +369,15 @@ export default {
       this.current = 1;
       await this.getList();
 
-      if (this.total > this.size) {
-        this.updateDetailIds({
-          filterData: this.filter,
-          fetchFunc: invigilationHistoryList,
-        });
-      } else {
-        const ids = this.dataList.map((item) => item.examRecordId);
-        this.setDetailIds([...new Set(ids)]);
-      }
+      // if (this.total > this.size) {
+      //   this.updateDetailIds({
+      //     filterData: this.filter,
+      //     fetchFunc: invigilationHistoryList,
+      //   });
+      // } else {
+      const ids = this.dataList.map((item) => item.examRecordId);
+      this.setDetailIds([...new Set(ids)]);
+      // }
     },
     async toExport() {
       this.isDownload = true;

+ 9 - 9
src/features/invigilation/OnlinePatrol/OnlinePatrol.vue

@@ -353,15 +353,15 @@ export default {
 
       this.getPatrolReportList();
 
-      if (this.total > this.size) {
-        this.updateDetailIds({
-          filterData: this.filter,
-          fetchFunc: patrolList,
-        });
-      } else {
-        const ids = this.dataList.map((item) => item.examRecordId);
-        this.setDetailIds([...new Set(ids)]);
-      }
+      // if (this.total > this.size) {
+      //   this.updateDetailIds({
+      //     filterData: this.filter,
+      //     fetchFunc: patrolList,
+      //   });
+      // } else {
+      const ids = this.dataList.map((item) => item.examRecordId);
+      this.setDetailIds([...new Set(ids)]);
+      // }
     },
     async getExamBatchList() {
       const res = await examBatchList({});

+ 9 - 9
src/features/invigilation/OnlinePatrol/PatrolExamDetail.vue

@@ -442,15 +442,15 @@ export default {
       this.current = 1;
       await this.getList();
 
-      if (this.total > this.size) {
-        this.updateDetailIds({
-          filterData: this.filter,
-          fetchFunc: invigilateVideoList,
-        });
-      } else {
-        const ids = this.dataList.map((item) => item.examRecordId);
-        this.setDetailIds([...new Set(ids)]);
-      }
+      // if (this.total > this.size) {
+      //   this.updateDetailIds({
+      //     filterData: this.filter,
+      //     fetchFunc: invigilateVideoList,
+      //   });
+      // } else {
+      const ids = this.dataList.map((item) => item.examRecordId);
+      this.setDetailIds([...new Set(ids)]);
+      // }
     },
     toDetail(row) {
       this.$router.push({

+ 9 - 9
src/features/invigilation/RealtimeMonitoring/RealtimeMonitoringFull.vue

@@ -226,15 +226,15 @@ export default {
         return item;
       });
       this.total = res.data.data.total;
-      if (this.total > this.filter.pageSize) {
-        this.updateDetailIds({
-          filterData: this.filter,
-          fetchFunc: invigilateVideoList,
-        });
-      } else {
-        const ids = this.dataList.map((item) => item.examRecordId);
-        this.setDetailIds([...new Set(ids)]);
-      }
+      // if (this.total > this.filter.pageSize) {
+      //   this.updateDetailIds({
+      //     filterData: this.filter,
+      //     fetchFunc: invigilateVideoList,
+      //   });
+      // } else {
+      const ids = this.dataList.map((item) => item.examRecordId);
+      this.setDetailIds([...new Set(ids)]);
+      // }
     },
 
     onOperation({ type, data }) {

+ 9 - 9
src/features/invigilation/WarningManage/WarningManage.vue

@@ -334,15 +334,15 @@ export default {
       this.setSelectedExamId(this.filter.examId);
       this.current = 1;
       await this.getList();
-      if (this.total > this.size) {
-        this.updateDetailIds({
-          filterData: this.filter,
-          fetchFunc: invigilationWarningList,
-        });
-      } else {
-        const ids = this.dataList.map((item) => item.examRecordId);
-        this.setDetailIds([...new Set(ids)]);
-      }
+      // if (this.total > this.size) {
+      //   this.updateDetailIds({
+      //     filterData: this.filter,
+      //     fetchFunc: invigilationWarningList,
+      //   });
+      // } else {
+      const ids = this.dataList.map((item) => item.examRecordId);
+      this.setDetailIds([...new Set(ids)]);
+      // }
     },
     async getExamBatchList() {
       const userId = this.IS_INVIGILATE ? this.user.id : null;