|
|
|
@ -5,10 +5,16 @@
|
|
|
|
<div ref="lxHeader">
|
|
|
|
<div ref="lxHeader">
|
|
|
|
<lx-header icon="md-apps" :text="$route.meta.title" style="margin-bottom: 10px; border: 0px; margin-top: 15px">
|
|
|
|
<lx-header icon="md-apps" :text="$route.meta.title" style="margin-bottom: 10px; border: 0px; margin-top: 15px">
|
|
|
|
<div slot="content">
|
|
|
|
<div slot="content">
|
|
|
|
<div class="searchwrap" style="display: flex;align-items: center;">
|
|
|
|
<div class="searchwrap" style="display: flex;align-items: center; flex-wrap: wrap; gap: 10px;">
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<el-input v-model="select.name" placeholder="请输入授课老师姓名\方向" clearable @clear="select.page=1,getList()"></el-input>
|
|
|
|
<el-input v-model="select.name" placeholder="请输入授课老师姓名\方向" clearable @clear="select.page=1,getList()"></el-input>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
|
|
|
<el-select collapse-tags multiple v-model="select.direction" placeholder="请选择课程方向" clearable style="width: 200px;">
|
|
|
|
|
|
|
|
<el-option v-for="(item,index) in directions" :key="index" :label="item" :value="item">
|
|
|
|
|
|
|
|
</el-option>
|
|
|
|
|
|
|
|
</el-select>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<el-button type="primary" size="small" @click="select.page=1,getList()">查询</el-button>
|
|
|
|
<el-button type="primary" size="small" @click="select.page=1,getList()">查询</el-button>
|
|
|
|
<el-button type="primary" size="small" @click="resetSelect">重置</el-button>
|
|
|
|
<el-button type="primary" size="small" @click="resetSelect">重置</el-button>
|
|
|
|
@ -156,7 +162,8 @@
|
|
|
|
import addTeacher from './components/addTeacher.vue';
|
|
|
|
import addTeacher from './components/addTeacher.vue';
|
|
|
|
import {
|
|
|
|
import {
|
|
|
|
index,
|
|
|
|
index,
|
|
|
|
destroy
|
|
|
|
destroy,
|
|
|
|
|
|
|
|
teacherConfig
|
|
|
|
} from "@/api/info/teachers.js"
|
|
|
|
} from "@/api/info/teachers.js"
|
|
|
|
import imports from "@/views/component/imports.vue"
|
|
|
|
import imports from "@/views/component/imports.vue"
|
|
|
|
import * as XLSX from "xlsx";
|
|
|
|
import * as XLSX from "xlsx";
|
|
|
|
@ -167,6 +174,9 @@
|
|
|
|
save as saveCourseContent
|
|
|
|
save as saveCourseContent
|
|
|
|
} from '@/api/course/courseContent.js'
|
|
|
|
} from '@/api/course/courseContent.js'
|
|
|
|
import { getToken } from '@/utils/auth';
|
|
|
|
import { getToken } from '@/utils/auth';
|
|
|
|
|
|
|
|
import {
|
|
|
|
|
|
|
|
companyConfig
|
|
|
|
|
|
|
|
} from "@/api/student/schoolmateCompany.js"
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
components: {
|
|
|
|
components: {
|
|
|
|
addTeacher,
|
|
|
|
addTeacher,
|
|
|
|
@ -176,10 +186,11 @@
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
select: {
|
|
|
|
select: {
|
|
|
|
name: '',
|
|
|
|
name: '',
|
|
|
|
|
|
|
|
direction: [],
|
|
|
|
page: 1,
|
|
|
|
page: 1,
|
|
|
|
page_size: 10,
|
|
|
|
page_size: 10,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
directions: [],
|
|
|
|
list: [],
|
|
|
|
list: [],
|
|
|
|
total: 0,
|
|
|
|
total: 0,
|
|
|
|
editingItem: null,
|
|
|
|
editingItem: null,
|
|
|
|
@ -212,6 +223,11 @@
|
|
|
|
label: '联系方式',
|
|
|
|
label: '联系方式',
|
|
|
|
align: 'center',
|
|
|
|
align: 'center',
|
|
|
|
width: 180,
|
|
|
|
width: 180,
|
|
|
|
|
|
|
|
}, {
|
|
|
|
|
|
|
|
prop: 'direction',
|
|
|
|
|
|
|
|
label: '课程方向',
|
|
|
|
|
|
|
|
align: 'center',
|
|
|
|
|
|
|
|
width: 180,
|
|
|
|
},{
|
|
|
|
},{
|
|
|
|
prop: 'course_contents',
|
|
|
|
prop: 'course_contents',
|
|
|
|
label: '排课历史',
|
|
|
|
label: '排课历史',
|
|
|
|
@ -223,6 +239,7 @@
|
|
|
|
},
|
|
|
|
},
|
|
|
|
created() {
|
|
|
|
created() {
|
|
|
|
this.getList()
|
|
|
|
this.getList()
|
|
|
|
|
|
|
|
this.getTeacherConfig()
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
pageIndexChange(e){
|
|
|
|
pageIndexChange(e){
|
|
|
|
@ -237,6 +254,7 @@
|
|
|
|
resetSelect(){
|
|
|
|
resetSelect(){
|
|
|
|
|
|
|
|
|
|
|
|
this.select.name = ''
|
|
|
|
this.select.name = ''
|
|
|
|
|
|
|
|
this.select.direction = []
|
|
|
|
this.select.page=1
|
|
|
|
this.select.page=1
|
|
|
|
this.getList()
|
|
|
|
this.getList()
|
|
|
|
},
|
|
|
|
},
|
|
|
|
@ -244,7 +262,8 @@
|
|
|
|
const res = await index({
|
|
|
|
const res = await index({
|
|
|
|
page: this.select.page,
|
|
|
|
page: this.select.page,
|
|
|
|
page_size: this.select.page_size,
|
|
|
|
page_size: this.select.page_size,
|
|
|
|
keyword: this.select.name
|
|
|
|
keyword: this.select.name,
|
|
|
|
|
|
|
|
direction: this.select.direction && this.select.direction.length > 0 ? this.select.direction.join(',') : ''
|
|
|
|
// filter: [{
|
|
|
|
// filter: [{
|
|
|
|
// key: 'name',
|
|
|
|
// key: 'name',
|
|
|
|
// op: 'like',
|
|
|
|
// op: 'like',
|
|
|
|
@ -255,6 +274,10 @@
|
|
|
|
this.total = res.total
|
|
|
|
this.total = res.total
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
async getTeacherConfig() {
|
|
|
|
|
|
|
|
const res = await companyConfig()
|
|
|
|
|
|
|
|
this.directions = res.directions || []
|
|
|
|
|
|
|
|
},
|
|
|
|
async exportExcel() {
|
|
|
|
async exportExcel() {
|
|
|
|
let sheetName = `授课老师${new Date().getTime().toString()}`
|
|
|
|
let sheetName = `授课老师${new Date().getTime().toString()}`
|
|
|
|
const res = await index({
|
|
|
|
const res = await index({
|
|
|
|
|