|
@@ -59,7 +59,7 @@
|
|
|
:key="key"
|
|
|
>
|
|
|
<template #title>
|
|
|
- <p>{{courseTypeListByName[key]}}, 剩余可排课时长{{surplustime[key]}}分钟</p>
|
|
|
+ <p>{{courseTypeListByName[key]}}, 可排课时长{{musicCourseSettings[key]}}分钟</p>
|
|
|
</template>
|
|
|
<courseItem
|
|
|
:surplustime="surplustime[key]"
|
|
@@ -122,7 +122,8 @@ export default {
|
|
|
collapses: [0],
|
|
|
courseTimes: {},
|
|
|
courseTypeListByName: {},
|
|
|
- classTimeListByType
|
|
|
+ classTimeListByType,
|
|
|
+ musicCourseSettings: {}
|
|
|
};
|
|
|
},
|
|
|
watch: {
|
|
@@ -176,6 +177,7 @@ export default {
|
|
|
studentIds,
|
|
|
classGroupId
|
|
|
})
|
|
|
+ this.musicCourseSettings = res.data
|
|
|
const classs = {}
|
|
|
for (const item of this.courseTypeList) {
|
|
|
const key = item.value
|
|
@@ -211,9 +213,8 @@ export default {
|
|
|
if (this.form.classs.hasOwnProperty(key)) {
|
|
|
const item = this.form.classs[key];
|
|
|
list.push({
|
|
|
- type: key,
|
|
|
+ type: (this.detail ? undefined : this.activeType),
|
|
|
courseType: key,
|
|
|
- mineType: (this.detail ? undefined : this.activeType),
|
|
|
classGroupName: (this.studentSubmitedData?.name || this.detail?.classGroupName),
|
|
|
classGroupId: this.detail?.id,
|
|
|
musicGroupId: this.musicGroupId,
|