|
@@ -19,6 +19,10 @@
|
|
:value="item.value"></el-option>
|
|
:value="item.value"></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
+ <el-form-item>
|
|
|
|
+ <div class="newBand"
|
|
|
|
+ @click="startRegest">开启报名</div>
|
|
|
|
+ </el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
<div class="tableWrap"
|
|
<div class="tableWrap"
|
|
style>
|
|
style>
|
|
@@ -650,7 +654,8 @@ import {
|
|
getTeamBaseInfo,
|
|
getTeamBaseInfo,
|
|
clearClassCourse,
|
|
clearClassCourse,
|
|
superFindClassGroups,
|
|
superFindClassGroups,
|
|
- createClass
|
|
|
|
|
|
+ createClass,
|
|
|
|
+ pushMessage
|
|
} from "@/api/buildTeam";
|
|
} from "@/api/buildTeam";
|
|
import {
|
|
import {
|
|
getClassAllStudent,
|
|
getClassAllStudent,
|
|
@@ -777,6 +782,7 @@ export default {
|
|
teaching: [],
|
|
teaching: [],
|
|
memo: []
|
|
memo: []
|
|
},
|
|
},
|
|
|
|
+ classGroupIds: null
|
|
};
|
|
};
|
|
},
|
|
},
|
|
created () {
|
|
created () {
|
|
@@ -1484,10 +1490,36 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
handleSelectionChange (val) {
|
|
handleSelectionChange (val) {
|
|
|
|
+ if (val.length > 0) {
|
|
|
|
+ this.classGroupIds = val.map(item => {
|
|
|
|
+ return item.id
|
|
|
|
+ }).join(',');
|
|
|
|
+ } else {
|
|
|
|
+ this.classGroupIds = null
|
|
|
|
+ }
|
|
|
|
|
|
},
|
|
},
|
|
chkstu (row, index) {
|
|
chkstu (row, index) {
|
|
return row.type == 'HIGH_ONLINE' || row.type == 'HIGH'
|
|
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: {
|
|
watch: {
|