|
@@ -32,12 +32,13 @@
|
|
|
:cooperationList="selects.teachers"
|
|
|
:studentSubmitedData="studentSubmitedData"
|
|
|
:classIdList="classIdList"
|
|
|
+ :classGroupStudents="classGroupStudents"
|
|
|
@close="showLastVisable = false"
|
|
|
v-if="showLastVisable"
|
|
|
|
|
|
/>
|
|
|
<div slot="footer" class="dialog-footer" >
|
|
|
- <el-button @click="showLastVisable = false">取 消</el-button>
|
|
|
+ <el-button @click="showLastVisable = false">上一步</el-button>
|
|
|
<el-button type="primary" @click="submitResetClass">确 定</el-button>
|
|
|
</div>
|
|
|
|
|
@@ -66,7 +67,8 @@ export default {
|
|
|
teamid:'',
|
|
|
activeType:'',
|
|
|
courseTypeList:[],
|
|
|
- studentSubmitedData:{}
|
|
|
+ studentSubmitedData:{},
|
|
|
+ classGroupStudents:[]
|
|
|
};
|
|
|
},
|
|
|
|
|
@@ -75,9 +77,16 @@ export default {
|
|
|
init(){
|
|
|
this.$store.dispatch('setTeachers')
|
|
|
this.studentList = []
|
|
|
+ let classGroupStudents = []
|
|
|
this.form.classList.forEach(classes=>{
|
|
|
this.studentList = this.studentList.concat(classes.studentList)
|
|
|
+ let arr = []
|
|
|
+ classes.studentList.forEach(stu=>{
|
|
|
+ arr.push(stu.userId)
|
|
|
+ })
|
|
|
+ classGroupStudents.push({[classes.classId]:arr.join(',')})
|
|
|
})
|
|
|
+ this.classGroupStudents = classGroupStudents
|
|
|
this.teamid = this.$route.query.id
|
|
|
this.activeType = this.form.classList[0].type
|
|
|
this.courseTypeList = getCourseType(this.activeType)
|