|
@@ -58,8 +58,8 @@
|
|
<span class="iconStyle">课</span>
|
|
<span class="iconStyle">课</span>
|
|
<span class="titles">{{ item.courseName }}</span>
|
|
<span class="titles">{{ item.courseName }}</span>
|
|
<div v-if="courseItem.teaList && courseItem.teaList.length > 0" class="teacher_names">
|
|
<div v-if="courseItem.teaList && courseItem.teaList.length > 0" class="teacher_names">
|
|
- <div v-for="(tea, lindex) in courseItem.teaList" :key="lindex + 'three'" class="names"
|
|
|
|
- :class="{nactive: States[teacherIndex] = lindex}" @click="switchTeacher(tea, lindex, teacherIndex)">
|
|
|
|
|
|
+ <div v-for="(tea, lindex) in courseItem.teaList" :key="lindex + 'three'" class="names" :class="{nactive: States[teacherIndex] == lindex}"
|
|
|
|
+ @click="switchTeacher(tea, lindex, teacherIndex)">
|
|
{{ tea.aliasName }}
|
|
{{ tea.aliasName }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -606,6 +606,7 @@
|
|
</template>
|
|
</template>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
+
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -710,6 +711,7 @@ export default {
|
|
// },
|
|
// },
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
|
|
+ console.log('States-----', this.States)
|
|
this.getRecord();
|
|
this.getRecord();
|
|
this.sysTime = this.$tools.timest();
|
|
this.sysTime = this.$tools.timest();
|
|
},
|
|
},
|
|
@@ -778,7 +780,7 @@ export default {
|
|
this.$request.courseTeacherList({
|
|
this.$request.courseTeacherList({
|
|
goodsId: item.goodsId
|
|
goodsId: item.goodsId
|
|
}).then((res1) => {
|
|
}).then((res1) => {
|
|
- console.log(res1,'res1');
|
|
|
|
|
|
+ // console.log(res1,'res1');
|
|
if(res1.data && res1.data.length > 0){
|
|
if(res1.data && res1.data.length > 0){
|
|
//课程老师模板
|
|
//课程老师模板
|
|
let teacherTel = res1.data;
|
|
let teacherTel = res1.data;
|
|
@@ -835,9 +837,10 @@ export default {
|
|
data.courseList.push(item)
|
|
data.courseList.push(item)
|
|
this.goodsTeacher.push(data)
|
|
this.goodsTeacher.push(data)
|
|
})
|
|
})
|
|
- console.log(this.goodsTeacher,'this.goodsTeacher');
|
|
|
|
}
|
|
}
|
|
- })
|
|
|
|
|
|
+ console.log(this.goodsTeacher,'this.goodsTeacher')
|
|
|
|
+ })
|
|
|
|
+
|
|
this.courseList = res.rows;
|
|
this.courseList = res.rows;
|
|
array = this.uniqueFunc(array, "id");
|
|
array = this.uniqueFunc(array, "id");
|
|
array.unshift({
|
|
array.unshift({
|
|
@@ -856,7 +859,7 @@ export default {
|
|
},
|
|
},
|
|
//切换老师
|
|
//切换老师
|
|
switchTeacher(data, index, teacherIndex){
|
|
switchTeacher(data, index, teacherIndex){
|
|
- console.log(data,'data', index, teacherIndex);
|
|
|
|
|
|
+ // console.log(data,'data', index, teacherIndex);
|
|
this.States[teacherIndex] = index
|
|
this.States[teacherIndex] = index
|
|
this.teaIndex = index
|
|
this.teaIndex = index
|
|
this.goodsTeacher.forEach((item,index) => {
|
|
this.goodsTeacher.forEach((item,index) => {
|
|
@@ -865,8 +868,8 @@ export default {
|
|
if(list && list.length > 0){
|
|
if(list && list.length > 0){
|
|
item.courseList.forEach((course,courseIndex) => {
|
|
item.courseList.forEach((course,courseIndex) => {
|
|
if(course.courseId == data.courseId){
|
|
if(course.courseId == data.courseId){
|
|
- console.log(index,'index');
|
|
|
|
- console.log(courseIndex,'courseIndex');
|
|
|
|
|
|
+ // console.log(index,'index');
|
|
|
|
+ // console.log(courseIndex,'courseIndex');
|
|
this.$set(this.goodsTeacher[index].courseList[courseIndex],"show",1)
|
|
this.$set(this.goodsTeacher[index].courseList[courseIndex],"show",1)
|
|
}else{
|
|
}else{
|
|
this.$set(this.goodsTeacher[index].courseList[courseIndex],"show",0)
|
|
this.$set(this.goodsTeacher[index].courseList[courseIndex],"show",0)
|