mo 5 éve
szülő
commit
9c574c9349

+ 1 - 1
src/views/teamBuild/teamSeting/components/setClassV2.vue

@@ -922,7 +922,7 @@ export default {
 
     },
     temporaryRemoveStudent (item) {
-      console.log(item);
+      // console.log(item);
       // 列表中删除
       for (let i in this.activeListStudent) {
         if (this.activeListStudent[i].userId == item.userId) {

+ 33 - 1
src/views/teamDetail/components/resetClass.vue

@@ -19,6 +19,10 @@
                        :value="item.value"></el-option>
           </el-select>
         </el-form-item>
+        <el-form-item>
+          <div class="newBand"
+               @click="startRegest">开启报名</div>
+        </el-form-item>
       </el-form>
       <div class="tableWrap"
            style>
@@ -650,7 +654,8 @@ import {
   getTeamBaseInfo,
   clearClassCourse,
   superFindClassGroups,
-  createClass
+  createClass,
+  pushMessage
 } from "@/api/buildTeam";
 import {
   getClassAllStudent,
@@ -777,6 +782,7 @@ export default {
         teaching: [],
         memo: []
       },
+      classGroupIds: null
     };
   },
   created () {
@@ -1484,10 +1490,36 @@ export default {
       }
     },
     handleSelectionChange (val) {
+      if (val.length > 0) {
+        this.classGroupIds = val.map(item => {
+          return item.id
+        }).join(',');
+      } else {
+        this.classGroupIds = null
+      }
 
     },
     chkstu (row, index) {
       return row.type == 'HIGH_ONLINE' || row.type == 'HIGH'
+    },
+    startRegest () {
+      if (!this.classGroupIds) {
+        this.$message.error('请至少选择1个基础技能班')
+        return
+      }
+      this.$confirm('是否开启报名?', '提示', {
+        confirmButtonText: '确定',
+        cancelButtonText: '取消',
+        type: 'warning'
+      }).then(() => {
+        pushMessage({          classGroupIds: this.classGroupIds, musicGroupId: this.teamid
+        }).then(res => {
+          if (res.code == 200) {
+            this.$message.success('开启成功')
+          }
+        })
+      }).catch(() => { })
+
     }
   },
   watch: {