|
@@ -19,9 +19,11 @@
|
|
</el-form>
|
|
</el-form>
|
|
<div class="buttonWrap">
|
|
<div class="buttonWrap">
|
|
<div class="newBand"
|
|
<div class="newBand"
|
|
- @click="newClass">新建班级</div>
|
|
|
|
|
|
+ @click="newClass"
|
|
|
|
+ v-permission="'classGroup/create'">新建班级</div>
|
|
<div class="newBand"
|
|
<div class="newBand"
|
|
- @click="arrangeStart">批量排课</div>
|
|
|
|
|
|
+ @click="arrangeStart"
|
|
|
|
+ v-permission="'courseSchedule/batchAddCourseSchedule'">批量排课</div>
|
|
<!-- <div class="newBand">删除排课</div> -->
|
|
<!-- <div class="newBand">删除排课</div> -->
|
|
<!-- <p class="expectMsg">基础技能班参考数量: 线上:XX/线下:XX</p> -->
|
|
<!-- <p class="expectMsg">基础技能班参考数量: 线上:XX/线下:XX</p> -->
|
|
</div>
|
|
</div>
|
|
@@ -74,10 +76,12 @@
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<div>
|
|
<div>
|
|
<el-button type="text"
|
|
<el-button type="text"
|
|
|
|
+ v-permission="'classGroup/classGroupUpdate'"
|
|
@click="classAdjustment(scope.row)">班级调整</el-button>
|
|
@click="classAdjustment(scope.row)">班级调整</el-button>
|
|
<el-popover placement="top"
|
|
<el-popover placement="top"
|
|
width="160"
|
|
width="160"
|
|
- :ref="scope.$index">
|
|
|
|
|
|
+ :ref="scope.$index"
|
|
|
|
+ v-permission="'classGroup/delSingle'">
|
|
<p>确定删除?</p>
|
|
<p>确定删除?</p>
|
|
<div style="text-align: right; margin: 0">
|
|
<div style="text-align: right; margin: 0">
|
|
<el-button size="mini"
|
|
<el-button size="mini"
|
|
@@ -92,6 +96,7 @@
|
|
slot="reference">删除班级</el-button>
|
|
slot="reference">删除班级</el-button>
|
|
</el-popover>
|
|
</el-popover>
|
|
<el-button type="text"
|
|
<el-button type="text"
|
|
|
|
+ v-permission="'classGroupStudent/findAllStudent'"
|
|
v-if="scope.row.type
|
|
v-if="scope.row.type
|
|
!='HIGHT'
|
|
!='HIGHT'
|
|
&&scope.row.type
|
|
&&scope.row.type
|
|
@@ -127,8 +132,7 @@
|
|
prop="type">
|
|
prop="type">
|
|
<el-select v-model.trim="newClassForm.type"
|
|
<el-select v-model.trim="newClassForm.type"
|
|
clearable
|
|
clearable
|
|
- filterable
|
|
|
|
- @change="changeClass">
|
|
|
|
|
|
+ filterable>
|
|
<el-option v-for="(item,index) in classTypeList"
|
|
<el-option v-for="(item,index) in classTypeList"
|
|
:key="index"
|
|
:key="index"
|
|
:label="item.label"
|
|
:label="item.label"
|
|
@@ -142,8 +146,7 @@
|
|
<el-select v-model.trim="newClassForm.subjectIdList"
|
|
<el-select v-model.trim="newClassForm.subjectIdList"
|
|
clearable
|
|
clearable
|
|
filterable
|
|
filterable
|
|
- multiple
|
|
|
|
- @change="changeClass">
|
|
|
|
|
|
+ multiple>
|
|
<el-option v-for="(item,index) in soundList"
|
|
<el-option v-for="(item,index) in soundList"
|
|
:key="index"
|
|
:key="index"
|
|
:label="item.name"
|
|
:label="item.name"
|
|
@@ -182,18 +185,17 @@
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="助教老师"
|
|
<el-form-item label="助教老师"
|
|
- prop="teaching"
|
|
|
|
- <el-select
|
|
|
|
- placeholder="请选择助教老师"
|
|
|
|
- v-model="newClassForm.teaching"
|
|
|
|
- @change="setAssistant1"
|
|
|
|
- clearable
|
|
|
|
- multiple
|
|
|
|
- filterable>
|
|
|
|
- <el-option v-for="(item,index) in teacherList"
|
|
|
|
- :label="item.realName"
|
|
|
|
- :value="item.id"
|
|
|
|
- :key="index"></el-option>
|
|
|
|
|
|
+ prop="teaching">
|
|
|
|
+ <el-select placeholder="请选择助教老师"
|
|
|
|
+ v-model="newClassForm.teaching"
|
|
|
|
+ @change="setAssistant1"
|
|
|
|
+ clearable
|
|
|
|
+ multiple
|
|
|
|
+ filterable>
|
|
|
|
+ <el-option v-for="(item,index) in teacherList"
|
|
|
|
+ :label="item.realName"
|
|
|
|
+ :value="item.id"
|
|
|
|
+ :key="index"></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
@@ -606,7 +608,7 @@ import axios from "axios";
|
|
import { getToken } from "@/utils/auth";
|
|
import { getToken } from "@/utils/auth";
|
|
import pagination from "@/components/Pagination/index";
|
|
import pagination from "@/components/Pagination/index";
|
|
import load from "@/utils/loading";
|
|
import load from "@/utils/loading";
|
|
-import { getTeacher, getEmployeeOrgan, getMusicGroupClass, createClass, getSoundTree, findSound, getMusicGroupStuNoClassType, classGroupUpdate, removeSingleClass, workOut } from "@/api/buildTeam";
|
|
|
|
|
|
+import { getTeacher, getEmployeeOrgan, getMusicGroupClass, createClass, findSound, getMusicGroupStuNoClassType, classGroupUpdate, removeSingleClass, workOut } from "@/api/buildTeam";
|
|
import {
|
|
import {
|
|
getClassAllStudent,
|
|
getClassAllStudent,
|
|
removeStudents,
|
|
removeStudents,
|
|
@@ -636,7 +638,7 @@ export default {
|
|
},
|
|
},
|
|
soundList: [],
|
|
soundList: [],
|
|
teacherList: [],
|
|
teacherList: [],
|
|
- organList: [],
|
|
|
|
|
|
+
|
|
tableList: [],
|
|
tableList: [],
|
|
classTypeList: [
|
|
classTypeList: [
|
|
{ value: "NORMAL", label: "单技班" },
|
|
{ value: "NORMAL", label: "单技班" },
|
|
@@ -730,11 +732,6 @@ export default {
|
|
this.cooperationList = res.data;
|
|
this.cooperationList = res.data;
|
|
}
|
|
}
|
|
});
|
|
});
|
|
- getEmployeeOrgan().then(res => {
|
|
|
|
- if (res.code == 200) {
|
|
|
|
- this.organList = res.data;
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
// 获取声部
|
|
// 获取声部
|
|
findSound({ musicGroupId: this.teamid }).then(res => {
|
|
findSound({ musicGroupId: this.teamid }).then(res => {
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
@@ -764,11 +761,14 @@ export default {
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- changeClass () { },
|
|
|
|
changeClassGetList (val) {
|
|
changeClassGetList (val) {
|
|
this.getList()
|
|
this.getList()
|
|
},
|
|
},
|
|
newClass () {
|
|
newClass () {
|
|
|
|
+ if (this.isSetSalary) {
|
|
|
|
+ this.$message.error('课酬确认后无法编辑')
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
this.newClassVisible = true;
|
|
this.newClassVisible = true;
|
|
},
|
|
},
|
|
newClassSecond () {
|
|
newClassSecond () {
|
|
@@ -959,6 +959,10 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
classAdjustment (row) {
|
|
classAdjustment (row) {
|
|
|
|
+ if (this.isSetSalary) {
|
|
|
|
+ this.$message.error('课酬确认后无法编辑')
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
this.activeType = row.type;
|
|
this.activeType = row.type;
|
|
this.activeClass = row.id;
|
|
this.activeClass = row.id;
|
|
// this.activeListStudent = row.subjectIdList.split(',')
|
|
// this.activeListStudent = row.subjectIdList.split(',')
|
|
@@ -1026,6 +1030,10 @@ export default {
|
|
},
|
|
},
|
|
// 删除班级
|
|
// 删除班级
|
|
removeClass (scope) {
|
|
removeClass (scope) {
|
|
|
|
+ if (this.isSetSalary) {
|
|
|
|
+ this.$message.error('课酬确认后无法编辑')
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
removeSingleClass({ classGroupId: scope.row.id })
|
|
removeSingleClass({ classGroupId: scope.row.id })
|
|
.then(res => {
|
|
.then(res => {
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
@@ -1196,6 +1204,10 @@ export default {
|
|
});
|
|
});
|
|
},
|
|
},
|
|
resetClass (row) {
|
|
resetClass (row) {
|
|
|
|
+ if (this.isSetSalary) {
|
|
|
|
+ this.$message.error('课酬确认后无法编辑')
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
this.isNewClass = false;
|
|
this.isNewClass = false;
|
|
this.className = row.name;
|
|
this.className = row.name;
|
|
this.studentVisible = true;
|
|
this.studentVisible = true;
|
|
@@ -1215,6 +1227,10 @@ export default {
|
|
},
|
|
},
|
|
// 排课开始
|
|
// 排课开始
|
|
arrangeStart () {
|
|
arrangeStart () {
|
|
|
|
+ if (this.isSetSalary) {
|
|
|
|
+ this.$message.error('课酬确认后无法编辑')
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
if (this.chioseTab.length < 1) {
|
|
if (this.chioseTab.length < 1) {
|
|
this.$message.error('请至少选择一个班级')
|
|
this.$message.error('请至少选择一个班级')
|
|
return;
|
|
return;
|