Browse Source

add:学时审核新需求

Tang 3 years ago
parent
commit
046a0377c3

+ 32 - 0
src/newApi/classTab.js

@@ -135,6 +135,22 @@ export default {
             params: data
         })
     },
+    //锁定学时审核页面
+    inquireGradegradelockPeriod(data) {
+        return request({
+            url: '/grade/grade/lockPeriod',
+            method: 'post',
+            data
+        })
+    },
+    //查看学时审核锁定状态
+    inquireGradegradelockPeriodStatus(data) {
+        return request({
+            url: '/grade/grade/lockPeriodStatus',
+            method: 'post',
+            data
+        })
+    },
     //学时审核獲得商品節下面的審核記錄
     inquireGradegradelistPeriodAuditStatus(data) {
         return request({
@@ -168,6 +184,22 @@ export default {
             data
         })
     },
+    //批量打回待审核状态
+    editGradeUsereditrollbackPeriod(data) {
+        return request({
+            url: '/grade/grade/rollbackPeriod',
+            method: 'post',
+            data
+        })
+    },
+    //学时通过确认
+    editGradeUsereditrollconfirmPeriod(data) {
+        return request({
+            url: '/grade/grade/confirmPeriod',
+            method: 'post',
+            data
+        })
+    },
     //批量官方信息推送
     editGradeUsereditpushInfo(data) {
         return request({

+ 21 - 8
src/views/education/classManageMent/classHours/index.vue

@@ -75,7 +75,7 @@
         <span
           style="font-size: 14px; margin: 0px 6px"
           v-if="statusShow.indexOf(2) !== -1"
-          >已推送:{{gfNum}}/{{total}}</span
+          >已推送:{{ gfNum }}/{{ total }}</span
         >
       </div>
     </div>
@@ -409,15 +409,28 @@ export default {
         // });
       } else {
         if (int === 2) {
-          //学员详情
-          this.$router.push({
-            path: "classHoursReview",
-            query: {
-              id: v.gradeId,
+          this.$api
+            .inquireGradegradelockPeriodStatus({
+              gradeId: v.gradeId,
               userId: v.userId,
               goodsId: v.goodsId,
-            },
-          });
+            })
+            .then((res) => {
+              if (res.msg) {
+                this.$message.warning(res.msg);
+                return;
+              } else {
+                //学员详情
+                this.$router.push({
+                  path: "classHoursReview",
+                  query: {
+                    id: v.gradeId,
+                    userId: v.userId,
+                    goodsId: v.goodsId,
+                  },
+                });
+              }
+            });
         }
         if (int === 3) {
           // 学员管理

File diff suppressed because it is too large
+ 551 - 187
src/views/education/classManageMent/classHoursReview/studyTimes.vue


+ 21 - 7
src/views/education/classManageMent/listOfhoursToBeReviewed/index.vue

@@ -102,7 +102,7 @@ export default {
           placeholder1: "班级有效期开始时间",
           placeholder2: "班级有效期结束时间",
           scope: "moreDataPicker",
-          Diszing:true
+          Diszing: true,
         },
         {
           prop: "searchKey",
@@ -239,14 +239,28 @@ export default {
   },
   methods: {
     jumpPage(v) {
-      this.$router.push({
-        path: "classHoursReview",
-        query: {
-          id: v.gradeId,
+      this.$api
+        .inquireGradegradelockPeriodStatus({
+          gradeId: v.gradeId,
           userId: v.userId,
           goodsId: v.goodsId,
-        },
-      });
+        })
+        .then((res) => {
+          if (res.msg) {
+            this.$message.warning(res.msg);
+            return;
+          } else {
+            //学员详情
+            this.$router.push({
+              path: "classHoursReview",
+              query: {
+                id: v.gradeId,
+                userId: v.userId,
+                goodsId: v.goodsId,
+              },
+            });
+          }
+        });
     },
     search(int) {
       this.loading = true;

Some files were not shown because too many files changed in this diff