|
@@ -5,7 +5,7 @@
|
|
type="info" :closable='false'>
|
|
type="info" :closable='false'>
|
|
</el-alert>
|
|
</el-alert>
|
|
<el-form :model='courseTimeForm' ref='courseTimeForms' :inline='true' style="margin-top:20px;">
|
|
<el-form :model='courseTimeForm' ref='courseTimeForms' :inline='true' style="margin-top:20px;">
|
|
- <el-form-item v-for="(item,index) in courseTimeForm.timeList" :key="index" :label="item.label"
|
|
|
|
|
|
+ <el-form-item v-for="(item,index) in courseTimeForm.timeList" :key="index" :label="item.label"
|
|
:prop="'timeList.' + index + '.value'" :rules="[{required: true, message: '请选择课程时长', trigger: 'blur'}]" label-width="100px">
|
|
:prop="'timeList.' + index + '.value'" :rules="[{required: true, message: '请选择课程时长', trigger: 'blur'}]" label-width="100px">
|
|
<el-select clearable v-model="item.value" placeholder="请选择课程时长" @change="(val)=>setCourseTime(item,val)">
|
|
<el-select clearable v-model="item.value" placeholder="请选择课程时长" @change="(val)=>setCourseTime(item,val)">
|
|
<el-option v-for="(time,index) in item.list" :key='index' :value='time' :label="time"></el-option>
|
|
<el-option v-for="(time,index) in item.list" :key='index' :value='time' :label="time"></el-option>
|
|
@@ -15,7 +15,7 @@
|
|
<classPayListItem
|
|
<classPayListItem
|
|
:payInfo="payInfo"
|
|
:payInfo="payInfo"
|
|
ref="base"
|
|
ref="base"
|
|
- :courseTypesByType="courseTypesByType"
|
|
|
|
|
|
+ :courseTypesByType="courseTypesByType"
|
|
v-for="(item, index) in form.classList"
|
|
v-for="(item, index) in form.classList"
|
|
:key="index"
|
|
:key="index"
|
|
:item="item"
|
|
:item="item"
|
|
@@ -37,11 +37,9 @@
|
|
ref="classSetting"
|
|
ref="classSetting"
|
|
:musicGroupPaymentCalenderDtos="musicGroupPaymentCalenderDtos"
|
|
:musicGroupPaymentCalenderDtos="musicGroupPaymentCalenderDtos"
|
|
:classType="5"
|
|
:classType="5"
|
|
- :teacherList="selects.teachers"
|
|
|
|
:musicGroupId="teamid"
|
|
:musicGroupId="teamid"
|
|
:activeType="activeType"
|
|
:activeType="activeType"
|
|
:courseTypeList="courseTypeList"
|
|
:courseTypeList="courseTypeList"
|
|
- :cooperationList="selects.teachers"
|
|
|
|
:studentSubmitedData="studentSubmitedData"
|
|
:studentSubmitedData="studentSubmitedData"
|
|
:classIdList="classIdList"
|
|
:classIdList="classIdList"
|
|
:classGroupStudents="classGroupStudents"
|
|
:classGroupStudents="classGroupStudents"
|
|
@@ -55,7 +53,7 @@
|
|
<el-button @click="showLastVisable = false">上一步</el-button>
|
|
<el-button @click="showLastVisable = false">上一步</el-button>
|
|
<el-button type="primary" @click="submitResetClass">确 定</el-button>
|
|
<el-button type="primary" @click="submitResetClass">确 定</el-button>
|
|
</div>
|
|
</div>
|
|
-
|
|
|
|
|
|
+
|
|
</el-dialog>
|
|
</el-dialog>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
@@ -97,25 +95,25 @@ export default {
|
|
// 1.查询该分部下得所有课程时长
|
|
// 1.查询该分部下得所有课程时长
|
|
// 2.组成select需要得选项并且指定
|
|
// 2.组成select需要得选项并且指定
|
|
|
|
|
|
-
|
|
|
|
|
|
+
|
|
this.teamid = this.$route.query.id;
|
|
this.teamid = this.$route.query.id;
|
|
MusicStore.dispatch('getBaseInfo', {
|
|
MusicStore.dispatch('getBaseInfo', {
|
|
data: { musicGroupId: this.teamid }
|
|
data: { musicGroupId: this.teamid }
|
|
}).then(async (res) => {
|
|
}).then(async (res) => {
|
|
this.organId =res.data.musicGroup.organId
|
|
this.organId =res.data.musicGroup.organId
|
|
-
|
|
|
|
|
|
+
|
|
try{
|
|
try{
|
|
const res = await getOrganCourseDurationSettings({organId:this.organId})
|
|
const res = await getOrganCourseDurationSettings({organId:this.organId})
|
|
this.organCourseTime = res.data;
|
|
this.organCourseTime = res.data;
|
|
-
|
|
|
|
|
|
+
|
|
this.setTimeList(res.data)
|
|
this.setTimeList(res.data)
|
|
-
|
|
|
|
|
|
+
|
|
}catch{}
|
|
}catch{}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
init(){
|
|
init(){
|
|
- this.$store.dispatch('setTeachers')
|
|
|
|
|
|
+ // this.$store.dispatch('setTeachers')
|
|
this.studentList = []
|
|
this.studentList = []
|
|
let classGroupStudents = []
|
|
let classGroupStudents = []
|
|
this.form.classList.forEach(classes=>{
|
|
this.form.classList.forEach(classes=>{
|
|
@@ -129,7 +127,7 @@ export default {
|
|
this.classGroupStudents = classGroupStudents
|
|
this.classGroupStudents = classGroupStudents
|
|
this.teamid = this.$route.query.id
|
|
this.teamid = this.$route.query.id
|
|
this.activeType = this.form.classList[0].type
|
|
this.activeType = this.form.classList[0].type
|
|
- this.courseTypeList = getCourseType(this.activeType)
|
|
|
|
|
|
+ this.courseTypeList = getCourseType(this.activeType)
|
|
this.studentSubmitedData = {
|
|
this.studentSubmitedData = {
|
|
name:'',
|
|
name:'',
|
|
seleched:this.studentList.map(stu=> {return stu.userId})
|
|
seleched:this.studentList.map(stu=> {return stu.userId})
|
|
@@ -159,7 +157,7 @@ export default {
|
|
this.$refs.courseTimeForms.validate(_=>{
|
|
this.$refs.courseTimeForms.validate(_=>{
|
|
if(_){
|
|
if(_){
|
|
const forms = this.getForms();
|
|
const forms = this.getForms();
|
|
-
|
|
|
|
|
|
+
|
|
let musicGroupPaymentCalenderDtos = []
|
|
let musicGroupPaymentCalenderDtos = []
|
|
// 判断有没有缴费项目(因为又可能没有)
|
|
// 判断有没有缴费项目(因为又可能没有)
|
|
// let flag = false
|
|
// let flag = false
|
|
@@ -176,14 +174,14 @@ export default {
|
|
if(arr.length>0){
|
|
if(arr.length>0){
|
|
return
|
|
return
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
this.musicGroupPaymentCalenderDtos = musicGroupPaymentCalenderDtos
|
|
this.musicGroupPaymentCalenderDtos = musicGroupPaymentCalenderDtos
|
|
this.init()
|
|
this.init()
|
|
}
|
|
}
|
|
})
|
|
})
|
|
// 弹出最后一页
|
|
// 弹出最后一页
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+
|
|
},
|
|
},
|
|
submitResetClass(){
|
|
submitResetClass(){
|
|
this.$refs.classSetting.submit()
|
|
this.$refs.classSetting.submit()
|
|
@@ -196,7 +194,7 @@ export default {
|
|
arr =organCourseTime[course].split(',')
|
|
arr =organCourseTime[course].split(',')
|
|
}else {
|
|
}else {
|
|
arr = [classTime[course]]
|
|
arr = [classTime[course]]
|
|
- }
|
|
|
|
|
|
+ }
|
|
this.courseTimeForm.timeList.push({type:course,value:'',label:courseType[course],list:arr})
|
|
this.courseTimeForm.timeList.push({type:course,value:'',label:courseType[course],list:arr})
|
|
})
|
|
})
|
|
},
|
|
},
|
|
@@ -211,7 +209,7 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
this.payInfo = obj;
|
|
this.payInfo = obj;
|
|
-
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
|
|
@@ -228,4 +226,4 @@ export default {
|
|
text-align: right;
|
|
text-align: right;
|
|
}
|
|
}
|
|
|
|
|
|
-</style>
|
|
|
|
|
|
+</style>
|