|
|
|
|
@ -8,72 +8,72 @@
|
|
|
|
|
<div>
|
|
|
|
|
<div>
|
|
|
|
|
<el-input v-model="select.name" placeholder="请输入姓名"></el-input>
|
|
|
|
|
</div>
|
|
|
|
|
<xy-selectors style="width:auto" @reset="resetSelect" @search="select.page=1,getList()">
|
|
|
|
|
<template v-slot:selected>
|
|
|
|
|
<div class="selected-wrap">
|
|
|
|
|
<div>
|
|
|
|
|
<el-input v-model="select.mobile" placeholder="请输入手机号"></el-input>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="width:200px">
|
|
|
|
|
<el-select v-model="typeSelect" placeholder="请选择个人荣誉" @change="(e)=>{changeSelectType(e,'type')}" multiple collapse-tags clearable>
|
|
|
|
|
<el-option v-for="item in formSelect.type" :key="item.id" :label="item.value" :value="item.value">
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<el-select
|
|
|
|
|
style="width:100%" v-model="educationType"
|
|
|
|
|
@change="(e)=>{changeSelectType(e,'education')}" multiple collapse-tags placeholder="请选择学历" clearable>
|
|
|
|
|
<el-option v-for="item in formSelect.education" :key="item.id" :label="item.value"
|
|
|
|
|
:value="item.value">
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<el-input v-model="select.company_name" placeholder="请输入公司名称"></el-input>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<el-input v-model="select.company_position" placeholder="请输入职务"></el-input>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="width:200px">
|
|
|
|
|
<el-select style="width:100%" v-model="companyArea"
|
|
|
|
|
multiple collapse-tags
|
|
|
|
|
@change="(e)=>{changeSelectType(e,'company_area')}"
|
|
|
|
|
placeholder="请选择所属区域" clearable>
|
|
|
|
|
<el-option v-for="item in formSelect.company_area" :key="item.id" :label="item.value"
|
|
|
|
|
:value="item.value">
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="width:250px">
|
|
|
|
|
<el-select style="width:100%" v-model="companyType"
|
|
|
|
|
@change="(e)=>{changeSelectType(e,'company_type')}" multiple collapse-tags
|
|
|
|
|
placeholder="请选择企业资质" clearable>
|
|
|
|
|
</div>
|
|
|
|
|
<xy-selectors style="width:auto" @reset="resetSelect" @search="select.page=1,getList()">
|
|
|
|
|
<template v-slot:selected>
|
|
|
|
|
<div class="selected-wrap">
|
|
|
|
|
<div>
|
|
|
|
|
<el-input v-model="select.mobile" placeholder="请输入手机号"></el-input>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="width:200px">
|
|
|
|
|
<el-select v-model="typeSelect" placeholder="请选择个人荣誉" @change="(e)=>{changeSelectType(e,'type')}" multiple collapse-tags clearable>
|
|
|
|
|
<el-option v-for="item in formSelect.type" :key="item.id" :label="item.value" :value="item.value">
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<el-select
|
|
|
|
|
style="width:100%" v-model="educationType"
|
|
|
|
|
@change="(e)=>{changeSelectType(e,'education')}" multiple collapse-tags placeholder="请选择学历" clearable>
|
|
|
|
|
<el-option v-for="item in formSelect.education" :key="item.id" :label="item.value"
|
|
|
|
|
:value="item.value">
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<el-input v-model="select.company_name" placeholder="请输入公司名称"></el-input>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<el-input v-model="select.company_position" placeholder="请输入职务"></el-input>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="width:200px">
|
|
|
|
|
<el-select style="width:100%" v-model="companyArea"
|
|
|
|
|
multiple collapse-tags
|
|
|
|
|
@change="(e)=>{changeSelectType(e,'company_area')}"
|
|
|
|
|
placeholder="请选择所属区域" clearable>
|
|
|
|
|
<el-option v-for="item in formSelect.company_area" :key="item.id" :label="item.value"
|
|
|
|
|
:value="item.value">
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="width:250px">
|
|
|
|
|
<el-select style="width:100%" v-model="companyType"
|
|
|
|
|
@change="(e)=>{changeSelectType(e,'company_type')}" multiple collapse-tags
|
|
|
|
|
placeholder="请选择企业资质" clearable>
|
|
|
|
|
<el-option v-for="(item,index) in formSelect.company_type" :key="index" :label="item"
|
|
|
|
|
:value="item">
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div style="width:250px">
|
|
|
|
|
<el-select style="width:100%" v-model="companyIndustry" multiple collapse-tags
|
|
|
|
|
@change="(e)=>{changeSelectType(e,'company_industry')}" placeholder="请选择所属领域" clearable>
|
|
|
|
|
<el-option v-for="item in formSelect.company_industry" :key="item.id" :label="item.value"
|
|
|
|
|
:value="item.value">
|
|
|
|
|
</el-option>
|
|
|
|
|
<!-- <el-option v-for="item in formSelect.company_industry_detail" :key="item.id" :label="item.value"
|
|
|
|
|
:value="item.value">
|
|
|
|
|
</el-option> -->
|
|
|
|
|
</el-select>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div style="width:250px">
|
|
|
|
|
<el-select style="width:100%" v-model="companyIndustry" multiple collapse-tags
|
|
|
|
|
@change="(e)=>{changeSelectType(e,'company_industry')}" placeholder="请选择所属领域" clearable>
|
|
|
|
|
<el-option v-for="item in formSelect.company_industry" :key="item.id" :label="item.value"
|
|
|
|
|
:value="item.value">
|
|
|
|
|
</el-option>
|
|
|
|
|
<!-- <el-option v-for="item in formSelect.company_industry_detail" :key="item.id" :label="item.value"
|
|
|
|
|
:value="item.value">
|
|
|
|
|
</el-option> -->
|
|
|
|
|
</el-select>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
</xy-selectors>
|
|
|
|
|
|
|
|
|
|
<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="importTable">导入</el-button>
|
|
|
|
|
<el-button type="primary" size="small" @click="exportExcel">导出</el-button>
|
|
|
|
|
@ -94,13 +94,13 @@
|
|
|
|
|
<div>课程体系:{{subjectObj.leibie}}</div>
|
|
|
|
|
</div>
|
|
|
|
|
<xy-table :list="list" :total="total" :showIndex="false" @pageIndexChange="pageIndexChange"
|
|
|
|
|
@pageSizeChange="pageSizeChange" :table-item="table_item">
|
|
|
|
|
<template v-slot:index>
|
|
|
|
|
<el-table-column align='center' fixed="left" label="" width="50" header-align="center">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
{{getIndex(scope.$index)}}
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
@pageSizeChange="pageSizeChange" :table-item="table_item">
|
|
|
|
|
<template v-slot:index>
|
|
|
|
|
<el-table-column align='center' fixed="left" label="" width="50" header-align="center">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
{{getIndex(scope.$index)}}
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-slot:status>
|
|
|
|
|
<el-table-column align='center' label="状态" width="120" header-align="center">
|
|
|
|
|
@ -117,9 +117,9 @@
|
|
|
|
|
<el-button type="primary" v-if="scope.row.status===1 " size="small"
|
|
|
|
|
@click="showDetail('setPosition',scope.row)">设置班委</el-button>
|
|
|
|
|
<el-button type="primary" size="small" @click="editSign('editor',scope.row)">编辑</el-button>
|
|
|
|
|
<el-button type="primary" size="small" @click="showDetail('checkshow',scope.row)">查看</el-button>
|
|
|
|
|
<el-popconfirm style="margin:0 10px" @confirm="deleteList(scope.row.id)" title="确定删除吗?">
|
|
|
|
|
<el-button type="danger" size="small" slot="reference">删除</el-button>
|
|
|
|
|
<el-button type="primary" size="small" @click="showDetail('checkshow',scope.row)">查看</el-button>
|
|
|
|
|
<el-popconfirm style="margin:0 10px" @confirm="deleteList(scope.row.id)" title="确定删除吗?">
|
|
|
|
|
<el-button type="danger" size="small" slot="reference">删除</el-button>
|
|
|
|
|
</el-popconfirm>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
@ -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 @@
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
</style>
|
|
|
|
|
|