|
@@ -67,13 +67,27 @@
|
|
|
<el-table-column prop="totalClassTimes"
|
|
|
label="排课课次"></el-table-column>
|
|
|
<el-table-column align="center"
|
|
|
+ width="260px"
|
|
|
prop
|
|
|
label="操作">
|
|
|
<template slot-scope="scope">
|
|
|
<div>
|
|
|
<el-button type="text"
|
|
|
+ v-if="scope.row.type === 'HIGH' || scope.row.type==='HIGH_ONLINE'
|
|
|
+ "
|
|
|
+ v-permission="'classGroupStudent/findAllStudent'"
|
|
|
+ @click='lookDeatil(scope.row)'>查看</el-button>
|
|
|
+ <el-button type="text"
|
|
|
v-permission="'classGroup/classGroupUpdate'"
|
|
|
@click="classAdjustment(scope.row)">老师调整</el-button>
|
|
|
+ <el-button type="text"
|
|
|
+ v-if="scope.row.type
|
|
|
+ !='HIGH'
|
|
|
+ &&scope.row.type
|
|
|
+ !='HIGH_ONLINE'
|
|
|
+ "
|
|
|
+ v-permission="'classGroupStudent/findAllStudent'"
|
|
|
+ @click="resetClass(scope.row)">学员调整</el-button>
|
|
|
<el-popover placement="top"
|
|
|
width="160"
|
|
|
:ref="scope.$index"
|
|
@@ -94,12 +108,12 @@
|
|
|
|
|
|
<el-button type="text"
|
|
|
v-if="scope.row.type
|
|
|
- !='HIGH'
|
|
|
- &&scope.row.type
|
|
|
- !='HIGH_ONLINE'
|
|
|
+ ==='HIGH'
|
|
|
+ ||scope.row.type
|
|
|
+ ==='HIGH_ONLINE'
|
|
|
"
|
|
|
- v-permission="'classGroupStudent/findAllStudent'"
|
|
|
- @click="resetClass(scope.row)">学员调整</el-button>
|
|
|
+ v-permission="'classGroupStudent/addStudents'"
|
|
|
+ @click="addstudentBtn(scope.row)">添加学员</el-button>
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -115,7 +129,7 @@
|
|
|
title="新增班级">
|
|
|
<el-form :model="newClassForm"
|
|
|
:inline="true"
|
|
|
- label-width="100px"
|
|
|
+ label-width="120px"
|
|
|
ref="newClassForm"
|
|
|
class="newClassForm">
|
|
|
<el-form-item label="班级名称"
|
|
@@ -209,7 +223,7 @@
|
|
|
:value="item.id"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="声部"
|
|
|
+ <el-form-item label="网络教室声部"
|
|
|
prop="subjectId"
|
|
|
:rules="[{ required: true, message: '请选择线上声部',trigger: 'blur'}]"
|
|
|
v-if="newClassForm.type == 'HIGH_ONLINE'"
|
|
@@ -605,6 +619,63 @@
|
|
|
@click="arrangeFormSubmit">确 定</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
+ <el-dialog title="添加学员"
|
|
|
+ width="600px"
|
|
|
+ :visible.sync="addStudentVisible">
|
|
|
+ <el-table :data="studentList"
|
|
|
+ ref='studentList'
|
|
|
+ @selection-change="selectStudent"
|
|
|
+ :header-cell-style="{background:'#EDEEF0',color:'#444'}">
|
|
|
+ <el-table-column type="selection"
|
|
|
+ width="55"></el-table-column>
|
|
|
+ <el-table-column prop='name'
|
|
|
+ label="学生姓名"></el-table-column>
|
|
|
+ <el-table-column property="classGroupName"
|
|
|
+ label="所在班级"></el-table-column>
|
|
|
+ </el-table>
|
|
|
+ <div slot="footer"
|
|
|
+ class="dialog-footer">
|
|
|
+ <el-button type="primary"
|
|
|
+ v-permission="'classGroupStudent/addStudents'"
|
|
|
+ @click="addStudnt">确 定</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
+ <el-dialog title="小班课学员详情"
|
|
|
+ width="600px"
|
|
|
+ :visible.sync="lookDeatilVisible">
|
|
|
+ <el-table :header-cell-style="{background:'#EDEEF0',color:'#444'}"
|
|
|
+ :data='classList'>
|
|
|
+ <el-table-column label="学员姓名"
|
|
|
+ prop="name">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="操作">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <div>
|
|
|
+ <el-popover placement="top"
|
|
|
+ v-permission="'classGroupStudent/del'"
|
|
|
+ width="160"
|
|
|
+ :ref="scope.$index">
|
|
|
+ <p>确定删除该学生?</p>
|
|
|
+ <div style="text-align: right; margin-top: 20px">
|
|
|
+ <el-button size="mini"
|
|
|
+ type="text"
|
|
|
+ @click="scope._self.$refs[scope.$index].doClose()">取消</el-button>
|
|
|
+ <el-button type="primary"
|
|
|
+ size="mini"
|
|
|
+ @click="removeStudent(scope)">确定</el-button>
|
|
|
+ </div>
|
|
|
+ <el-button type="text"
|
|
|
+ slot="reference">删除</el-button>
|
|
|
+ </el-popover>
|
|
|
+ <!-- <el-button type="text"
|
|
|
+ v-permission="'classGroupStudent/adjustClassGroup'"
|
|
|
+ @click="resetClass(scope.row)">调整班级</el-button> -->
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -739,7 +810,11 @@ export default {
|
|
|
|
|
|
classCardList: [], // 课表的集合
|
|
|
teamid: null,
|
|
|
- maxMun: 16
|
|
|
+ maxMun: 16,
|
|
|
+ lookDeatilVisible: false,
|
|
|
+ addStudentVisible: false,
|
|
|
+ activeStudentList: [],
|
|
|
+ classList: []
|
|
|
};
|
|
|
},
|
|
|
//生命周期 - 创建完成(可以访问当前this实例)
|
|
@@ -1500,11 +1575,53 @@ export default {
|
|
|
|
|
|
} else {
|
|
|
this.newClassForm.memo = []
|
|
|
+ }
|
|
|
+
|
|
|
+ },
|
|
|
+ lookDeatil (row) {
|
|
|
+ console.log(row)
|
|
|
+ this.lookDeatilVisible = true;
|
|
|
+ this.activeClass = row.id;
|
|
|
+ getClassAllStudent({ classGroupId: this.activeClass }).then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.classList = res.data;
|
|
|
+ }
|
|
|
+ })
|
|
|
|
|
|
+ return
|
|
|
|
|
|
- }
|
|
|
+ },
|
|
|
+ addstudentBtn (row) {
|
|
|
+ this.activeClass = row.id;
|
|
|
+ let type = row.type;
|
|
|
+ getMusicGroupStuNoClassType({ musicGroupId: this.teamid, type }).then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.studentList = res.data;
|
|
|
+ this.addStudentVisible = true;
|
|
|
+ }
|
|
|
+ })
|
|
|
|
|
|
- }
|
|
|
+ },
|
|
|
+ selectStudent (val) {
|
|
|
+ this.activeStudentList = val;
|
|
|
+ },
|
|
|
+ addStudnt () {
|
|
|
+ // 发请求添加学生
|
|
|
+ let classGroupId = this.activeClass;
|
|
|
+ let userIdsStr = this.activeStudentList.map(item => {
|
|
|
+ return item.userId
|
|
|
+ }).join(',')
|
|
|
+ addStudents({ userIdsStr, classGroupId }).then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.$message.success('添加成功')
|
|
|
+ this.activeStudentList = [];
|
|
|
+ this.addStudentVisible = false;
|
|
|
+ // 取消列表的勾选
|
|
|
+ this.$refs.studentList.clearSelection();
|
|
|
+ this.getList();
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
},
|
|
|
filters: {
|
|
|
getBishopName (val) {
|