瀏覽代碼

1226 17:02

111
mo 5 年之前
父節點
當前提交
3c6eacd7dd

File diff suppressed because it is too large
+ 0 - 0
dist/index.html


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-43ec19ef.3c117d03.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-b1e176fc.776f0bad.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-b1e176fc.8b4cbea6.js


+ 7 - 3
src/views/teamDetail/components/studentSignin.vue

@@ -13,9 +13,9 @@
                :model="searchForm">
         <el-form-item label='开课时间'>
           <el-date-picker v-model="searchForm.times"
-                          type="datetimerange"
-                          value-format="yyyy-MM-dd HH:mm:ss"
-                          format="yyyy-MM-dd HH:mm:ss"
+                          type="daterange"
+                          value-format="yyyy-MM-dd"
+                          format="yyyy-MM-dd"
                           range-separator="至"
                           start-placeholder="开始日期"
                           end-placeholder="结束日期">
@@ -147,7 +147,11 @@ export default {
         this.searchForm.times = []
       }
       let startTime = this.searchForm.times[0] || null
+      if (startTime) startTime += ' 00:00:00'
+
       let endTime = this.searchForm.times[1] || null
+      if (endTime) endTime += ' 23:59:59'
+
       let courseScheduleName = this.searchForm.courseName || null
       let userName = this.searchForm.studentName || null
       let signStatus = this.searchForm.sign || null

+ 27 - 4
src/views/vipClass/vipDetail/components/vipStudentList.vue

@@ -418,10 +418,33 @@ export default {
     recoveryCourse (scope) {
       getStudentPauseInfo({ studentId: scope.row.id, vipGroupId: this.id }).then(res => {
         if (res.code == 200) {
-          this.activeStudent = res.data.studentId
-          this.adjustmentVisible = true;
-          this.adjustmentForm.teacher = res.data.teacherId;
-          this.adjustmentForm.count = `${res.data.totalCourseTimes}+${res.data.giveCourseTimes}`
+
+          if (res.data.isPause == 0) {
+            // vip状态没暂停 不需要排课
+            // 课程编号  学生编号
+            this.$confirm('将按照当前剩余课时安排上课', '提示', {
+              confirmButtonText: '确定',
+              cancelButtonText: '取消',
+              type: 'warning'
+            }).then(() => {
+              // 发请求 恢复上课
+              recoverForStudent({ vipGroupId: this.id, userId: scope.row.id }).then(res => {
+                if (res.code == 200) {
+                  this.adjustmentVisible = false;
+                  this.getStudents()
+                }
+              })
+
+            }).catch(() => {
+            });
+
+          } else {
+            this.activeStudent = res.data.studentId
+            this.adjustmentVisible = true;
+            this.adjustmentForm.teacher = res.data.teacherId;
+            this.adjustmentForm.count = `${res.data.totalCourseTimes}+${res.data.giveCourseTimes}`
+          }
+
         }
       })
 

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