123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132 |
- <template>
- <div class="c-container">
- <!-- 搜索标题 -->
- <!-- <el-form :inline="true"
- class="searchForm"
- v-model="searchForm">
- <el-form-item>
- <el-select v-model="searchForm.name"
- placeholder="课程类型">
- <el-option label="哈哈哈"
- value="1"></el-option>
- </el-select>
- </el-form-item>
- </el-form> -->
- <!-- 列表 -->
- <!-- <div class="newBand"
- @click="resetClass">班级调整</div> -->
- <div class="tableWrap">
- <el-table :data='tableList'
- :header-cell-style="{background:'#EDEEF0',color:'#444'}">
- <el-table-column align='center'
- prop="classGroupName"
- label="班级名称">
- </el-table-column>
- <el-table-column align='center'
- label="课程类型">
- <template slot-scope="scope">
- <div>
- {{ scope.row.classGroupType | coursesType}}
- </div>
- </template>
- </el-table-column>
- <el-table-column align='center'
- prop="masterTeacher"
- label="主教老师">
- </el-table-column>
- <el-table-column align='center'
- prop='subTeacher'
- label="助教老师">
- </el-table-column>
- <el-table-column align='center'
- prop="currentClassTimes"
- label="当前课次">
- <template slot-scope="scope">
- <div>
- {{ scope.row.currentClassTimes+'/'+scope.row.totalClassTimes}}
- </div>
- </template>
- </el-table-column>
- <el-table-column align='center'
- prop="studyNum"
- label="在读人数">
- </el-table-column>
- <el-table-column align='center'
- prop="quitNum"
- label="退团人数">
- </el-table-column>
- <!-- <el-table-column align='center'
- label="新增人数">
- </el-table-column> -->
- <!-- <el-table-column align='center'
- label="退团人数">
- <template slot-scope="scope">
- <div>
- <el-button type='text'>添加学员</el-button>
- <el-button type='text'>老师修改</el-button>
- </div>
- </template>
- </el-table-column> -->
- </el-table>
- <pagination :total="rules.total"
- :page.sync="rules.page"
- :limit.sync="rules.limit"
- :page-sizes="rules.page_size"
- @pagination="getList" />
- </div>
- </div>
- </template>
- <script>
- import pagination from '@/components/Pagination/index'
- import { getClassList } from '@/api/buildTeam'
- export default {
- props: {
- teamid: {
- type: String,
- required: true
- },
- },
- data () {
- return {
- searchLsit: [],
- searchForm: {
- name: '',
- status: ''
- },
- tableList: [],
- rules: {
- // 分页规则
- limit: 10, // 限制显示条数
- page: 1, // 当前页
- total: 0, // 总条数
- page_size: [10, 20, 40, 50] // 选择限制显示条数
- },
- }
- },
- components: {
- pagination
- },
- mounted () {
- this.getList();
- },
- methods: {
- getList () {
- // search: this.teamid
- getClassList({ search: this.teamid, page: this.rules.page, rows: this.rules.limit }).then(res => {
- if (res.code == 200) {
- this.tableList = res.data.rows;
- this.rules.total = res.data.total
- }
- })
- },
- resetClass () {
- // 跳转到班级详情页
- this.$router.push({ path: '/business/resetClass', query: { id: this.teamid } })
- }
- }
- }
- </script>
- <style lang="scss" scope>
- </style>
|