|
@@ -5,7 +5,12 @@
|
|
:header-cell-style="{background:'#EDEEF0',color:'#444'}">
|
|
:header-cell-style="{background:'#EDEEF0',color:'#444'}">
|
|
<el-table-column align="center"
|
|
<el-table-column align="center"
|
|
prop="musicGroupId"
|
|
prop="musicGroupId"
|
|
- label="乐团编号"></el-table-column>
|
|
|
|
|
|
+ width="180px"
|
|
|
|
+ label="乐团编号">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <copy-text>{{ scope.row.musicGroupId }}</copy-text>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
<el-table-column align="center"
|
|
<el-table-column align="center"
|
|
prop="joinMusicGroupDate"
|
|
prop="joinMusicGroupDate"
|
|
label="入团时间">
|
|
label="入团时间">
|
|
@@ -13,7 +18,8 @@
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column align="center"
|
|
<el-table-column align="center"
|
|
prop="musicGroupName"
|
|
prop="musicGroupName"
|
|
- label="乐团名称"></el-table-column>
|
|
|
|
|
|
+ label="乐团名称">
|
|
|
|
+ </el-table-column>
|
|
<el-table-column align="center"
|
|
<el-table-column align="center"
|
|
label="乐团状态">
|
|
label="乐团状态">
|
|
<template slot-scope="scope">{{ scope.row.musicGroupStatus | musicGroupType }}</template>
|
|
<template slot-scope="scope">{{ scope.row.musicGroupStatus | musicGroupType }}</template>
|
|
@@ -53,7 +59,7 @@
|
|
label="操作">
|
|
label="操作">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-button @click="onCourse(scope.row)"
|
|
<el-button @click="onCourse(scope.row)"
|
|
- v-permission="'studentManage/findStudentCourses'"
|
|
|
|
|
|
+ v-permission="'studentAttendance/findStudentAttendance'"
|
|
type="text">排课详情</el-button>
|
|
type="text">排课详情</el-button>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -71,10 +77,10 @@
|
|
class="searchForm"
|
|
class="searchForm"
|
|
v-model.trim="searchForm">
|
|
v-model.trim="searchForm">
|
|
<el-form-item>
|
|
<el-form-item>
|
|
- <el-select v-model.trim="searchForm.classGroupType"
|
|
|
|
|
|
+ <el-select v-model.trim="searchForm.courseScheduleType"
|
|
clearable
|
|
clearable
|
|
filterable
|
|
filterable
|
|
- placeholder="课程类型">
|
|
|
|
|
|
+ placeholder="请选择课程类型">
|
|
<el-option v-for="(item, index) in courseArray"
|
|
<el-option v-for="(item, index) in courseArray"
|
|
:key="index"
|
|
:key="index"
|
|
:label="item.label"
|
|
:label="item.label"
|
|
@@ -92,7 +98,11 @@
|
|
:value="item.value"></el-option>
|
|
:value="item.value"></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item>
|
|
|
|
|
|
+ <!-- 换接口做修改 -->
|
|
|
|
+ <el-form-item prop="teacherId">
|
|
|
|
+ <remote-search :commit='"setTeachers"' v-model='searchForm.teacherId' />
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <!-- <el-form-item>
|
|
<el-input placeholder="班级名称"
|
|
<el-input placeholder="班级名称"
|
|
@keyup.enter.native="search"
|
|
@keyup.enter.native="search"
|
|
v-model.trim="searchForm.classGroupName"></el-input>
|
|
v-model.trim="searchForm.classGroupName"></el-input>
|
|
@@ -101,47 +111,54 @@
|
|
<el-input placeholder="老师姓名"
|
|
<el-input placeholder="老师姓名"
|
|
@keyup.enter.native="search"
|
|
@keyup.enter.native="search"
|
|
v-model.trim="searchForm.teacherName"></el-input>
|
|
v-model.trim="searchForm.teacherName"></el-input>
|
|
- </el-form-item>
|
|
|
|
|
|
+ </el-form-item> -->
|
|
<el-form-item>
|
|
<el-form-item>
|
|
- <div @click="search"
|
|
|
|
- class="searchBtn">搜索</div>
|
|
|
|
|
|
+ <el-button type="danger" @click="search">搜索</el-button>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
- <!-- 查询列表 -->
|
|
|
|
- <!-- <div v-if="coursesShow" class="searchWrap">
|
|
|
|
- <p>查询条件:</p>
|
|
|
|
- <div class="searchItem"
|
|
|
|
- @click="closeSearch(item)"
|
|
|
|
- v-for="(item,index) in searchLsit" :key="index">
|
|
|
|
- {{ item.key }}
|
|
|
|
- <i class="el-icon-close"></i>
|
|
|
|
- </div>
|
|
|
|
- </div>-->
|
|
|
|
<div v-if="coursesShow"
|
|
<div v-if="coursesShow"
|
|
class="tableWrap">
|
|
class="tableWrap">
|
|
<el-table :data="coursesInfo"
|
|
<el-table :data="coursesInfo"
|
|
:header-cell-style="{background:'#EDEEF0',color:'#444'}">
|
|
:header-cell-style="{background:'#EDEEF0',color:'#444'}">
|
|
<el-table-column align="center"
|
|
<el-table-column align="center"
|
|
- prop="classGroupId"
|
|
|
|
- label="编号"></el-table-column>
|
|
|
|
|
|
+ prop="courseScheduleId"
|
|
|
|
+ label="课程编号">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <copy-text>{{ scope.row.courseScheduleId }}</copy-text>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
<el-table-column align="center"
|
|
<el-table-column align="center"
|
|
- prop="courseDate"
|
|
|
|
- label="时间">
|
|
|
|
- <template slot-scope="scope">{{ scope.row.courseDate | dateForMinFormat }}</template>
|
|
|
|
|
|
+ width="180px"
|
|
|
|
+ label="上课时间">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ {{ scope.row.courseSchedule.classDate | dayjsFormat }}
|
|
|
|
+ {{
|
|
|
|
+ scope.row.courseSchedule.startClassTime | dayjsFormatMinute
|
|
|
|
+ }}-{{
|
|
|
|
+ scope.row.courseSchedule.endClassTime | dayjsFormatMinute
|
|
|
|
+ }}
|
|
|
|
+ </template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column align="center"
|
|
<el-table-column align="center"
|
|
- prop="classGroupName"
|
|
|
|
- label="班级名称"></el-table-column>
|
|
|
|
|
|
+ prop="courseSchedule.name"
|
|
|
|
+ label="课程名称"></el-table-column>
|
|
<el-table-column align="center"
|
|
<el-table-column align="center"
|
|
label="课程类型">
|
|
label="课程类型">
|
|
- <template slot-scope="scope">{{ scope.row.classGroupType | coursesType }}</template>
|
|
|
|
|
|
+ <template slot-scope="scope">{{ scope.row.courseSchedule.type | coursesType }}</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column align="center"
|
|
<el-table-column align="center"
|
|
label="课程状态">
|
|
label="课程状态">
|
|
- <template slot-scope="scope">{{ scope.row.courseStatus | coursesStatus }}</template>
|
|
|
|
|
|
+ <template slot-scope="scope">{{ scope.row.courseSchedule.status | coursesStatus }}</template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column align="center" label="是否被合并">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <div>
|
|
|
|
+ {{ scope.row.courseSchedule.newCourseId > 0 ? '是' : '否' }}
|
|
|
|
+ </div>
|
|
|
|
+ </template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column align="center"
|
|
<el-table-column align="center"
|
|
- prop="teacherName"
|
|
|
|
|
|
+ prop="courseSchedule.teacherName"
|
|
label="老师姓名"></el-table-column>
|
|
label="老师姓名"></el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
<pagination :total="pageInfo.total"
|
|
<pagination :total="pageInfo.total"
|
|
@@ -157,7 +174,7 @@
|
|
<script>
|
|
<script>
|
|
import pagination from "@/components/Pagination/index";
|
|
import pagination from "@/components/Pagination/index";
|
|
import {musicCourseType} from "@/utils/searchArray"
|
|
import {musicCourseType} from "@/utils/searchArray"
|
|
-
|
|
|
|
|
|
+import { findStudentAttendance } from "@/api/buildTeam";
|
|
import {
|
|
import {
|
|
findStudentMusicGroups,
|
|
findStudentMusicGroups,
|
|
findStudentCourses
|
|
findStudentCourses
|
|
@@ -173,12 +190,11 @@ export default {
|
|
coursesShow: false, // 排课列表是否显示
|
|
coursesShow: false, // 排课列表是否显示
|
|
searchLsit: [],
|
|
searchLsit: [],
|
|
searchForm: {
|
|
searchForm: {
|
|
- studentId: null,
|
|
|
|
|
|
+ studentID: null,
|
|
musicGroupId: null,
|
|
musicGroupId: null,
|
|
- classGroupType: null,
|
|
|
|
|
|
+ courseScheduleType: null,
|
|
courseStatus: null,
|
|
courseStatus: null,
|
|
- classGroupName: null,
|
|
|
|
- teacherName: null
|
|
|
|
|
|
+ teacherId: null
|
|
},
|
|
},
|
|
courseArray: musicCourseType,
|
|
courseArray: musicCourseType,
|
|
courseStatus: [
|
|
courseStatus: [
|
|
@@ -197,12 +213,12 @@ export default {
|
|
},
|
|
},
|
|
mounted () {
|
|
mounted () {
|
|
this.userId = this.$route.query.userId;
|
|
this.userId = this.$route.query.userId;
|
|
- this.searchForm.studentId = this.$route.query.userId;
|
|
|
|
|
|
+ this.searchForm.studentID = this.$route.query.userId;
|
|
this.__init();
|
|
this.__init();
|
|
},
|
|
},
|
|
activated () {
|
|
activated () {
|
|
this.userId = this.$route.query.userId;
|
|
this.userId = this.$route.query.userId;
|
|
- this.searchForm.studentId = this.$route.query.userId;
|
|
|
|
|
|
+ this.searchForm.studentID = this.$route.query.userId;
|
|
this.__init();
|
|
this.__init();
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
@@ -216,12 +232,11 @@ export default {
|
|
onCourse (row) {
|
|
onCourse (row) {
|
|
this.coursesShow = true;
|
|
this.coursesShow = true;
|
|
this.searchForm = {
|
|
this.searchForm = {
|
|
- studentId: this.$route.query.userId,
|
|
|
|
|
|
+ studentID: this.$route.query.userId,
|
|
musicGroupId: row.musicGroupId,
|
|
musicGroupId: row.musicGroupId,
|
|
- classGroupType: null,
|
|
|
|
|
|
+ courseScheduleType: null,
|
|
courseStatus: null,
|
|
courseStatus: null,
|
|
- classGroupName: null,
|
|
|
|
- teacherName: null
|
|
|
|
|
|
+ teacherId: null
|
|
};
|
|
};
|
|
this.getStudentCourses();
|
|
this.getStudentCourses();
|
|
},
|
|
},
|
|
@@ -233,7 +248,8 @@ export default {
|
|
let params = this.searchForm;
|
|
let params = this.searchForm;
|
|
params.rows = this.pageInfo.limit;
|
|
params.rows = this.pageInfo.limit;
|
|
params.page = this.pageInfo.page;
|
|
params.page = this.pageInfo.page;
|
|
- findStudentCourses(params).then(res => {
|
|
|
|
|
|
+ console.log(params)
|
|
|
|
+ findStudentAttendance(params).then(res => {
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
this.coursesInfo = res.data.rows;
|
|
this.coursesInfo = res.data.rows;
|
|
this.pageInfo.total = res.data.total;
|
|
this.pageInfo.total = res.data.total;
|