|
@@ -18,7 +18,7 @@
|
|
|
v-model.trim="searchForm.search"
|
|
|
clearable
|
|
|
@keyup.enter.native="search"
|
|
|
- placeholder="请输入乐团编号"
|
|
|
+ placeholder="请输入课班级编号"
|
|
|
></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item prop="organIdList">
|
|
@@ -39,6 +39,21 @@
|
|
|
></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item>
|
|
|
+ <el-select
|
|
|
+ v-model.trim="searchForm.groupType"
|
|
|
+ clearable
|
|
|
+ filterable
|
|
|
+ placeholder="课程组类型"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="(item, index) in courseListType"
|
|
|
+ :key="index"
|
|
|
+ :value="item.value"
|
|
|
+ :label="item.label"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
<!-- musicClassTypeList -->
|
|
|
<el-form-item prop="type">
|
|
|
<el-select v-model.trim="searchForm.type" clearable filterable>
|
|
@@ -61,7 +76,7 @@
|
|
|
:header-cell-style="{ background: '#EDEEF0', color: '#444' }"
|
|
|
:data="tableList"
|
|
|
>
|
|
|
- <el-table-column align="center" prop="musicGroupId" label="乐团编号">
|
|
|
+ <el-table-column align="center" prop="musicGroupId" label="乐团&课程组编号">
|
|
|
<template slot-scope="scope">
|
|
|
<copy-text>{{ scope.row.musicGroupId }}</copy-text>
|
|
|
</template>
|
|
@@ -180,6 +195,7 @@ import axios from "axios";
|
|
|
import { getToken } from "@/utils/auth";
|
|
|
import pagination from "@/components/Pagination/index";
|
|
|
import load from "@/utils/loading";
|
|
|
+import { courseListType } from "@/utils/searchArray";
|
|
|
import { musicClassTypeList } from "@/utils/searchArray";
|
|
|
import { getClassGroupPage } from "@/api/buildTeam";
|
|
|
import { permission } from "@/utils/directivePage";
|
|
@@ -192,7 +208,9 @@ export default {
|
|
|
search: null,
|
|
|
organIdList: [],
|
|
|
type: "",
|
|
|
+ groupType: "MUSIC",
|
|
|
},
|
|
|
+ courseListType: courseListType,
|
|
|
musicClassTypeList,
|
|
|
tableList: [],
|
|
|
compoundList: [],
|
|
@@ -242,6 +260,7 @@ export default {
|
|
|
},
|
|
|
onReSet() {
|
|
|
this.$refs.searchForm.resetFields();
|
|
|
+ this.searchForm.groupType = 'MUSIC'
|
|
|
this.search();
|
|
|
},
|
|
|
addCompound(row) {
|
|
@@ -251,25 +270,28 @@ export default {
|
|
|
this.compoundList.push(row);
|
|
|
this.compoundList = [...new Set(this.compoundList)];
|
|
|
|
|
|
- this.compoundList.forEach((classes) => {
|
|
|
- if (classes.type == "HIGH") {
|
|
|
- this.hightCount++;
|
|
|
- }
|
|
|
- if (classes.type == "HIGH_ONLINE") {
|
|
|
- this.hightOnlineCount++;
|
|
|
- }
|
|
|
- });
|
|
|
- if(this.hightOnlineCount&&this.hightOnlineCount != this.compoundList.length){
|
|
|
+ this.compoundList.forEach((classes) => {
|
|
|
+ if (classes.type == "HIGH") {
|
|
|
+ this.hightCount++;
|
|
|
+ }
|
|
|
+ if (classes.type == "HIGH_ONLINE") {
|
|
|
+ this.hightOnlineCount++;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ if (
|
|
|
+ this.hightOnlineCount &&
|
|
|
+ this.hightOnlineCount != this.compoundList.length
|
|
|
+ ) {
|
|
|
this.$message.error("线上基础技能班仅能和线上基础技能班合并");
|
|
|
- this.hightOnlineCount = 0;
|
|
|
- this.hightCount = 0;
|
|
|
- this.compoundList = [];
|
|
|
+ this.hightOnlineCount = 0;
|
|
|
+ this.hightCount = 0;
|
|
|
+ this.compoundList = [];
|
|
|
}
|
|
|
- if(this.hightCount&&this.hightCount != this.compoundList.length){
|
|
|
- this.$message.error("基础技能班仅能和基础技能班合并");
|
|
|
- this.hightOnlineCount = 0;
|
|
|
- this.hightCount = 0;
|
|
|
- this.compoundList = [];
|
|
|
+ if (this.hightCount && this.hightCount != this.compoundList.length) {
|
|
|
+ this.$message.error("基础技能班仅能和基础技能班合并");
|
|
|
+ this.hightOnlineCount = 0;
|
|
|
+ this.hightCount = 0;
|
|
|
+ this.compoundList = [];
|
|
|
}
|
|
|
},
|
|
|
isAddCom(row) {
|