diff --git a/pages_teacher/teacher_teachers/components/audiology.vue b/pages_teacher/teacher_teachers/components/audiology.vue index c135a19..de2af31 100644 --- a/pages_teacher/teacher_teachers/components/audiology.vue +++ b/pages_teacher/teacher_teachers/components/audiology.vue @@ -9,15 +9,14 @@ - {{TextItem.name}} - - + @@ -57,18 +56,12 @@ export default { data() { return { - selepad: [], listHearing: [], checked: [], subsets: [], itemActive: {}, - firstActive:true, image: true, tk: null, - list2: [{ - value: '选项1', - id: '1' - }], } }, @@ -78,17 +71,16 @@ methods: { // 听力调取接口渲染 hearing() { - this.$u.get('https://api.admin-v2.langsi.online/admin-api/ielts/paper/list', { - classify: 1 - }).then(res => { + this.$u.get('https://api.admin-v2.langsi.online/admin-api/ielts/paper/list', {classify: 1}).then(res => { this.listHearing = res.data + }) }, // 听力test点击事件 - Bages_addActive(idex, id) { - this.itemActive[id] = idex + Bages_addActive(TextIndex, id) { + this.itemActive[id] = TextIndex this.$forceUpdate() - + }, // 点击变化图表 icon(id) { diff --git a/pages_teacher/teacher_teachers/components/compose.vue b/pages_teacher/teacher_teachers/components/compose.vue index 8a5fd33..4e33ba1 100644 --- a/pages_teacher/teacher_teachers/components/compose.vue +++ b/pages_teacher/teacher_teachers/components/compose.vue @@ -25,7 +25,7 @@ - {{item.name}} + {{item.name}} @@ -41,7 +41,6 @@ return { transformedData: [], // 复选框 - subsets:[], subsetArr:[], textArr:['test1','test2','test3','test4'], taskArr:['task1','task2'], @@ -76,9 +75,16 @@ item.active = text this.$forceUpdate() }, - checkboxChange(e){ - this.subsetArr.push(e) - console.log((this.subsetArr)) + checkboxChange(e,id){ + if(id.value) { + this.subsetArr.push(e) + }else { + let index=this.subsetArr.indexOf(e); + if(e!==-1) { + this.subsetArr.splice(index, 1); + } + } + console.log(this.subsetArr) } } } diff --git a/pages_teacher/teacher_teachers/teacher_addOperation.vue b/pages_teacher/teacher_teachers/teacher_addOperation.vue index bc107fc..eefbc23 100644 --- a/pages_teacher/teacher_teachers/teacher_addOperation.vue +++ b/pages_teacher/teacher_teachers/teacher_addOperation.vue @@ -128,59 +128,138 @@ - - 作业安排 - - - - + - 添加 + + + 作业安排 + + + IELTS 18 + + + + + + + + + + + + - - - - 听力-IELTS 18-Test 2 - - - - - - - + + IELTS 18 + + + + Test 2 + 听力 + + + Part 1:多选题 - - - - Part 1:Questions1-10 - Complete the notes below. - - - - + - - 听力-IELTS 18-Test 2 - - - - - - - - + IELTS 18 + + + + + + + + + + + - - - - Part 1:Questions1-10 - Complete the notes below. + + + + + 添加 + + + @@ -191,7 +270,7 @@ - + @@ -204,7 +283,7 @@ 描述 -