Эх сурвалжийг харах

修改分页API规范变动

Michael Wang 4 жил өмнө
parent
commit
035f789c2f

+ 1 - 1
src/components/ActivitySelect.vue

@@ -59,7 +59,7 @@ export default {
         pageNumber: 1,
         pageSize: 30,
       });
-      this.optionList = res?.data.data.records.records;
+      this.optionList = res?.data.data.records;
     },
     select() {
       this.$emit("input", this.selected);

+ 1 - 1
src/components/CourseSelect.vue

@@ -59,7 +59,7 @@ export default {
         pageNumber: 1,
         pageSize: 30,
       });
-      this.optionList = res?.data.data.records.records;
+      this.optionList = res?.data.data.records;
     },
     select() {
       this.$emit("input", this.selected);

+ 1 - 1
src/components/ExamSelect.vue

@@ -55,7 +55,7 @@ export default {
         pageSize: 30,
       });
       // console.log(res.data);
-      this.optionList = res.data.data.records.records;
+      this.optionList = res.data.data.records;
     },
     select() {
       this.$emit("input", this.selected);

+ 1 - 1
src/components/InvigilatorSelect.vue

@@ -37,7 +37,7 @@ export default {
   async created() {
     const res = await searchUsers({ roleCode: "INVIGILATE", pageSize: 1000 });
     // console.log(res.data);
-    this.optionList = res.data.data.records.records;
+    this.optionList = res.data.data.records;
   },
   watch: {
     value: {

+ 2 - 2
src/features/examwork/ActivityManagement/ActivityManagement.vue

@@ -117,8 +117,8 @@ export default {
         pageNumber: this.currentPage,
         pageSize: this.pageSize,
       });
-      this.tableData = res.data.data.records.records;
-      this.total = res.data.data.records.total;
+      this.tableData = res.data.data.records;
+      this.total = res.data.data.total;
     },
     handleCurrentChange(val) {
       this.currentPage = val;

+ 2 - 2
src/features/examwork/CourseManagement/CourseManagement.vue

@@ -134,8 +134,8 @@ export default {
         pageNumber: this.currentPage,
         pageSize: this.pageSize,
       });
-      this.tableData = res.data.data.records.records;
-      this.total = res.data.data.records.total;
+      this.tableData = res.data.data.records;
+      this.total = res.data.data.total;
     },
     handleCurrentChange(val) {
       this.currentPage = val;

+ 1 - 1
src/features/examwork/CourseManagement/CoursePaperDialog.vue

@@ -125,7 +125,7 @@ export default {
         pageNumber: 1,
         pageSize: 1,
       });
-      this.refreshCourse = courseRes?.data.data.records.records[0];
+      this.refreshCourse = courseRes?.data.data.records[0];
 
       const res = await searchPapers({
         examId: this.refreshCourse.examId,

+ 2 - 2
src/features/examwork/ExamManagement/ExamManagement.vue

@@ -155,8 +155,8 @@ export default {
         pageNumber: this.currentPage,
         pageSize: this.pageSize,
       });
-      this.tableData = res.data.data.records.records;
-      this.total = res.data.data.records.total;
+      this.tableData = res.data.data.records;
+      this.total = res.data.data.total;
     },
     handleCurrentChange(val) {
       this.currentPage = val;

+ 2 - 2
src/features/examwork/ExamStudentImport/ExamStudentImport.vue

@@ -121,8 +121,8 @@ export default {
         pageNumber: this.currentPage,
         pageSize: this.pageSize,
       });
-      this.tableData = res.data.data.records.records;
-      this.total = res.data.data.records.total;
+      this.tableData = res.data.data.records;
+      this.total = res.data.data.total;
     },
     handleCurrentChange(val) {
       this.currentPage = val;

+ 2 - 2
src/features/examwork/ExamStudentManagement/ExamStudentManagement.vue

@@ -165,8 +165,8 @@ export default {
         pageNumber: this.currentPage,
         pageSize: this.pageSize,
       });
-      this.tableData = res.data.data.records.records;
-      this.total = res.data.data.records.total;
+      this.tableData = res.data.data.records;
+      this.total = res.data.data.total;
     },
     handleCurrentChange(val) {
       this.currentPage = val;

+ 2 - 2
src/features/examwork/ImportExportTask/ImportExportTask.vue

@@ -105,8 +105,8 @@ export default {
         pageNumber: this.currentPage,
         pageSize: this.pageSize,
       });
-      this.tableData = res.data.data.records.records;
-      this.total = res.data.data.records.total;
+      this.tableData = res.data.data.records;
+      this.total = res.data.data.total;
     },
     handleCurrentChange(val) {
       this.currentPage = val;

+ 2 - 2
src/features/examwork/InvigilateManagement/InvigilateManagement.vue

@@ -101,8 +101,8 @@ export default {
         pageNumber: this.currentPage,
         pageSize: this.pageSize,
       });
-      this.tableData = res.data.data.records.records;
-      this.total = res.data.data.records.total;
+      this.tableData = res.data.data.records;
+      this.total = res.data.data.total;
     },
     handleCurrentChange(val) {
       this.currentPage = val;

+ 2 - 2
src/features/examwork/StudentManagement/StudentManagement.vue

@@ -143,13 +143,13 @@ export default {
         pageNumber: this.currentPage,
         pageSize: this.pageSize,
       });
-      this.tableData = res.data.data.records.records;
+      this.tableData = res.data.data.records;
       // this.tableData.forEach(
       //   (v) =>
       //     (v.basePhotoPath =
       //       "https://ecs-test-static.qmth.com.cn/org_logo/0/1597046412749.png")
       // );
-      this.total = res.data.data.records.total;
+      this.total = res.data.data.total;
     },
     handleCurrentChange(val) {
       this.currentPage = val;

+ 2 - 2
src/features/examwork/StudentManagement/StudentManagementDialog.vue

@@ -111,8 +111,8 @@ export default {
         pageNumber: this.currentPage,
         pageSize: this.pageSize,
       });
-      this.tableData = res.data.data.records.records;
-      this.total = res.data.data.records.total;
+      this.tableData = res.data.data.records;
+      this.total = res.data.data.total;
     },
   },
 };

+ 1 - 1
src/features/system/OrgManagement/OrgManagement.vue

@@ -114,7 +114,7 @@ export default {
           pageNumber: this.currentPage,
           pageSize: this.pageSize,
         })
-      ).data.data.records.records;
+      ).data.data.records;
     },
     handleCurrentChange(val) {
       this.currentPage = val;

+ 2 - 2
src/features/system/UserManagement/UserManagement.vue

@@ -146,8 +146,8 @@ export default {
         pageNumber: this.currentPage,
         pageSize: this.pageSize,
       });
-      this.tableData = res.data.data.records.records;
-      this.total = res.data.data.records.total;
+      this.tableData = res.data.data.records;
+      this.total = res.data.data.total;
     },
     handleCurrentChange(val) {
       this.currentPage = val;