Selaa lähdekoodia

06/04 17:41

vip 新增休学状态直接退学
mo 5 vuotta sitten
vanhempi
commit
0e61799748

Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
dist/index.html


Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 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(() => { })
 
     },

Kaikkia tiedostoja ei voida näyttää, sillä liian monta tiedostoa muuttui tässä diffissä