+
+
+
+
+
+
查询
重置
@@ -156,7 +162,8 @@
import addTeacher from './components/addTeacher.vue';
import {
index,
- destroy
+ destroy,
+ teacherConfig
} from "@/api/info/teachers.js"
import imports from "@/views/component/imports.vue"
import * as XLSX from "xlsx";
@@ -167,6 +174,9 @@
save as saveCourseContent
} from '@/api/course/courseContent.js'
import { getToken } from '@/utils/auth';
+ import {
+ companyConfig
+ } from "@/api/student/schoolmateCompany.js"
export default {
components: {
addTeacher,
@@ -176,10 +186,11 @@
return {
select: {
name: '',
+ direction: [],
page: 1,
page_size: 10,
},
-
+ directions: [],
list: [],
total: 0,
editingItem: null,
@@ -212,6 +223,11 @@
label: '联系方式',
align: 'center',
width: 180,
+ }, {
+ prop: 'direction',
+ label: '课程方向',
+ align: 'center',
+ width: 180,
},{
prop: 'course_contents',
label: '排课历史',
@@ -223,6 +239,7 @@
},
created() {
this.getList()
+ this.getTeacherConfig()
},
methods: {
pageIndexChange(e){
@@ -237,6 +254,7 @@
resetSelect(){
this.select.name = ''
+ this.select.direction = []
this.select.page=1
this.getList()
},
@@ -244,7 +262,8 @@
const res = await index({
page: this.select.page,
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: [{
// key: 'name',
// op: 'like',
@@ -255,6 +274,10 @@
this.total = res.total
},
+ async getTeacherConfig() {
+ const res = await companyConfig()
+ this.directions = res.directions || []
+ },
async exportExcel() {
let sheetName = `授课老师${new Date().getTime().toString()}`
const res = await index({
diff --git a/src/views/course/components/editClass.vue b/src/views/course/components/editClass.vue
index 540e065..043e2fc 100644
--- a/src/views/course/components/editClass.vue
+++ b/src/views/course/components/editClass.vue
@@ -77,8 +77,8 @@
课程方向:
-
-
+
+
@@ -180,8 +180,8 @@
import { index as teacherIndex } from "@/api/info/teachers.js";
import addTeacher from '@/views/config/components/addTeacher.vue'
import {
- getparameteritem
-} from "@/api/system/dictionary.js"
+ companyConfig
+ } from "@/api/student/schoolmateCompany.js"
export default {
mixins: [myMixins],
components: {
@@ -206,7 +206,7 @@
teacher_id: "",
teacher_introduce: '', // 授课老师简介
theme: '',
- direction: '', // 课程方向
+ direction: [], // 课程方向
address: '',
address_detail: '',
latitude: '',
@@ -235,11 +235,9 @@
this.getAllPara()
},
methods: {
- getAllPara() {
- getparameteritem('course_direction').then(res => {
- console.log("res", res)
- this.direction_options = res.detail
- })
+ async getAllPara() {
+ const res = await companyConfig()
+ this.direction_options = res.directions || []
},
setTeachers(e) {
this.teacher_options = e
@@ -468,7 +466,7 @@
latitude: '',
longitude: '',
course_id: '', // 重置课程ID字段
- direction: '', // 重置课程方向
+ direction: [], // 重置课程方向
remark: '', // 重置备注
files: [], // 重置课件列表
}
diff --git a/src/views/course/txl.vue b/src/views/course/txl.vue
index 8b7cbc0..ee206b2 100644
--- a/src/views/course/txl.vue
+++ b/src/views/course/txl.vue
@@ -8,72 +8,72 @@
-
-
-
-
-
-
-
-
- {changeSelectType(e,'type')}" multiple collapse-tags clearable>
-
-
-
-
-
- {changeSelectType(e,'education')}" multiple collapse-tags placeholder="请选择学历" clearable>
-
-
-
-
-
-
-
-
-
-
-
- {changeSelectType(e,'company_area')}"
- placeholder="请选择所属区域" clearable>
-
-
-
-
-
- {changeSelectType(e,'company_type')}" multiple collapse-tags
- placeholder="请选择企业资质" clearable>
+
+
+
+
+
+
+
+
+ {changeSelectType(e,'type')}" multiple collapse-tags clearable>
+
+
+
+
+
+ {changeSelectType(e,'education')}" multiple collapse-tags placeholder="请选择学历" clearable>
+
+
+
+
+
+
+
+
+
+
+
+ {changeSelectType(e,'company_area')}"
+ placeholder="请选择所属区域" clearable>
+
+
+
+
+
+ {changeSelectType(e,'company_type')}" multiple collapse-tags
+ placeholder="请选择企业资质" clearable>
-
-
-
-
-
- {changeSelectType(e,'company_industry')}" placeholder="请选择所属领域" clearable>
-
-
-
-
-
-
-
-
+
+
+
+
+
+ {changeSelectType(e,'company_industry')}" placeholder="请选择所属领域" clearable>
+
+
+
+
+
+
+
+
-
查询
+
查询
重置
导入
导出
@@ -94,13 +94,13 @@
课程体系:{{subjectObj.leibie}}
-
-
-
- {{getIndex(scope.$index)}}
-
-
+ @pageSizeChange="pageSizeChange" :table-item="table_item">
+
+
+
+ {{getIndex(scope.$index)}}
+
+
@@ -117,9 +117,9 @@
设置班委
编辑
- 查看
-
- 删除
+ 查看
+
+ 删除
@@ -139,15 +139,15 @@
import myMixins from "@/mixin/selectMixin.js";
import formMixin from "@/mixin/formMixin.js";
import {
- index,
+ index,
destroy
} from '@/api/apply/index.js'
import {
download
} from "@/utils/downloadRequest";
- import imports from "@/views/component/imports.vue"
- import {
- index as formIndex
+ import imports from "@/views/component/imports.vue"
+ import {
+ index as formIndex
} from "@/api/course/form";
export default {
mixins: [myMixins, formMixin],
@@ -158,11 +158,11 @@
},
data() {
return {
- subjectObj: {},
- companyType: [],
- typeSelect: [],
- educationType:[],
- companyIndustry:[],
+ subjectObj: {},
+ companyType: [],
+ typeSelect: [],
+ educationType:[],
+ companyIndustry:[],
companyArea:[],
select: {
name: '',
@@ -173,12 +173,12 @@
company_area: '',
company_type: '',
company_industry: '',
- education: '',
+ education: '',
type:'',
status: '',
apply_status: '',
page: 1,
- page_size: 10,
+ page_size: 10,
is_fee:''
},
list: [],
@@ -252,12 +252,12 @@
label: '报名时间',
align: 'center',
width: 180,
- }, {
- prop: 'user.plate',
- label: '车牌号',
- align: 'left',
- width: 180,
-
+ }, {
+ prop: 'user.plate',
+ label: '车牌号',
+ align: 'left',
+ width: 180,
+
},{
prop: 'status',
label: '审核状态',
@@ -268,23 +268,23 @@
}
},
mounted() {
- this.subjectObj = this.$route.query
- if(this.$route.query.is_fee==0){
- this.select.is_fee = ''
- }else{
- this.select.is_fee = 1
- }
- this.select.course_id = this.subjectObj.id
+ this.subjectObj = this.$route.query
+ if(this.$route.query.is_fee==0){
+ this.select.is_fee = ''
+ }else{
+ this.select.is_fee = 1
+ }
+ this.select.course_id = this.subjectObj.id
this.getAutoForm()
this.getList()
},
- methods: {
- changeSelectType(e, selectName) {
- if (e) {
- this.select[selectName] = e.join(",")
- } else {
- this.select[selectName] = ''
- }
+ methods: {
+ changeSelectType(e, selectName) {
+ if (e) {
+ this.select[selectName] = e.join(",")
+ } else {
+ this.select[selectName] = ''
+ }
},
pageIndexChange(e) {
this.select.page = e
@@ -294,29 +294,29 @@
this.select.page_size = e
this.select.page = 1
this.getList()
- },
- getIndex(e){
- let perSize = (this.select.page -1 ) * this.select.page_size
- let index = perSize + e + 1
- return index
- },
- resetSelect(){
- this.companyType = []
- this.typeSelect = []
- this.educationType=[]
- this.companyIndustry=[]
- this.companyArea=[]
- this.select.name = ''
- this.select.mobile = ''
- this.select.company_name = ''
- this.select.company_position = ''
- this.select.company_area = ''
- this.select.company_type = ''
- this.select.company_industry = ''
- this.select.education = ''
- this.select.type = ''
- this.select.page=1
- this.getList()
+ },
+ getIndex(e){
+ let perSize = (this.select.page -1 ) * this.select.page_size
+ let index = perSize + e + 1
+ return index
+ },
+ resetSelect(){
+ this.companyType = []
+ this.typeSelect = []
+ this.educationType=[]
+ this.companyIndustry=[]
+ this.companyArea=[]
+ this.select.name = ''
+ this.select.mobile = ''
+ this.select.company_name = ''
+ this.select.company_position = ''
+ this.select.company_area = ''
+ this.select.company_type = ''
+ this.select.company_industry = ''
+ this.select.education = ''
+ this.select.type = ''
+ this.select.page=1
+ this.getList()
},
async getList() {
const res = await index({
@@ -329,8 +329,8 @@
company_area: this.select.company_area,
company_type: this.select.company_type,
company_industry: this.select.company_industry,
- education: this.select.education,
- type:this.select.type,
+ education: this.select.education,
+ type: this.select.type,
filter: [{
key: 'course_id',
op: 'eq',
@@ -339,12 +339,13 @@
key: 'status',
op: 'eq',
value: '1'
- }, {
- key: 'fee_status',
- op: 'eq',
- value: this.select.is_fee
}]
})
+ // , {
+ // key: 'fee_status',
+ // op: 'eq',
+ // value: this.select.is_fee
+ // }
this.list = res.data
this.total = res.total
},
@@ -357,40 +358,40 @@
},
importTable(row) {
this.$refs.imports.show()
- },
- // 获取自定义表单内容
- async getAutoForm(){
- const res = await formIndex({
- page:1,
- page_size:999,
- sort_name: 'sort',
- sort_type: 'ASC',
- filter: [{
- key: 'course_id',
- op: 'eq',
- value: this.select.course_id
- }],
- })
- this.formList = res.data
- },
- // 编辑
- editSign(type, row) {
- this.$refs.editSign.type = type
- this.$refs.editSign.row = row
- this.$refs.editSign.formList = this.formList
- this.$refs.editSign.isShow = true
- },
- deleteList(id) {
- var that = this;
- destroy({
- id: id,
- }).then(response => {
- this.$Message.success('删除成功');
- this.getList()
- }).catch(error => {
- console.log(error)
- reject(error)
- })
+ },
+ // 获取自定义表单内容
+ async getAutoForm(){
+ const res = await formIndex({
+ page:1,
+ page_size:999,
+ sort_name: 'sort',
+ sort_type: 'ASC',
+ filter: [{
+ key: 'course_id',
+ op: 'eq',
+ value: this.select.course_id
+ }],
+ })
+ this.formList = res.data
+ },
+ // 编辑
+ editSign(type, row) {
+ this.$refs.editSign.type = type
+ this.$refs.editSign.row = row
+ this.$refs.editSign.formList = this.formList
+ this.$refs.editSign.isShow = true
+ },
+ deleteList(id) {
+ var that = this;
+ destroy({
+ id: id,
+ }).then(response => {
+ this.$Message.success('删除成功');
+ this.getList()
+ }).catch(error => {
+ console.log(error)
+ reject(error)
+ })
},
exportExcel() {
let _export = {}
@@ -415,7 +416,7 @@
company_area: this.select.company_area,
company_type: this.select.company_type,
company_industry: this.select.company_industry,
- education: this.select.education,
+ education: this.select.education,
type:this.select.type,
export_fields: _export,
filter: [{
@@ -477,4 +478,4 @@
}
}
-
+
diff --git a/vue.config.js b/vue.config.js
index 29ac6d1..5bf5d83 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -37,7 +37,7 @@ module.exports = {
less: {
javascriptEnabled: true
},
- sass:{
+ sass: {
prependData: '@import "@/styles/index.scss";'
}
}