|
@@ -1,3 +1,4 @@
|
|
|
+
|
|
|
<template>
|
|
|
<div class='studentvip'>
|
|
|
<!-- <div class="topCard">
|
|
@@ -40,42 +41,67 @@
|
|
|
<div class="tableWrap">
|
|
|
<el-table :header-cell-style="{background:'#EDEEF0',color:'#444'}"
|
|
|
:data='tableList'>
|
|
|
- <el-table-column label="时间"
|
|
|
- prop='courseDate'>
|
|
|
+ <el-table-column label="VIP编号" align='center'
|
|
|
+ prop='vipGroupId'>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="课程名称"
|
|
|
- prop="classGroupName">
|
|
|
+ <el-table-column label="VIP课名称" align='center'
|
|
|
+ prop="vipGroupName">
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="课程类型">
|
|
|
+ <el-table-column label="VIP课状态" align='center'>
|
|
|
<template slot-scope="scope">
|
|
|
- {{ scope.row.teachMode == 'ONLINE' ? '线上' : '线下' }}
|
|
|
+ {{ scope.row.vipGroupStatus | vipCourseStatus }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <!-- <el-table-column label="当前课次">
|
|
|
- </el-table-column> -->
|
|
|
- <el-table-column label="指导老师"
|
|
|
- prop="realName">
|
|
|
+ <el-table-column label="指导老师" align='center'
|
|
|
+ prop="teacherName">
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="学员数量"
|
|
|
+ <el-table-column label="班级人数" align='center'
|
|
|
prop="studentNum">
|
|
|
</el-table-column>
|
|
|
- <!-- <el-table-column label="剩余课时">
|
|
|
+ <el-table-column label="活动方案" align='center'
|
|
|
+ prop="activeName">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="开课时间" align='center'
|
|
|
+ prop="courseStartDate">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="当前课次" align='center' prop="currentClassTimes">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="操作" align='center'>
|
|
|
<template slot-scope="scope">
|
|
|
- {{ scope.row.totalClassTimes +'/'+ scope.row.currentClassTimes }}
|
|
|
+ <el-button @click="onCourse(scope.row)"
|
|
|
+ type="text">课表</el-button>
|
|
|
</template>
|
|
|
- </el-table-column> -->
|
|
|
+ </el-table-column>
|
|
|
</el-table>
|
|
|
<pagination :total="pageInfo.total"
|
|
|
:page.sync="pageInfo.page"
|
|
|
:limit.sync="pageInfo.limit"
|
|
|
:page-sizes="pageInfo.page_size"
|
|
|
@pagination="getCourseList" />
|
|
|
+
|
|
|
+
|
|
|
+ <el-dialog :title="dialogTitle" :visible.sync="dialogTableVisible">
|
|
|
+ <el-table :data="gridData">
|
|
|
+ <el-table-column prop="courseDate" label="时间" align='center' width="150"></el-table-column>
|
|
|
+ <el-table-column prop="classGroupName" label="课程名称" align='center' width="200"></el-table-column>
|
|
|
+ <el-table-column label="课程类型" align='center'>
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{ scope.row.teachMode == 'ONLINE' ? '线上' : '线下' }}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="courseStatus" align='center' label="课程状态">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{ scope.row.courseStatus |coursesStatus }}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
import pagination from '@/components/Pagination/index'
|
|
|
-import { findStudentVipGroups, findStudentCourses } from '@/api/studentManager'
|
|
|
+import { findStudentVipGroups, findStudentVipGroupClass, findStudentCourses } from '@/api/studentManager'
|
|
|
export default {
|
|
|
name: 'studentvip',
|
|
|
components: { pagination },
|
|
@@ -86,6 +112,7 @@ export default {
|
|
|
classGroupName: null
|
|
|
},
|
|
|
checkIndex: null, // 选中的课程
|
|
|
+ dialogTableVisible: false,
|
|
|
searchLsit: [],
|
|
|
tableList: [],
|
|
|
courseList: [],
|
|
@@ -96,7 +123,8 @@ export default {
|
|
|
total: 0, // 总条数
|
|
|
page_size: [10, 20, 40, 50] // 选择限制显示条数
|
|
|
},
|
|
|
-
|
|
|
+ dialogTitle: '',
|
|
|
+ gridData: []
|
|
|
}
|
|
|
},
|
|
|
mounted () {
|
|
@@ -111,13 +139,22 @@ export default {
|
|
|
let params = this.searchForm
|
|
|
params.rows = this.pageInfo.limit
|
|
|
params.page = this.pageInfo.page
|
|
|
- findStudentVipGroups(params).then(res => {
|
|
|
+ findStudentVipGroupClass(params).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
this.tableList = res.data.rows
|
|
|
this.pageInfo.total = res.data.total
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ onCourse(row) {
|
|
|
+ findStudentVipGroups({ vipGroupId: row.vipGroupId }).then(res => {
|
|
|
+ this.dialogTitle = row.vipGroupName
|
|
|
+ if(res.code == 200) {
|
|
|
+ this.gridData = res.data.rows
|
|
|
+ this.dialogTableVisible = true
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
onSearch () {
|
|
|
this.pageInfo.page = 1
|
|
|
this.getCourseList()
|