|
@@ -0,0 +1,145 @@
|
|
|
+<!-- -->
|
|
|
+<template>
|
|
|
+ <div class="m-core">
|
|
|
+ <el-form :inline="true"
|
|
|
+ :model="searchForm">
|
|
|
+ <el-form-item>
|
|
|
+ <el-select placeholder="班级类型"
|
|
|
+ v-model="searchForm.classType"
|
|
|
+ clearable>
|
|
|
+ <el-option label="符合预期"
|
|
|
+ value="1"></el-option>
|
|
|
+ <el-option label="不符合预期"
|
|
|
+ value="0"></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ <div class="buttonWrap">
|
|
|
+ <div class="newBand">新建班级</div>
|
|
|
+ <div class="newBand">批量排课</div>
|
|
|
+ <div class="newBand">删除排课</div>
|
|
|
+ <p class="expectMsg">基础技能班参考数量: 线上:XX/线下:XX</p>
|
|
|
+ </div>
|
|
|
+ <div class="tableWrap">
|
|
|
+ <el-table style="width: 100%"
|
|
|
+ :header-cell-style="{background:'#EDEEF0',color:'#444'}"
|
|
|
+ :data="tableList">
|
|
|
+ <el-table-column align="center"
|
|
|
+ prop="studentId"
|
|
|
+ label="班级名称"></el-table-column>
|
|
|
+ <el-table-column align="center"
|
|
|
+ prop="studentId"
|
|
|
+ label="班级类型"></el-table-column>
|
|
|
+ <el-table-column align="center"
|
|
|
+ prop="studentId"
|
|
|
+ label="班级人数"></el-table-column>
|
|
|
+ <el-table-column align="center"
|
|
|
+ prop="studentId"
|
|
|
+ label="主教老师名称"></el-table-column>
|
|
|
+ <el-table-column align="center"
|
|
|
+ prop="studentId"
|
|
|
+ label="助教人数"></el-table-column>
|
|
|
+ <el-table-column align="center"
|
|
|
+ prop="studentId"
|
|
|
+ label="排课课次"></el-table-column>
|
|
|
+ <el-table-column align="center"
|
|
|
+ prop="studentId"
|
|
|
+ label="操作">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <div>
|
|
|
+ <el-button type="text">班级调整</el-button>
|
|
|
+ <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 axios from "axios";
|
|
|
+import { getToken } from "@/utils/auth";
|
|
|
+import pagination from "@/components/Pagination/index";
|
|
|
+import load from "@/utils/loading";
|
|
|
+import { getTeacher, getEmployeeOrgan } from "@/api/buildTeam";
|
|
|
+
|
|
|
+export default {
|
|
|
+ components: { pagination },
|
|
|
+ data () {
|
|
|
+ return {
|
|
|
+ searchForm: {
|
|
|
+ classType: null
|
|
|
+ },
|
|
|
+ teacherList: [],
|
|
|
+ tableList: [],
|
|
|
+ organList: [],
|
|
|
+ rules: {
|
|
|
+ // 分页规则
|
|
|
+ limit: 10, // 限制显示条数
|
|
|
+ page: 1, // 当前页
|
|
|
+ total: 0, // 总条数
|
|
|
+ page_size: [10, 20, 40, 50] // 选择限制显示条数
|
|
|
+ },
|
|
|
+ isInit: false
|
|
|
+ };
|
|
|
+ },
|
|
|
+ //生命周期 - 创建完成(可以访问当前this实例)
|
|
|
+ created () { },
|
|
|
+ //生命周期 - 挂载完成(可以访问DOM元素)
|
|
|
+ mounted () {
|
|
|
+ getTeacher().then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.teacherList = res.data;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ getEmployeeOrgan().then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.organList = res.data;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ // 获取分部
|
|
|
+ if (!isInit) {
|
|
|
+ this.init();
|
|
|
+ }
|
|
|
+
|
|
|
+ },
|
|
|
+ activated () {
|
|
|
+ if (!isInit) {
|
|
|
+ this.init();
|
|
|
+ }
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ init () {
|
|
|
+ this.init = true;
|
|
|
+ this.init = false;
|
|
|
+ },
|
|
|
+ getList () { }
|
|
|
+ }
|
|
|
+};
|
|
|
+</script>
|
|
|
+<style lang='scss' scoped>
|
|
|
+.m-core {
|
|
|
+ background-color: #fff;
|
|
|
+ padding: 20px;
|
|
|
+}
|
|
|
+.buttonWrap {
|
|
|
+ display: flex;
|
|
|
+ justify-content: flex-start;
|
|
|
+ .newBand {
|
|
|
+ margin-right: 20px;
|
|
|
+ }
|
|
|
+ .expectMsg {
|
|
|
+ position: relative;
|
|
|
+ top: 3px;
|
|
|
+ line-height: 36px;
|
|
|
+ font-size: 14px;
|
|
|
+ }
|
|
|
+}
|
|
|
+</style>
|