瀏覽代碼

学时审核跳转列表

谢杰标 2 年之前
父節點
當前提交
49c970b235

+ 9 - 1
src/views/education/classManageMent/classHoursReview/component/LessonTable.vue

@@ -175,7 +175,7 @@ export default {
       },
     },
   },
-  inject: ["getPeriodStatus", "getUserInfo"],
+  inject: ["getPeriodStatus", "getUserInfo", "getAllIds"],
   data() {
     return {
       tableSet: [
@@ -280,6 +280,11 @@ export default {
         .then((res) => {
           this.$message.success("修改成功");
           this.vidBoxHours = false;
+          if (this.allIds.length == 1) {
+            this.$router.push({
+              name: "ListOfhoursToBeReviewed",
+            });
+          }
           this.getUserInfo(true);
         })
         .finally(() => {
@@ -334,6 +339,9 @@ export default {
     periodStatus() {
       return this.getPeriodStatus();
     },
+    allIds() {
+      return this.getAllIds();
+    },
   },
   components: {
     CheatDialog,

+ 10 - 0
src/views/education/classManageMent/classHoursReview/component/StudyTables.vue

@@ -209,6 +209,7 @@ export default {
     return {
       getPeriodStatus: () => this.periodStatus,
       getUserInfo: this.getUserInfo,
+      getAllIds: () => this.allIds,
     };
   },
   data() {
@@ -336,6 +337,7 @@ export default {
           if (int === 1) {
             this.$message.success("状态全部通过修改成功");
             this.through = false;
+            this.checkAll && this.goReview();
           }
           if (int === 2) {
             this.$message.success("状态全部作弊修改成功");
@@ -385,6 +387,7 @@ export default {
           this.getUserInfo(true);
           this.$message.success("已打回待审核状态");
           this.popback = false;
+          this.goReview();
         })
         .catch(() => {
           this.disabledBtn = false;
@@ -404,6 +407,7 @@ export default {
           this.getUserInfo(true);
           this.$message.success("审核通过");
           this.approvedOK = false;
+          this.goReview();
         })
         .catch(() => {
           this.disabledBtn = false;
@@ -430,6 +434,11 @@ export default {
           });
         });
     },
+    goReview() {
+      this.$router.push({
+        name: "ListOfhoursToBeReviewed",
+      });
+    },
   },
 
   created() {
@@ -444,6 +453,7 @@ export default {
   watch: {
     tablesData: {
       handler() {
+        this.allIds = [];
         for (const key in this.tablesData) {
           this.getAllId(this.tablesData[key]);
         }