|
@@ -30,6 +30,7 @@
|
|
v-model="searchForm">
|
|
v-model="searchForm">
|
|
<el-form-item>
|
|
<el-form-item>
|
|
<el-input placeholder="课程名称"
|
|
<el-input placeholder="课程名称"
|
|
|
|
+ @keyup.enter.native='onSearch'
|
|
v-model="searchForm.classGroupName"></el-input>
|
|
v-model="searchForm.classGroupName"></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item>
|
|
<el-form-item>
|
|
@@ -41,32 +42,42 @@
|
|
<div class="tableWrap">
|
|
<div class="tableWrap">
|
|
<el-table :header-cell-style="{background:'#EDEEF0',color:'#444'}"
|
|
<el-table :header-cell-style="{background:'#EDEEF0',color:'#444'}"
|
|
:data='tableList'>
|
|
:data='tableList'>
|
|
- <el-table-column label="VIP编号" align='center'
|
|
|
|
|
|
+ <el-table-column label="VIP编号"
|
|
|
|
+ align='center'
|
|
prop='vipGroupId'>
|
|
prop='vipGroupId'>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column label="VIP课名称" align='center'
|
|
|
|
|
|
+ <el-table-column label="VIP课名称"
|
|
|
|
+ align='center'
|
|
prop="vipGroupName">
|
|
prop="vipGroupName">
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column label="VIP课状态" align='center'>
|
|
|
|
|
|
+ <el-table-column label="VIP课状态"
|
|
|
|
+ align='center'>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
{{ scope.row.vipGroupStatus | vipCourseStatus }}
|
|
{{ scope.row.vipGroupStatus | vipCourseStatus }}
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column label="指导老师" align='center'
|
|
|
|
|
|
+ <el-table-column label="指导老师"
|
|
|
|
+ align='center'
|
|
prop="teacherName">
|
|
prop="teacherName">
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column label="班级人数" align='center'
|
|
|
|
|
|
+ <el-table-column label="班级人数"
|
|
|
|
+ align='center'
|
|
prop="studentNum">
|
|
prop="studentNum">
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column label="活动方案" align='center'
|
|
|
|
|
|
+ <el-table-column label="活动方案"
|
|
|
|
+ align='center'
|
|
prop="activeName">
|
|
prop="activeName">
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column label="开课时间" align='center'
|
|
|
|
|
|
+ <el-table-column label="开课时间"
|
|
|
|
+ align='center'
|
|
prop="courseStartDate">
|
|
prop="courseStartDate">
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column label="当前课次" align='center' prop="currentClassTimes">
|
|
|
|
|
|
+ <el-table-column label="当前课次"
|
|
|
|
+ align='center'
|
|
|
|
+ prop="currentClassTimes">
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column label="操作" align='center'>
|
|
|
|
|
|
+ <el-table-column label="操作"
|
|
|
|
+ align='center'>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-button @click="onCourse(scope.row)"
|
|
<el-button @click="onCourse(scope.row)"
|
|
type="text">课表</el-button>
|
|
type="text">课表</el-button>
|
|
@@ -78,18 +89,27 @@
|
|
:limit.sync="pageInfo.limit"
|
|
:limit.sync="pageInfo.limit"
|
|
:page-sizes="pageInfo.page_size"
|
|
:page-sizes="pageInfo.page_size"
|
|
@pagination="getCourseList" />
|
|
@pagination="getCourseList" />
|
|
-
|
|
|
|
|
|
|
|
- <el-dialog :title="dialogTitle" :visible.sync="dialogTableVisible">
|
|
|
|
|
|
+ <el-dialog :title="dialogTitle"
|
|
|
|
+ :visible.sync="dialogTableVisible">
|
|
<el-table :data="gridData">
|
|
<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">
|
|
|
|
|
|
+ <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' ? '线上' : '线下' }}
|
|
{{ scope.row.teachMode == 'ONLINE' ? '线上' : '线下' }}
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column prop="courseStatus" align='center' label="课程状态">
|
|
|
|
|
|
+ <el-table-column prop="courseStatus"
|
|
|
|
+ align='center'
|
|
|
|
+ label="课程状态">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
{{ scope.row.courseStatus |coursesStatus }}
|
|
{{ scope.row.courseStatus |coursesStatus }}
|
|
</template>
|
|
</template>
|
|
@@ -146,10 +166,10 @@ export default {
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- onCourse(row) {
|
|
|
|
|
|
+ onCourse (row) {
|
|
findStudentVipGroups({ vipGroupId: row.vipGroupId }).then(res => {
|
|
findStudentVipGroups({ vipGroupId: row.vipGroupId }).then(res => {
|
|
this.dialogTitle = row.vipGroupName
|
|
this.dialogTitle = row.vipGroupName
|
|
- if(res.code == 200) {
|
|
|
|
|
|
+ if (res.code == 200) {
|
|
this.gridData = res.data.rows
|
|
this.gridData = res.data.rows
|
|
this.dialogTableVisible = true
|
|
this.dialogTableVisible = true
|
|
}
|
|
}
|