Explorar o código

17:59 添加学员id

1
mo %!s(int64=4) %!d(string=hai) anos
pai
achega
f28a161138

+ 11 - 2
src/views/teamDetail/components/modals/class-pay-list.vue

@@ -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)

+ 2 - 0
src/views/teamDetail/components/modals/classroom-setting.vue

@@ -145,6 +145,7 @@ export default {
     "classType",
     "musicGroupPaymentCalenderDtos",
     "classIdList",
+    "classGroupStudents"
   ],
   components: {
     courseItem,
@@ -323,6 +324,7 @@ export default {
                 obj.classGroup4MixDtos = list;
                 obj.classGroupIds = this.classIdList;
                 obj.studentIds = this.studentSubmitedData.seleched;
+                obj.classGroupStudents = this.classGroupStudents
                 console.log(obj);
                 await mergeClassSplitClassAffirm(obj);
                 let grend = this.$parent.$parent.$parent.$parent.$parent.$parent