|
@@ -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>
|