123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- <template>
- <div class='courseInfo'>
- <div class="tableWrap tableMargin">
- <el-table :data='teamList'
- :header-cell-style="{background:'#EDEEF0',color:'#444'}">
- <el-table-column label="VIP编号" prop="vipClassId">
- </el-table-column>
- <el-table-column label="VIP课名称" prop="vipClassName">
- </el-table-column>
- <el-table-column label="VIP课状态">
- <template slot-scope="scope">
- {{ scope.row.status | coursesStatus }}
- </template>
- </el-table-column>
- <el-table-column label="班级人数" prop="studentNum">
- </el-table-column>
- <el-table-column label="课程单价">
- <template slot-scope="scope">
- 线上:{{ scope.row.onlineClassesUnitPrice }} <br />
- 线下:{{ scope.row.offlineClassesUnitPrice }}
- </template>
- </el-table-column>
- <el-table-column label="活动方案" prop="activityName">
- </el-table-column>
- <el-table-column label="剩余课时">
- <template slot-scope="scope">
- {{ scope.row.totalClassTimes - scope.row.currentClassTimes }}
- </template>
- </el-table-column>
- <el-table-column label="月均消耗" prop="monthAvg">
- </el-table-column>
- <el-table-column label="开课时间">
- <template slot-scope="scope">
- {{ scope.row.paymentExpireDate | formatTimer }}
- </template>
- </el-table-column>
- <el-table-column label="截止时间">
- <template slot-scope="scope">
- {{ scope.row.coursesExpireDate | formatTimer }}
- </template>
- </el-table-column>
- <el-table-column label="申请时间">
- <template slot-scope="scope">
- {{ scope.row.createDate | formatTimer }}
- </template>
- </el-table-column>
- </el-table>
- <pagination :total="pageInfo.total"
- :page.sync="pageInfo.page"
- :limit.sync="pageInfo.limit"
- :page-sizes="pageInfo.page_size"
- @pagination="getList" />
- </div>
- </div>
- </template>
- <script>
- import { getTeacherVipClass } from '@/api/teacherManager'
- import pagination from '@/components/Pagination/index'
- import store from '@/store'
- export default {
- components: {
- pagination
- },
- data () {
- return {
- teamList: [],
- organId: store.getters.organ,
- teacherId: this.$route.query.teacherId,
- pageInfo: {
- // 分页规则
- limit: 10, // 限制显示条数
- page: 1, // 当前页
- total: 1, // 总条数
- page_size: [10, 20, 40, 50] // 选择限制显示条数
- }
- }
- },
- mounted() {
- this.getList()
- },
- methods: {
- getList() {
- getTeacherVipClass({
- rows: this.pageInfo.limit,
- page: this.pageInfo.page,
- teacherId: this.teacherId
- }).then(res => {
- if(res.code == 200) {
- this.teamList = res.data.rows
- this.pageInfo.total = res.data.total
- }
- })
- }
- }
- }
- </script>
- <style lang="scss" scope>
- .courseInfo {
- h4 {
- margin-bottom: 20px;
- }
- .tableMargin {
- margin-top: 20px;
- }
- }
- </style>
|