فهرست منبع

退团修复

1
mo 4 سال پیش
والد
کامیت
8e77928703

+ 22 - 4
src/views/studentManager/memberList.vue

@@ -281,8 +281,8 @@ export default {
         .then((val) => {
           // 发请求 退团
           StudentQuit({
-            musicGroupId: this.id,
-            userId: row.studentId,
+            musicGroupId: row.musicGroupId,
+            userId: row.userId,
             reason: val.value,
             isRefundCourseFee: false,
             isRefundInstrumentFee: false,
@@ -319,8 +319,8 @@ export default {
             .then(() => {
               let row = this.activeRow;
               let params = {
-                musicGroupId: this.id,
-                userId: row.studentId,
+                musicGroupId: row.musicGroupId,
+                userId: row.userId,
                 reason: this.quitForm.reason,
                 isRefundCourseFee: this.quitForm.isRefundCourseFee,
                 isRefundInstrumentFee: this.quitForm.isRefundInstrumentFee,
@@ -366,6 +366,24 @@ export default {
       this.activeRow = row;
     },
   },
+  watch:{
+        quitVisible(val) {
+      if (!val) {
+        this.quitForm = {
+          // 退团信息确认
+          isRefundCourseFee: null,
+          isRefundInstrumentFee: null,
+          isRefundTeachingAssistantsFee: null,
+          isMaintenanceFee: null,
+          cloudTeacherAmount: null,
+          isCloudTeacherAmount: null,
+          maintenanceFee: 0,
+          reason: "",
+        };
+        this.$refs["quitForm"].$refs["quitForm"].resetFields();
+      }
+    },
+  }
 };
 </script>
 <style lang='scss' scoped>

+ 1 - 1
src/views/teamBuild/signupList.vue

@@ -1847,7 +1847,7 @@ export default {
           maintenanceFee: 0,
           reason: "",
         };
-        this.$refs["quitForm"].resetFields();
+        this.$refs["quitForm"].$refs["quitForm"].resetFields();
       }
     },
 

+ 2 - 1
src/views/teamDetail/components/modals/quite-team.vue

@@ -6,10 +6,11 @@
       label-width="150px"
       :rules="quitRules"
     >
+    <!-- v-if="activeRow.cloudTeacherAmount > 0" -->
       <el-form-item
         label="退还云教练费用"
         prop="isCloudTeacherAmount"
-        v-if="activeRow.cloudTeacherAmount > 0"
+
       >
         <el-radio v-model.trim="quitForm.isCloudTeacherAmount" :label="true"
           >是</el-radio

+ 1 - 1
src/views/teamDetail/components/studentList.vue

@@ -1684,7 +1684,7 @@ export default {
           isRefundTeachingAssistantsFee: null,
           reason: "",
         };
-        this.$refs["quitForm"].resetFields();
+        this.$refs["quitForm"].$refs["quitForm"].resetFields();
       }
     },
     // visitVisiable(val) {