lion 1 year ago
parent c80ab32e5f
commit 6b34b5149d

@ -6,85 +6,86 @@
<lx-header icon="md-apps" :text="$route.meta.title" style="margin-bottom: 10px; border: 0px; margin-top: 15px">
<div slot="content" style="padding-left:0">
<div class="searchwrap" style="display: flex;align-items: center;">
<div class="searchwrap" style="display: flex;align-items: center;">
<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>
<el-option v-for="item in formSelect.company_type" :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="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>
<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.sort_type" placeholder="请选择评分排序" clearable>
<el-option v-for="item in sortList" :key="item.id" :label="item.value" :value="item.id">
</el-option>
</el-select>
</div>
</div>
</template>
<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 in formSelect.company_type" :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="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>
<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.sort_type" placeholder="请选择评分排序" clearable>
<el-option v-for="item in sortList" :key="item.id" :label="item.value" :value="item.id">
</el-option>
</el-select>
</div>
</div>
</template>
</xy-selectors>
<div>
@ -130,13 +131,14 @@
</el-table-column>
</template>
<template v-slot:btns>
<el-table-column align='center' fixed="right" label="操作" width="180" header-align="center">
<el-table-column align='left' fixed="right" label="操作" width="220" header-align="center">
<template slot-scope="scope">
<!-- v-if="scope.row.status===0" -->
<el-button type="primary" size="small" @click="showDetail('check',scope.row)"></el-button>
<el-button type="primary" v-if="scope.row.status>0" size="small"
@click="showDetail('checkshow',scope.row)">查看</el-button>
<el-button type="primary" size="small" @click="showDetail('checkshow',scope.row)"></el-button>
<el-popconfirm style="margin:0 10px" v-if="scope.row.status===4" @confirm="deleteList(scope.row.id)" title="确定删除吗?">
<el-button type="danger" size="small" slot="reference">删除</el-button>
</el-popconfirm>
</template>
</el-table-column>
</template>
@ -144,7 +146,8 @@
</div>
<student-detail ref="studentDetail" @refresh="getList"></student-detail>
<imports ref="imports" :course_id="subjectObj.id" :status="0" :table-name="'course_signs'" @refresh="getList"></imports>
<imports ref="imports" :course_id="subjectObj.id" :status="0" :table-name="'course_signs'" @refresh="getList">
</imports>
</div>
</template>
@ -156,7 +159,8 @@
import imports from "@/views/component/imports.vue"
import {
index,
updateStatus
updateStatus,
destroy
} from '@/api/apply/index.js'
import {
download
@ -170,12 +174,12 @@
},
data() {
return {
subjectObj: {},
companyType: [],
typeSelect: [],
educationType:[],
companyIndustry:[],
companyArea:[],
subjectObj: {},
companyType: [],
typeSelect: [],
educationType: [],
companyIndustry: [],
companyArea: [],
select: {
name: '',
mobile: '',
@ -186,11 +190,11 @@
company_type: '',
company_industry: '',
education: '',
type:'',
type: '',
status: '',
page: 1,
page_size: 10,
sort_type:'ASC'
page_size: 10,
sort_type: 'ASC'
},
selectids: [],
list: [],
@ -283,13 +287,13 @@
}
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
@ -304,13 +308,25 @@
let perSize = (this.select.page - 1) * this.select.page_size
let index = perSize + e + 1
return index
},
deleteList(id) {
var that = this;
destroy({
id: id,
}).then(response => {
this.$Message.success('删除成功');
this.getList()
}).catch(error => {
console.log(error)
reject(error)
})
},
resetSelect() {
this.companyType = []
this.typeSelect = []
this.educationType=[]
this.companyIndustry=[]
this.companyArea=[]
resetSelect() {
this.companyType = []
this.typeSelect = []
this.educationType = []
this.companyIndustry = []
this.companyArea = []
this.select.name = ''
this.select.mobile = ''
this.select.company_name = ''
@ -318,7 +334,7 @@
this.select.company_area = ''
this.select.company_type = ''
this.select.company_industry = ''
this.select.education = ''
this.select.education = ''
this.select.type = ''
this.select.status = ''
this.select.page = 1
@ -335,8 +351,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,
sort_name: 'score',
sort_type: this.select.sort_type,
filter: [{
@ -394,8 +410,8 @@
this.$refs.studentDetail.type = type
this.$refs.studentDetail.isShow = true
},
importTable(row) {
this.$refs.imports.show()
importTable(row) {
this.$refs.imports.show()
},
exportExcel() {
let _export = {}
@ -419,8 +435,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,
sort_name: 'score',
sort_type: this.select.sort_type,
export_fields: _export,
@ -461,7 +477,8 @@
align-items: center;
flex-wrap: wrap;
&>div,.selected-wrap {
&>div,
.selected-wrap {
display: flex;
align-items: center;
// margin-bottom: 10px;

Loading…
Cancel
Save