|
|
|
|
@ -18,11 +18,11 @@
|
|
|
|
|
<el-input v-model="select.company_name" placeholder="请输入公司名称"></el-input>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<el-select v-model="select.company_position" placeholder="请选择职务" clearable>
|
|
|
|
|
<el-option v-for="item in formSelect.company_position" :key="item.id" :label="item.value"
|
|
|
|
|
:value="item.value">
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
<el-input v-model="select.course_name" placeholder="请输入课程名称"></el-input>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
<el-input v-model="select.company_position" placeholder="请输入职务"></el-input>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<el-select v-model="select.company_area" placeholder="请选择所属区域" clearable>
|
|
|
|
|
@ -65,11 +65,30 @@
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<el-select v-model="select.is_schoolmate" placeholder="请选择是否校友" clearable>
|
|
|
|
|
<el-option v-for="item in is_schoolmate_list" :key="item.id" :label="item.value" :value="item.id">
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
<el-date-picker style="width:100%" @change="changeDate" v-model="select.courses_end_date" type="date"
|
|
|
|
|
placeholder="课程结束日期" value-format="yyyy-MM-dd" format="yyyy-MM-dd">
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<el-select v-model="select.status" placeholder="请选择审核状态" clearable>
|
|
|
|
|
<el-option v-for="item in apply_status_list" :key="item.id" :label="item.value" :value="item.id">
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<el-select v-model="select.course_type" placeholder="请选择课程体系" clearable>
|
|
|
|
|
<el-option v-for="item in courseTypeList" :key="item.id" :label="item.name" :value="item.id">
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<el-button type="primary" size="small" @click="select.page=1,getList()">查询</el-button>
|
|
|
|
|
<el-button type="primary" size="small" @click="exportExcel">导出</el-button>
|
|
|
|
|
@ -91,13 +110,19 @@
|
|
|
|
|
<template v-slot:course_list>
|
|
|
|
|
<el-table-column align='left' label="课程" width="320" header-align="center">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<div v-for="(item,index) in scope.row.course_signs"
|
|
|
|
|
style="width:100%;display: flex;justify-content: space-between;align-items: center;margin-bottom:5px">
|
|
|
|
|
<div>{{index+1}}、{{item.course.year?item.course.year:''}}{{item.course.type_detail.name+' | '}}{{item.course.name}}</div>
|
|
|
|
|
<template v-for="state in apply_status_list">
|
|
|
|
|
<el-tag style="margin-left:20px" :type="state.type" v-if="item.status===state.id">{{state.value}}</el-tag>
|
|
|
|
|
</template>
|
|
|
|
|
</div>
|
|
|
|
|
<div v-for="(item,index) in scope.row.course_signs">
|
|
|
|
|
<div v-if="item.course"
|
|
|
|
|
style="width:100%;display: flex;justify-content: space-between;align-items: center;margin-bottom:5px">
|
|
|
|
|
<div>
|
|
|
|
|
{{item.course.year?item.course.year:''}}{{item.course.type_detail.name+' | '}}{{item.course.name}}
|
|
|
|
|
</div>
|
|
|
|
|
<template v-for="state in apply_status_list">
|
|
|
|
|
<el-tag style="margin-left:20px" :type="state.type"
|
|
|
|
|
v-if="item.status===state.id">{{state.value}}</el-tag>
|
|
|
|
|
</template>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</template>
|
|
|
|
|
@ -147,7 +172,10 @@
|
|
|
|
|
} from "@/utils/downloadRequest";
|
|
|
|
|
import {
|
|
|
|
|
indexStudy
|
|
|
|
|
} from '@/api/student/index.js'
|
|
|
|
|
} from '@/api/student/index.js'
|
|
|
|
|
import {
|
|
|
|
|
index as indexTypes
|
|
|
|
|
} from "@/api/course/courseType.js"
|
|
|
|
|
export default {
|
|
|
|
|
mixins: [myMixins, formMixin],
|
|
|
|
|
components: {
|
|
|
|
|
@ -166,19 +194,23 @@
|
|
|
|
|
company_type: '',
|
|
|
|
|
company_industry: '',
|
|
|
|
|
is_vip: '',
|
|
|
|
|
is_schoolmate: '',
|
|
|
|
|
courses_end_date: '',
|
|
|
|
|
education: '',
|
|
|
|
|
type: '',
|
|
|
|
|
status: "",
|
|
|
|
|
course_type: '',
|
|
|
|
|
page: 1,
|
|
|
|
|
page_size: 10,
|
|
|
|
|
},
|
|
|
|
|
courseTypeList: [],
|
|
|
|
|
list: [],
|
|
|
|
|
year_total: 0,
|
|
|
|
|
alltotal: 0,
|
|
|
|
|
total: 0,
|
|
|
|
|
table_item: [{
|
|
|
|
|
prop: 'course_list',
|
|
|
|
|
label: '课程',
|
|
|
|
|
label: '课程名称',
|
|
|
|
|
align: 'left',
|
|
|
|
|
}, {
|
|
|
|
|
prop: 'username',
|
|
|
|
|
@ -202,7 +234,7 @@
|
|
|
|
|
width: 120,
|
|
|
|
|
}, {
|
|
|
|
|
prop: 'birthday',
|
|
|
|
|
label: '出生日期',
|
|
|
|
|
label: '出生年月',
|
|
|
|
|
align: 'center',
|
|
|
|
|
width: 120,
|
|
|
|
|
}, {
|
|
|
|
|
@ -235,6 +267,7 @@
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
|
this.getList()
|
|
|
|
|
this.getCourseType()
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
pageIndexChange(e) {
|
|
|
|
|
@ -253,14 +286,18 @@
|
|
|
|
|
name: this.select.name,
|
|
|
|
|
mobile: this.select.mobile,
|
|
|
|
|
company_name: this.select.company_name,
|
|
|
|
|
course_name: this.select.course_name,
|
|
|
|
|
company_position: this.select.company_position,
|
|
|
|
|
company_area: this.select.company_area,
|
|
|
|
|
company_type: this.select.company_type,
|
|
|
|
|
company_industry: this.select.company_industry,
|
|
|
|
|
is_vip: this.select.is_vip,
|
|
|
|
|
courses_end_date: this.select.courses_end_date,
|
|
|
|
|
is_schoolmate: this.select.is_schoolmate,
|
|
|
|
|
education: this.select.education,
|
|
|
|
|
type: this.select.type
|
|
|
|
|
type: this.select.type,
|
|
|
|
|
status: this.select.status,
|
|
|
|
|
course_type: this.select.course_type
|
|
|
|
|
})
|
|
|
|
|
this.list = res.list.data
|
|
|
|
|
this.total = res.list.total
|
|
|
|
|
@ -281,8 +318,8 @@
|
|
|
|
|
},
|
|
|
|
|
exportExcel() {
|
|
|
|
|
let _export = {}
|
|
|
|
|
this.table_item.map(item => {
|
|
|
|
|
_export[item.prop] = item.label
|
|
|
|
|
this.selectFormList.map(item => {
|
|
|
|
|
_export[item.field] = item.name
|
|
|
|
|
})
|
|
|
|
|
download(
|
|
|
|
|
'/api/admin/users/study',
|
|
|
|
|
@ -291,19 +328,30 @@
|
|
|
|
|
name: this.select.name,
|
|
|
|
|
mobile: this.select.mobile,
|
|
|
|
|
company_name: this.select.company_name,
|
|
|
|
|
course_name: this.select.course_name,
|
|
|
|
|
company_position: this.select.company_position,
|
|
|
|
|
company_area: this.select.company_area,
|
|
|
|
|
company_type: this.select.company_type,
|
|
|
|
|
company_industry: this.select.company_industry,
|
|
|
|
|
is_vip: this.select.is_vip,
|
|
|
|
|
courses_end_date: this.select.courses_end_date,
|
|
|
|
|
is_schoolmate: this.select.is_schoolmate,
|
|
|
|
|
education: this.select.education,
|
|
|
|
|
type: this.select.type,
|
|
|
|
|
status: this.select.status,
|
|
|
|
|
course_type: this.select.course_type,
|
|
|
|
|
is_export: 1,
|
|
|
|
|
page: 1,
|
|
|
|
|
page_size: 999
|
|
|
|
|
},
|
|
|
|
|
`学员信息.xlsx`)
|
|
|
|
|
},
|
|
|
|
|
async getCourseType() {
|
|
|
|
|
const res = await indexTypes({
|
|
|
|
|
page: 1,
|
|
|
|
|
page_size: 999
|
|
|
|
|
})
|
|
|
|
|
this.courseTypeList = res.data
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|