소스 검색

Merge branch 'online' into LAO_MO

mo 5 년 전
부모
커밋
6b4f8a080c
3개의 변경된 파일19개의 추가작업 그리고 14개의 파일을 삭제
  1. 0 0
      dist/index.html
  2. 0 0
      dist/static/js/chunk-6b55c86a.8673eb61.js
  3. 19 14
      src/views/vipClass/vipDetail/components/vipStudentList.vue

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
dist/index.html


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
dist/static/js/chunk-6b55c86a.8673eb61.js


+ 19 - 14
src/views/vipClass/vipDetail/components/vipStudentList.vue

@@ -368,21 +368,26 @@ export default {
         type: 'warning'
       }).then(() => {
         let id = scope.row.id;
-        getStudentSurplusCourseFee({ studentId: id, vipGroupId: this.id }).then(res => {
-          if (res.code == 200) {
-            // scope.row.fee =
-            this.$prompt('请输入退课金额', '提示', {
-              confirmButtonText: '确定',
-              cancelButtonText: '取消',
-              inputValue: res.data.suplusCourseFee
-            }).then(({ value }) => {
-              scope.row.fee = value;
-              this.leaveSchool(scope);
-            }).catch(res => {
+        if (scope.row.studentStatus == 3) {
+          this.leaveSchool(scope);
+        } else {
+          getStudentSurplusCourseFee({ studentId: id, vipGroupId: this.id }).then(res => {
+            if (res.code == 200) {
+              // scope.row.fee =
+              this.$prompt('请输入退课金额', '提示', {
+                confirmButtonText: '确定',
+                cancelButtonText: '取消',
+                inputValue: res.data.suplusCourseFee
+              }).then(({ value }) => {
+                scope.row.fee = value;
+                this.leaveSchool(scope);
+              }).catch(res => {
+
+              })
+            }
+          })
+        }
 
-            })
-          }
-        })
       }).catch(() => { })
 
     },

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.