|
@@ -91,14 +91,14 @@
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<div>
|
|
<div>
|
|
<!-- v-if="scope.row.type !='MIX'" -->
|
|
<!-- v-if="scope.row.type !='MIX'" -->
|
|
- <el-button type="text"
|
|
|
|
|
|
+ <!-- <el-button type="text"
|
|
@click="resetClass(scope.row)"
|
|
@click="resetClass(scope.row)"
|
|
- v-if="scope.row.type != 'MUSIC_NETWORK'">学员调整</el-button>
|
|
|
|
|
|
+ v-if="scope.row.type != 'MUSIC_NETWORK'">学员调整</el-button> -->
|
|
<el-button type="text"
|
|
<el-button type="text"
|
|
@click="classAdjustment(scope.row)">班级调整</el-button>
|
|
@click="classAdjustment(scope.row)">班级调整</el-button>
|
|
<!--<el-button type="text"
|
|
<!--<el-button type="text"
|
|
@click="recourse(scope.row)">重新排课</el-button>-->
|
|
@click="recourse(scope.row)">重新排课</el-button>-->
|
|
- <el-popover placement="top"
|
|
|
|
|
|
+ <!-- <el-popover placement="top"
|
|
width="160"
|
|
width="160"
|
|
:ref="`popover-${scope.$index}`">
|
|
:ref="`popover-${scope.$index}`">
|
|
<p>确定删除?</p>
|
|
<p>确定删除?</p>
|
|
@@ -109,14 +109,14 @@
|
|
<el-button type="primary"
|
|
<el-button type="primary"
|
|
size="mini"
|
|
size="mini"
|
|
@click="removeClass(scope)">确定</el-button>
|
|
@click="removeClass(scope)">确定</el-button>
|
|
- </div>
|
|
|
|
|
|
+ </div> -->
|
|
<!-- v-if="scope.row.type !='MIX'" -->
|
|
<!-- v-if="scope.row.type !='MIX'" -->
|
|
- <el-button type="text"
|
|
|
|
|
|
+ <!-- <el-button type="text"
|
|
v-if="scope.row.type != 'MUSIC_NETWORK'"
|
|
v-if="scope.row.type != 'MUSIC_NETWORK'"
|
|
slot="reference">删除班级</el-button>
|
|
slot="reference">删除班级</el-button>
|
|
- </el-popover>
|
|
|
|
|
|
+ </el-popover> -->
|
|
|
|
|
|
- <el-popover placement="top"
|
|
|
|
|
|
+ <!-- <el-popover placement="top"
|
|
width="160"
|
|
width="160"
|
|
:ref="scope.$index">
|
|
:ref="scope.$index">
|
|
<p>是否清空课表?</p>
|
|
<p>是否清空课表?</p>
|
|
@@ -127,11 +127,11 @@
|
|
<el-button type="primary"
|
|
<el-button type="primary"
|
|
size="mini"
|
|
size="mini"
|
|
@click="clearCourse(scope)">确定</el-button>
|
|
@click="clearCourse(scope)">确定</el-button>
|
|
- </div>
|
|
|
|
|
|
+ </div> -->
|
|
<!-- v-if="scope.row.type !='MIX'" -->
|
|
<!-- v-if="scope.row.type !='MIX'" -->
|
|
- <el-button type="text"
|
|
|
|
|
|
+ <!-- <el-button type="text"
|
|
slot="reference">清空课表</el-button>
|
|
slot="reference">清空课表</el-button>
|
|
- </el-popover>
|
|
|
|
|
|
+ </el-popover> -->
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -151,7 +151,19 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- 学员选择 -->
|
|
<!-- 学员选择 -->
|
|
- <el-dialog title="学员选择"
|
|
|
|
|
|
+ <el-dialog
|
|
|
|
+ title="学员选择"
|
|
|
|
+ width="750px"
|
|
|
|
+ :visible.sync="studentVisible"
|
|
|
|
+ >
|
|
|
|
+ <selectStudent
|
|
|
|
+ :studentList="studentList"
|
|
|
|
+ :soundList="soundList"
|
|
|
|
+ :activeType="activeType"
|
|
|
|
+ @close="studentVisible = false"
|
|
|
|
+ />
|
|
|
|
+ </el-dialog>
|
|
|
|
+ <!-- <el-dialog title="学员选择"
|
|
width="700px"
|
|
width="700px"
|
|
:visible.sync="studentVisible"
|
|
:visible.sync="studentVisible"
|
|
:modal-append-to-body="false">
|
|
:modal-append-to-body="false">
|
|
@@ -190,10 +202,10 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <div class="right">
|
|
|
|
|
|
+ <div class="right"> -->
|
|
<!-- multiple
|
|
<!-- multiple
|
|
collapse-tags v-if="isSearch" -->
|
|
collapse-tags v-if="isSearch" -->
|
|
- <el-select v-model.trim="activeChioseSound"
|
|
|
|
|
|
+ <!-- <el-select v-model.trim="activeChioseSound"
|
|
style="width:180px"
|
|
style="width:180px"
|
|
@change="searchStudent"
|
|
@change="searchStudent"
|
|
clearable
|
|
clearable
|
|
@@ -203,14 +215,14 @@
|
|
:key="index"
|
|
:key="index"
|
|
:label="item.name"
|
|
:label="item.name"
|
|
:value="item.id"></el-option>
|
|
:value="item.id"></el-option>
|
|
- </el-select>
|
|
|
|
|
|
+ </el-select> -->
|
|
<!-- <el-button v-if="isSearch"
|
|
<!-- <el-button v-if="isSearch"
|
|
type="danger"
|
|
type="danger"
|
|
style="margin-left:20px;"
|
|
style="margin-left:20px;"
|
|
@click="searchStudent">搜索</el-button>-->
|
|
@click="searchStudent">搜索</el-button>-->
|
|
|
|
|
|
<!-- 列表开始 -->
|
|
<!-- 列表开始 -->
|
|
- <div class="tableList">
|
|
|
|
|
|
+ <!-- <div class="tableList">
|
|
<el-table tooltip-effect="dark"
|
|
<el-table tooltip-effect="dark"
|
|
v-if="!isNewClass"
|
|
v-if="!isNewClass"
|
|
style="width: 100%; margin-top:10px;"
|
|
style="width: 100%; margin-top:10px;"
|
|
@@ -236,9 +248,9 @@
|
|
width="100"
|
|
width="100"
|
|
align="center"
|
|
align="center"
|
|
label="学员声部"></el-table-column>
|
|
label="学员声部"></el-table-column>
|
|
- </el-table>
|
|
|
|
|
|
+ </el-table> -->
|
|
<!-- 临时调整table -->
|
|
<!-- 临时调整table -->
|
|
- <el-table tooltip-effect="dark"
|
|
|
|
|
|
+ <!-- <el-table tooltip-effect="dark"
|
|
v-if="isNewClass"
|
|
v-if="isNewClass"
|
|
style="width: 100%; margin-top:10px;"
|
|
style="width: 100%; margin-top:10px;"
|
|
:data="studentList"
|
|
:data="studentList"
|
|
@@ -269,29 +281,56 @@
|
|
</div>
|
|
</div>
|
|
<div slot="footer"
|
|
<div slot="footer"
|
|
class="dialog-footer">
|
|
class="dialog-footer">
|
|
- <el-button @click="studentVisible = false">取 消</el-button>
|
|
|
|
|
|
+ <el-button @click="studentVisible = false">取 消</el-button> -->
|
|
<!-- 班级学员修改 -->
|
|
<!-- 班级学员修改 -->
|
|
- <el-button type="primary"
|
|
|
|
|
|
+ <!-- <el-button type="primary"
|
|
v-if="!isNewClass"
|
|
v-if="!isNewClass"
|
|
- @click="addSomeStudent">确 定</el-button>
|
|
|
|
|
|
+ @click="addSomeStudent">确 定</el-button> -->
|
|
<!-- 临时调整或者新建班级 -->
|
|
<!-- 临时调整或者新建班级 -->
|
|
- <el-button type="primary"
|
|
|
|
|
|
+ <!-- <el-button type="primary"
|
|
v-if="isNewClass"
|
|
v-if="isNewClass"
|
|
@click="setInfoMsg">确 定</el-button>
|
|
@click="setInfoMsg">确 定</el-button>
|
|
</div>
|
|
</div>
|
|
- </el-dialog>
|
|
|
|
|
|
+ </el-dialog> -->
|
|
<!-- 老师以及课程设置 -->
|
|
<!-- 老师以及课程设置 -->
|
|
- <el-dialog title="班级设置"
|
|
|
|
|
|
+ <el-dialog
|
|
|
|
+ title="班级设置"
|
|
|
|
+ width="950px"
|
|
|
|
+ :visible.sync="infoVisible"
|
|
|
|
+ :modal-append-to-body="false"
|
|
|
|
+ >
|
|
|
|
+ <classroomSetting
|
|
|
|
+ :teacherList="teacherList"
|
|
|
|
+ :activeType="activeType"
|
|
|
|
+ :courseTypeList="courseTypeList"
|
|
|
|
+ :cooperationList="cooperationList"
|
|
|
|
+ @close="infoVisible = false"
|
|
|
|
+ />
|
|
|
|
+ </el-dialog>
|
|
|
|
+ <!-- <el-dialog title="班级设置"
|
|
width="780px"
|
|
width="780px"
|
|
:visible.sync="infoVisible"
|
|
:visible.sync="infoVisible"
|
|
:modal-append-to-body="false">
|
|
:modal-append-to-body="false">
|
|
|
|
+ <el-alert
|
|
|
|
+ type="warning"
|
|
|
|
+ style="margin-bottom: 20px;"
|
|
|
|
+ :closable="false">
|
|
|
|
+ <template #title>
|
|
|
|
+ <div class="alert-content">
|
|
|
|
+ <span>
|
|
|
|
+ 该班级剩余可排课时长:<strong>1000分钟</strong>
|
|
|
|
+ </span>
|
|
|
|
+ <strong>学员列表>></strong>
|
|
|
|
+ </div>
|
|
|
|
+ </template>
|
|
|
|
+ </el-alert>
|
|
<el-form :inline="true"
|
|
<el-form :inline="true"
|
|
:model="teacherForm"
|
|
:model="teacherForm"
|
|
ref="teacherForm"
|
|
ref="teacherForm"
|
|
:rules="teacherRules"
|
|
:rules="teacherRules"
|
|
label-position="right"
|
|
label-position="right"
|
|
- label-width="100px;">
|
|
|
|
- <el-form-item label="调整方式"
|
|
|
|
|
|
+ label-width="100px;"> -->
|
|
|
|
+ <!-- <el-form-item label="调整方式"
|
|
v-if="!isNewClass"
|
|
v-if="!isNewClass"
|
|
prop="isAdd">
|
|
prop="isAdd">
|
|
<el-radio v-model.trim="teacherForm.isAdd"
|
|
<el-radio v-model.trim="teacherForm.isAdd"
|
|
@@ -299,7 +338,7 @@
|
|
<el-radio v-model.trim="teacherForm.isAdd"
|
|
<el-radio v-model.trim="teacherForm.isAdd"
|
|
label="renew">重新排课</el-radio>
|
|
label="renew">重新排课</el-radio>
|
|
<el-radio v-model.trim="teacherForm.isAdd"
|
|
<el-radio v-model.trim="teacherForm.isAdd"
|
|
- label="onlyUpdateTeacher">修改老师
|
|
|
|
|
|
+ label="onlyUpdateTeacher">修改老师 -->
|
|
<!-- <el-tooltip placement="top"
|
|
<!-- <el-tooltip placement="top"
|
|
popper-class="mTooltip">
|
|
popper-class="mTooltip">
|
|
<div slot="content">
|
|
<div slot="content">
|
|
@@ -308,12 +347,12 @@
|
|
<i class="el-icon-question micon el-tooltip"
|
|
<i class="el-icon-question micon el-tooltip"
|
|
style="font-size: 18px; color: #F56C6C"></i>
|
|
style="font-size: 18px; color: #F56C6C"></i>
|
|
</el-tooltip> -->
|
|
</el-tooltip> -->
|
|
- </el-radio>
|
|
|
|
|
|
+ <!-- </el-radio>
|
|
|
|
|
|
- </el-form-item>
|
|
|
|
|
|
+ </el-form-item> -->
|
|
|
|
|
|
- <br />
|
|
|
|
- <el-form-item label="主教老师"
|
|
|
|
|
|
+ <!-- <br /> -->
|
|
|
|
+ <!-- <el-form-item label="主教老师"
|
|
prop="coreTeacher">
|
|
prop="coreTeacher">
|
|
<el-select v-model.trim="teacherForm.coreTeacher"
|
|
<el-select v-model.trim="teacherForm.coreTeacher"
|
|
placeholder="请选择主教老师"
|
|
placeholder="请选择主教老师"
|
|
@@ -355,9 +394,9 @@
|
|
:value="item.value"
|
|
:value="item.value"
|
|
:label="item.label"></el-option>
|
|
:label="item.label"></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
- </el-form-item>
|
|
|
|
|
|
+ </el-form-item> -->
|
|
<!-- v-if="!isNewClass" -->
|
|
<!-- v-if="!isNewClass" -->
|
|
- <el-form-item label="声部"
|
|
|
|
|
|
+ <!-- <el-form-item label="声部"
|
|
v-if="activeType=='HIGH_ONLINE'&&isNewClass"
|
|
v-if="activeType=='HIGH_ONLINE'&&isNewClass"
|
|
prop="sound">
|
|
prop="sound">
|
|
<el-select v-model.trim="teacherForm.sound"
|
|
<el-select v-model.trim="teacherForm.sound"
|
|
@@ -461,21 +500,21 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div slot="footer"
|
|
<div slot="footer"
|
|
- class="dialog-footer">
|
|
|
|
|
|
+ class="dialog-footer"> -->
|
|
<!-- 1为临时班级 -->
|
|
<!-- 1为临时班级 -->
|
|
- <el-button type="primary"
|
|
|
|
|
|
+ <!-- <el-button type="primary"
|
|
v-if="isTemporary&&isNewClass"
|
|
v-if="isTemporary&&isNewClass"
|
|
- @click="submitTemporary(1)">确 定</el-button>
|
|
|
|
|
|
+ @click="submitTemporary(1)">确 定</el-button> -->
|
|
<!-- 2为新增班级 -->
|
|
<!-- 2为新增班级 -->
|
|
- <el-button type="primary"
|
|
|
|
|
|
+ <!-- <el-button type="primary"
|
|
v-if="!isTemporary&&isNewClass"
|
|
v-if="!isTemporary&&isNewClass"
|
|
- @click="submitTemporary(2)">确 定</el-button>
|
|
|
|
|
|
+ @click="submitTemporary(2)">确 定</el-button> -->
|
|
<!-- 修改班级信息 -->
|
|
<!-- 修改班级信息 -->
|
|
- <el-button type="primary"
|
|
|
|
|
|
+ <!-- <el-button type="primary"
|
|
v-if="!isNewClass"
|
|
v-if="!isNewClass"
|
|
@click="submitTemporary(3)">确 定</el-button>
|
|
@click="submitTemporary(3)">确 定</el-button>
|
|
</div>
|
|
</div>
|
|
- </el-dialog>
|
|
|
|
|
|
+ </el-dialog> -->
|
|
<!-- 新增合奏班 -->
|
|
<!-- 新增合奏班 -->
|
|
<el-dialog title="新增合奏班"
|
|
<el-dialog title="新增合奏班"
|
|
width="700px"
|
|
width="700px"
|
|
@@ -664,6 +703,15 @@
|
|
@click="newClassHight">确 定</el-button>
|
|
@click="newClassHight">确 定</el-button>
|
|
</div>
|
|
</div>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
+ <el-dialog
|
|
|
|
+ title="学员列表"
|
|
|
|
+ :visible.sync="studentListModalVisible"
|
|
|
|
+ >
|
|
|
|
+ <viewStudentList
|
|
|
|
+ :list="studentListModal"
|
|
|
|
+ @close="studentListModalVisible = false"
|
|
|
|
+ />
|
|
|
|
+ </el-dialog>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
@@ -699,9 +747,17 @@ import { diffTimerFormMinute, addTimerFormMinute } from '@/utils/date'
|
|
import dayjs from 'dayjs'
|
|
import dayjs from 'dayjs'
|
|
import axios from "axios";
|
|
import axios from "axios";
|
|
import { classTimeList } from "@/utils/searchArray";
|
|
import { classTimeList } from "@/utils/searchArray";
|
|
|
|
+import viewStudentList from './modals/view-student-list'
|
|
|
|
+import selectStudent from './modals/select-student'
|
|
|
|
+import classroomSetting from './modals/classroom-setting'
|
|
import qs from "qs";
|
|
import qs from "qs";
|
|
export default {
|
|
export default {
|
|
name: "tresetClass",
|
|
name: "tresetClass",
|
|
|
|
+ components: {
|
|
|
|
+ viewStudentList,
|
|
|
|
+ selectStudent,
|
|
|
|
+ classroomSetting
|
|
|
|
+ },
|
|
data () {
|
|
data () {
|
|
return {
|
|
return {
|
|
pickerOptions: {
|
|
pickerOptions: {
|
|
@@ -719,6 +775,8 @@ export default {
|
|
tableList: [],
|
|
tableList: [],
|
|
maxClassList: [],
|
|
maxClassList: [],
|
|
activeSingleList: [],
|
|
activeSingleList: [],
|
|
|
|
+ studentListModal: [],
|
|
|
|
+ studentListModalVisible: false,
|
|
resetCourseVisible: false, // 重新排课弹窗
|
|
resetCourseVisible: false, // 重新排课弹窗
|
|
resetClassVisible: false, // 班级调整弹窗
|
|
resetClassVisible: false, // 班级调整弹窗
|
|
studentVisible: false,
|
|
studentVisible: false,
|
|
@@ -1795,4 +1853,15 @@ export default {
|
|
height: 40px !important;
|
|
height: 40px !important;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+/deep/ .el-alert__content{
|
|
|
|
+ display: block;
|
|
|
|
+ width: 100%;
|
|
|
|
+}
|
|
|
|
+.alert-content{
|
|
|
|
+ display: flex;
|
|
|
|
+ justify-content: space-between;
|
|
|
|
+ >strong{
|
|
|
|
+ cursor: pointer;
|
|
|
|
+ }
|
|
|
|
+}
|
|
</style>
|
|
</style>
|