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"> <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 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>
<div> <div>
<el-input v-model="select.name" placeholder="请输入姓名"></el-input> <el-input v-model="select.name" placeholder="请输入姓名"></el-input>
</div> </div>
<xy-selectors style="width:auto" @reset="resetSelect" @search="select.page=1,getList()"> <xy-selectors style="width:auto" @reset="resetSelect" @search="select.page=1,getList()">
<template v-slot:selected> <template v-slot:selected>
<div class="selected-wrap"> <div class="selected-wrap">
<div> <div>
<el-input v-model="select.mobile" placeholder="请输入手机号"></el-input> <el-input v-model="select.mobile" placeholder="请输入手机号"></el-input>
</div> </div>
<div style="width:200px"> <div style="width:200px">
<el-select v-model="typeSelect" placeholder="请选择个人荣誉" @change="(e)=>{changeSelectType(e,'type')}" multiple collapse-tags clearable> <el-select v-model="typeSelect" placeholder="请选择个人荣誉"
<el-option v-for="item in formSelect.type" :key="item.id" :label="item.value" :value="item.value"> @change="(e)=>{changeSelectType(e,'type')}" multiple collapse-tags clearable>
</el-option> <el-option v-for="item in formSelect.type" :key="item.id" :label="item.value"
</el-select> :value="item.value">
</div> </el-option>
<div> </el-select>
<el-select </div>
style="width:100%" v-model="educationType" <div>
@change="(e)=>{changeSelectType(e,'education')}" multiple collapse-tags placeholder="请选择学历" clearable> <el-select style="width:100%" v-model="educationType"
<el-option v-for="item in formSelect.education" :key="item.id" :label="item.value" @change="(e)=>{changeSelectType(e,'education')}" multiple collapse-tags placeholder="请选择学历"
:value="item.value"> clearable>
</el-option> <el-option v-for="item in formSelect.education" :key="item.id" :label="item.value"
</el-select> :value="item.value">
</div> </el-option>
<div> </el-select>
<el-input v-model="select.company_name" placeholder="请输入公司名称"></el-input> </div>
</div> <div>
<div> <el-input v-model="select.company_name" placeholder="请输入公司名称"></el-input>
<el-input v-model="select.company_position" placeholder="请输入职务"></el-input> </div>
</div> <div>
<div style="width:200px"> <el-input v-model="select.company_position" placeholder="请输入职务"></el-input>
<el-select style="width:100%" v-model="companyArea" </div>
multiple collapse-tags <div style="width:200px">
@change="(e)=>{changeSelectType(e,'company_area')}" <el-select style="width:100%" v-model="companyArea" multiple collapse-tags
placeholder="请选择所属区域" clearable> @change="(e)=>{changeSelectType(e,'company_area')}" placeholder="请选择所属区域" clearable>
<el-option v-for="item in formSelect.company_area" :key="item.id" :label="item.value" <el-option v-for="item in formSelect.company_area" :key="item.id" :label="item.value"
:value="item.value"> :value="item.value">
</el-option> </el-option>
</el-select> </el-select>
</div> </div>
<div style="width:250px"> <div style="width:250px">
<el-select style="width:100%" v-model="companyType" <el-select style="width:100%" v-model="companyType"
@change="(e)=>{changeSelectType(e,'company_type')}" multiple collapse-tags @change="(e)=>{changeSelectType(e,'company_type')}" multiple collapse-tags
placeholder="请选择企业资质" clearable> placeholder="请选择企业资质" clearable>
<el-option v-for="item in formSelect.company_type" :key="item.id" :label="item.value" <el-option v-for="item in formSelect.company_type" :key="item.id" :label="item.value"
:value="item.value"> :value="item.value">
</el-option> </el-option>
</el-select> </el-select>
</div> </div>
<div style="width:250px"> <div style="width:250px">
<el-select style="width:100%" v-model="companyIndustry" multiple collapse-tags <el-select style="width:100%" v-model="companyIndustry" multiple collapse-tags
@change="(e)=>{changeSelectType(e,'company_industry')}" placeholder="请选择所属领域" clearable> @change="(e)=>{changeSelectType(e,'company_industry')}" placeholder="请选择所属领域" clearable>
<el-option v-for="item in formSelect.company_industry" :key="item.id" :label="item.value" <el-option v-for="item in formSelect.company_industry" :key="item.id" :label="item.value"
:value="item.value"> :value="item.value">
</el-option> </el-option>
<!-- <el-option v-for="item in formSelect.company_industry_detail" :key="item.id" :label="item.value" <!-- <el-option v-for="item in formSelect.company_industry_detail" :key="item.id" :label="item.value"
:value="item.value"> :value="item.value">
</el-option> --> </el-option> -->
</el-select> </el-select>
</div> </div>
<div> <div>
<el-select v-model="select.status" placeholder="请选择状态" clearable> <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 v-for="item in apply_status_list" :key="item.id" :label="item.value"
</el-option> :value="item.id">
</el-select> </el-option>
</div> </el-select>
<div> </div>
<el-select v-model="select.sort_type" placeholder="请选择评分排序" clearable> <div>
<el-option v-for="item in sortList" :key="item.id" :label="item.value" :value="item.id"> <el-select v-model="select.sort_type" placeholder="请选择评分排序" clearable>
</el-option> <el-option v-for="item in sortList" :key="item.id" :label="item.value" :value="item.id">
</el-select> </el-option>
</div> </el-select>
</div> </div>
</template> </div>
</template>
</xy-selectors> </xy-selectors>
<div> <div>
@ -130,13 +131,14 @@
</el-table-column> </el-table-column>
</template> </template>
<template v-slot:btns> <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"> <template slot-scope="scope">
<!-- v-if="scope.row.status===0" --> <!-- v-if="scope.row.status===0" -->
<el-button type="primary" size="small" @click="showDetail('check',scope.row)"></el-button> <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" <el-button type="primary" size="small" @click="showDetail('checkshow',scope.row)"></el-button>
@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> </template>
</el-table-column> </el-table-column>
</template> </template>
@ -144,7 +146,8 @@
</div> </div>
<student-detail ref="studentDetail" @refresh="getList"></student-detail> <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> </div>
</template> </template>
@ -156,7 +159,8 @@
import imports from "@/views/component/imports.vue" import imports from "@/views/component/imports.vue"
import { import {
index, index,
updateStatus updateStatus,
destroy
} from '@/api/apply/index.js' } from '@/api/apply/index.js'
import { import {
download download
@ -170,12 +174,12 @@
}, },
data() { data() {
return { return {
subjectObj: {}, subjectObj: {},
companyType: [], companyType: [],
typeSelect: [], typeSelect: [],
educationType:[], educationType: [],
companyIndustry:[], companyIndustry: [],
companyArea:[], companyArea: [],
select: { select: {
name: '', name: '',
mobile: '', mobile: '',
@ -186,11 +190,11 @@
company_type: '', company_type: '',
company_industry: '', company_industry: '',
education: '', education: '',
type:'', type: '',
status: '', status: '',
page: 1, page: 1,
page_size: 10, page_size: 10,
sort_type:'ASC' sort_type: 'ASC'
}, },
selectids: [], selectids: [],
list: [], list: [],
@ -283,13 +287,13 @@
} }
this.getList() this.getList()
}, },
methods: { methods: {
changeSelectType(e, selectName) { changeSelectType(e, selectName) {
if (e) { if (e) {
this.select[selectName] = e.join(",") this.select[selectName] = e.join(",")
} else { } else {
this.select[selectName] = '' this.select[selectName] = ''
} }
}, },
pageIndexChange(e) { pageIndexChange(e) {
this.select.page = e this.select.page = e
@ -304,13 +308,25 @@
let perSize = (this.select.page - 1) * this.select.page_size let perSize = (this.select.page - 1) * this.select.page_size
let index = perSize + e + 1 let index = perSize + e + 1
return index 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() { resetSelect() {
this.companyType = [] this.companyType = []
this.typeSelect = [] this.typeSelect = []
this.educationType=[] this.educationType = []
this.companyIndustry=[] this.companyIndustry = []
this.companyArea=[] this.companyArea = []
this.select.name = '' this.select.name = ''
this.select.mobile = '' this.select.mobile = ''
this.select.company_name = '' this.select.company_name = ''
@ -318,7 +334,7 @@
this.select.company_area = '' this.select.company_area = ''
this.select.company_type = '' this.select.company_type = ''
this.select.company_industry = '' this.select.company_industry = ''
this.select.education = '' this.select.education = ''
this.select.type = '' this.select.type = ''
this.select.status = '' this.select.status = ''
this.select.page = 1 this.select.page = 1
@ -335,8 +351,8 @@
company_area: this.select.company_area, company_area: this.select.company_area,
company_type: this.select.company_type, company_type: this.select.company_type,
company_industry: this.select.company_industry, company_industry: this.select.company_industry,
education: this.select.education, education: this.select.education,
type:this.select.type, type: this.select.type,
sort_name: 'score', sort_name: 'score',
sort_type: this.select.sort_type, sort_type: this.select.sort_type,
filter: [{ filter: [{
@ -394,8 +410,8 @@
this.$refs.studentDetail.type = type this.$refs.studentDetail.type = type
this.$refs.studentDetail.isShow = true this.$refs.studentDetail.isShow = true
}, },
importTable(row) { importTable(row) {
this.$refs.imports.show() this.$refs.imports.show()
}, },
exportExcel() { exportExcel() {
let _export = {} let _export = {}
@ -419,8 +435,8 @@
company_area: this.select.company_area, company_area: this.select.company_area,
company_type: this.select.company_type, company_type: this.select.company_type,
company_industry: this.select.company_industry, company_industry: this.select.company_industry,
education: this.select.education, education: this.select.education,
type:this.select.type, type: this.select.type,
sort_name: 'score', sort_name: 'score',
sort_type: this.select.sort_type, sort_type: this.select.sort_type,
export_fields: _export, export_fields: _export,
@ -461,7 +477,8 @@
align-items: center; align-items: center;
flex-wrap: wrap; flex-wrap: wrap;
&>div,.selected-wrap { &>div,
.selected-wrap {
display: flex; display: flex;
align-items: center; align-items: center;
// margin-bottom: 10px; // margin-bottom: 10px;

Loading…
Cancel
Save