lion 1 year ago
parent c80ab32e5f
commit 6b34b5149d

@ -20,15 +20,17 @@
<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 v-for="item in formSelect.type" :key="item.id" :label="item.value"
:value="item.value">
</el-option> </el-option>
</el-select> </el-select>
</div> </div>
<div> <div>
<el-select <el-select style="width:100%" v-model="educationType"
style="width:100%" v-model="educationType" @change="(e)=>{changeSelectType(e,'education')}" multiple collapse-tags placeholder="请选择学历"
@change="(e)=>{changeSelectType(e,'education')}" multiple collapse-tags placeholder="请选择学历" clearable> clearable>
<el-option v-for="item in formSelect.education" :key="item.id" :label="item.value" <el-option v-for="item in formSelect.education" :key="item.id" :label="item.value"
:value="item.value"> :value="item.value">
</el-option> </el-option>
@ -41,10 +43,8 @@
<el-input v-model="select.company_position" placeholder="请输入职务"></el-input> <el-input v-model="select.company_position" placeholder="请输入职务"></el-input>
</div> </div>
<div style="width:200px"> <div style="width:200px">
<el-select style="width:100%" v-model="companyArea" <el-select style="width:100%" v-model="companyArea" multiple collapse-tags
multiple collapse-tags @change="(e)=>{changeSelectType(e,'company_area')}" 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>
@ -61,8 +61,8 @@
</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>
@ -73,7 +73,8 @@
</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"
:value="item.id">
</el-option> </el-option>
</el-select> </el-select>
</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
@ -173,9 +177,9 @@
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: [],
@ -305,12 +309,24 @@
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 = ''
@ -336,7 +352,7 @@
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: [{
@ -420,7 +436,7 @@
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