|
@@ -101,6 +101,8 @@
|
|
|
</template>
|
|
|
<courseItem
|
|
|
:surplustime="surplustime[key]"
|
|
|
+ :coreid="coreid"
|
|
|
+ :assistant="assistant"
|
|
|
@setUserTime="setUserTime"
|
|
|
:teacherList="teacherList"
|
|
|
:activeType="activeType"
|
|
@@ -225,6 +227,8 @@ export default {
|
|
|
previewVisible: false,
|
|
|
previewList: [],
|
|
|
holidays: [],
|
|
|
+ coreid: "",
|
|
|
+ assistant: [],
|
|
|
};
|
|
|
},
|
|
|
watch: {
|
|
@@ -288,20 +292,20 @@ export default {
|
|
|
this.courseTypeListByName = courseTypeListByName;
|
|
|
},
|
|
|
async formatClasss() {
|
|
|
- let coreid = "";
|
|
|
- const assistant = [];
|
|
|
+ this.coreid = "";
|
|
|
+ this.assistant = [];
|
|
|
if (this.detail) {
|
|
|
const { classGroupTeacherMapperList } = this.detail;
|
|
|
for (const item of classGroupTeacherMapperList || []) {
|
|
|
if (item.teacherRole === "BISHOP") {
|
|
|
- coreid = String(item.userId);
|
|
|
+ this.coreid = String(item.userId);
|
|
|
}
|
|
|
if (item.teacherRole === "TEACHING") {
|
|
|
- assistant.push(item.userId);
|
|
|
+ this.assistant.push(item.userId);
|
|
|
}
|
|
|
}
|
|
|
- this.$set(this.form, "coreTeacher", String(coreid));
|
|
|
- this.$set(this.form, "assistant", assistant);
|
|
|
+ this.$set(this.form, "coreTeacher", String(this.coreid));
|
|
|
+ this.$set(this.form, "assistant", this.assistant);
|
|
|
}
|
|
|
const studentIds = this.detail
|
|
|
? undefined
|
|
@@ -341,8 +345,8 @@ export default {
|
|
|
cycle: [
|
|
|
{
|
|
|
time: this.selectPrices ? this.selectPrices[key] : undefined,
|
|
|
- coreTeacher: coreid,
|
|
|
- assistant: assistant,
|
|
|
+ coreTeacher: this.coreid,
|
|
|
+ assistant: this.assistant,
|
|
|
},
|
|
|
],
|
|
|
};
|