|
@@ -7,84 +7,50 @@
|
|
|
* @LastEditTime: 2020-08-17 15:57:05
|
|
|
-->
|
|
|
<template>
|
|
|
- <div class="indexPage">
|
|
|
+<div class="indexPage">
|
|
|
<v-input :btn="btn" :list="list" @search="search" @exports="exports"></v-input>
|
|
|
- <v-table
|
|
|
- :table="table"
|
|
|
- :tableList="tableList"
|
|
|
- :sortType="true"
|
|
|
- :queryData="queryData"
|
|
|
- :form="searchForm"
|
|
|
- @details="details"
|
|
|
- @update="update"
|
|
|
- ></v-table>
|
|
|
+ <v-table :table="table" :tableList="tableList" :sortType="true" :queryData="queryData" :form="searchForm" @details="details" @update="update"></v-table>
|
|
|
<v-pager @page="callPage" :total="totalrecords"></v-pager>
|
|
|
<resume :dialogFormVisible="dialogFormVisible" :close="close" :info="info" :searchForm="searchForm" :queryData="queryData"></resume>
|
|
|
- <el-dialog
|
|
|
- :visible.sync="dialogVisible"
|
|
|
- width="600px"
|
|
|
- :before-close="closeDia"
|
|
|
- :close-on-click-modal="false"
|
|
|
- >
|
|
|
- <el-form :model="form" ref="uform" label-width="140px" :rules="rules" label-position="right">
|
|
|
- <el-form-item label="姓名" prop="delivererName">
|
|
|
- <el-input placeholder="请输入姓名" v-model="form.delivererName"></el-input>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="性别" prop="delivererSex">
|
|
|
- <el-select
|
|
|
- v-model="form.delivererSex"
|
|
|
- class="select"
|
|
|
- placeholder="请选择性别">
|
|
|
- <el-option
|
|
|
- v-for="item in [{ value: 0, label: '女' }, { value: 1, label: '男' }]"
|
|
|
- :key="item.value"
|
|
|
- :label="item.label"
|
|
|
- :value="item.value">
|
|
|
- </el-option>
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="简历投递职位" prop="positionApplied">
|
|
|
- <el-input placeholder="请输入投递职位" v-model="form.positionApplied"></el-input>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="工作年限" prop="delivererWorkExp">
|
|
|
- <el-input placeholder="请输入工作年限" v-model="form.delivererWorkExp"></el-input>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="学历" prop="delivererEducation">
|
|
|
- <el-select
|
|
|
- class="select"
|
|
|
- v-model="form.delivererEducation"
|
|
|
- placeholder="请选择学历">
|
|
|
- <el-option
|
|
|
- v-for="item in ['大专', '本科', '研究生', '博士', '其他']"
|
|
|
- :key="item"
|
|
|
- :label="item"
|
|
|
- :value="item">
|
|
|
- </el-option>
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="联系电话" prop="delivererPhone">
|
|
|
- <el-input placeholder="请输入联系电话" v-model="form.delivererPhone"></el-input>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="面试应聘职位" prop="desiredPositionId">
|
|
|
- <el-select
|
|
|
- class="select"
|
|
|
- v-model="form.desiredPositionId"
|
|
|
- placeholder="请选择应聘职位">
|
|
|
- <el-option
|
|
|
- v-for="item in positionList"
|
|
|
- :key="item.value"
|
|
|
- :label="item.label"
|
|
|
- :value="item.value">
|
|
|
- </el-option>
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item>
|
|
|
- <el-button @click="closeDia">取 消</el-button>
|
|
|
- <el-button type="primary" @click="submit">修 改</el-button>
|
|
|
- </el-form-item>
|
|
|
- </el-form>
|
|
|
+ <el-dialog :visible.sync="dialogVisible" width="600px" :before-close="closeDia" :close-on-click-modal="false">
|
|
|
+ <el-form :model="form" ref="uform" label-width="140px" :rules="rules" label-position="right">
|
|
|
+ <el-form-item label="姓名" prop="delivererName">
|
|
|
+ <el-input placeholder="请输入姓名" v-model="form.delivererName"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="性别" prop="delivererSex">
|
|
|
+ <el-select v-model="form.delivererSex" class="select" placeholder="请选择性别">
|
|
|
+ <el-option v-for="item in [{ value: 0, label: '女' }, { value: 1, label: '男' }]" :key="item.value" :label="item.label" :value="item.value">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="简历投递职位" prop="positionApplied">
|
|
|
+ <el-input placeholder="请输入投递职位" v-model="form.positionApplied"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="工作年限" prop="delivererWorkExp">
|
|
|
+ <el-input placeholder="请输入工作年限" v-model="form.delivererWorkExp"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="学历" prop="delivererEducation">
|
|
|
+ <el-select class="select" v-model="form.delivererEducation" placeholder="请选择学历">
|
|
|
+ <el-option v-for="item in ['大专', '本科', '研究生', '博士', '其他']" :key="item" :label="item" :value="item">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="联系电话" prop="delivererPhone">
|
|
|
+ <el-input placeholder="请输入联系电话" v-model="form.delivererPhone"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="面试应聘职位" prop="desiredPositionId">
|
|
|
+ <el-select class="select" v-model="form.desiredPositionId" placeholder="请选择应聘职位">
|
|
|
+ <el-option v-for="item in positionList" :key="item.value" :label="item.label" :value="item.value">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item>
|
|
|
+ <el-button @click="closeDia">取 消</el-button>
|
|
|
+ <el-button type="primary" @click="submit">修 改</el-button>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
</el-dialog>
|
|
|
- </div>
|
|
|
+</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
@@ -112,152 +78,185 @@ export default {
|
|
|
searchForm: {},
|
|
|
form: {},
|
|
|
rules: {
|
|
|
- delivererEducation: [
|
|
|
- { required: true, message: '请选择学历', trigger: 'change' }
|
|
|
- ],
|
|
|
- delivererName: [
|
|
|
- { required: true, message: '请输入姓名', trigger: 'change' }
|
|
|
- ],
|
|
|
- delivererPhone: [
|
|
|
- { required: true, validator, trigger: 'change' }
|
|
|
- ],
|
|
|
- delivererSex: [
|
|
|
- { required: true, message: '请选择性别', trigger: 'change' }
|
|
|
- ],
|
|
|
- delivererWorkExp: [
|
|
|
- { required: true, message: '请填写工作经验', trigger: 'change' }
|
|
|
- ],
|
|
|
- desiredPositionId: [
|
|
|
- { required: true, message: '请选择应聘职位', trigger: 'change' }
|
|
|
- ],
|
|
|
- positionApplied: [
|
|
|
- { required: true, message: '请填写投递职位', trigger: 'change' }
|
|
|
- ]
|
|
|
+ delivererEducation: [{
|
|
|
+ required: true,
|
|
|
+ message: '请选择学历',
|
|
|
+ trigger: 'change'
|
|
|
+ }],
|
|
|
+ delivererName: [{
|
|
|
+ required: true,
|
|
|
+ message: '请输入姓名',
|
|
|
+ trigger: 'change'
|
|
|
+ }],
|
|
|
+ delivererPhone: [{
|
|
|
+ required: true,
|
|
|
+ validator,
|
|
|
+ trigger: 'change'
|
|
|
+ }],
|
|
|
+ delivererSex: [{
|
|
|
+ required: true,
|
|
|
+ message: '请选择性别',
|
|
|
+ trigger: 'change'
|
|
|
+ }],
|
|
|
+ delivererWorkExp: [{
|
|
|
+ required: true,
|
|
|
+ message: '请填写工作经验',
|
|
|
+ trigger: 'change'
|
|
|
+ }],
|
|
|
+ // desiredPositionId: [{
|
|
|
+ // required: true,
|
|
|
+ // message: '请选择应聘职位',
|
|
|
+ // trigger: 'change'
|
|
|
+ // }],
|
|
|
+ positionApplied: [{
|
|
|
+ required: true,
|
|
|
+ message: '请填写投递职位',
|
|
|
+ trigger: 'change'
|
|
|
+ }]
|
|
|
},
|
|
|
positionList: [],
|
|
|
info: {},
|
|
|
- list: [
|
|
|
- {
|
|
|
- placeholder: '请输入关键字查询',
|
|
|
- props: 'condition'
|
|
|
+ list: [{
|
|
|
+ placeholder: '请输入关键字查询',
|
|
|
+ props: 'condition'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ type: 'select',
|
|
|
+ placeholder: '性别',
|
|
|
+ props: 'delivererSex',
|
|
|
+ options: [{
|
|
|
+ label: '全部',
|
|
|
+ value: null
|
|
|
+ }, {
|
|
|
+ label: '男',
|
|
|
+ value: 1
|
|
|
+ }, {
|
|
|
+ label: '女',
|
|
|
+ value: 0
|
|
|
+ }]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ type: 'select',
|
|
|
+ placeholder: '来源',
|
|
|
+ props: 'resumeFrom',
|
|
|
+ options: [{
|
|
|
+ label: '全部',
|
|
|
+ value: null
|
|
|
},
|
|
|
{
|
|
|
- type: 'select',
|
|
|
- placeholder: '性别',
|
|
|
- props: 'delivererSex',
|
|
|
- options: [{ label: '全部', value: null }, { label: '男', value: 1 }, { label: '女', value: 0 }]
|
|
|
+ label: '51job',
|
|
|
+ value: 0
|
|
|
},
|
|
|
{
|
|
|
- type: 'select',
|
|
|
- placeholder: '来源',
|
|
|
- props: 'resumeFrom',
|
|
|
- options: [
|
|
|
- { label: '全部', value: null },
|
|
|
- { label: '51job', value: 0 },
|
|
|
- { label: '智联', value: 1 },
|
|
|
- { label: '58同城', value: 2 },
|
|
|
- { label: '平台', value: 3 }
|
|
|
- ]
|
|
|
- }
|
|
|
- ],
|
|
|
- btn: [
|
|
|
+ label: '智联',
|
|
|
+ value: 1
|
|
|
+ },
|
|
|
{
|
|
|
- name: '确定',
|
|
|
- type: 'primary',
|
|
|
- method: 'search'
|
|
|
+ label: '58同城',
|
|
|
+ value: 2
|
|
|
},
|
|
|
{
|
|
|
- name: '导出',
|
|
|
- type: 'primary',
|
|
|
- method: 'exports'
|
|
|
+ label: '平台',
|
|
|
+ value: 3
|
|
|
}
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ btn: [{
|
|
|
+ name: '确定',
|
|
|
+ type: 'primary',
|
|
|
+ method: 'search'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: '导出',
|
|
|
+ type: 'primary',
|
|
|
+ method: 'exports'
|
|
|
+ }
|
|
|
],
|
|
|
table: {
|
|
|
selection: true,
|
|
|
- column: [
|
|
|
- {
|
|
|
- label: '编号',
|
|
|
- props: 'id'
|
|
|
- },
|
|
|
- {
|
|
|
- label: '姓名',
|
|
|
- props: 'delivererName',
|
|
|
- width: 60
|
|
|
- },
|
|
|
- {
|
|
|
- label: '性别',
|
|
|
- props: 'delivererSex',
|
|
|
- options: ['女', '男'],
|
|
|
- width: 60
|
|
|
- },
|
|
|
- {
|
|
|
- label: '简历来源',
|
|
|
- props: 'resumeFrom',
|
|
|
- options: ['51job', '智联招聘', '58同城', '平台'],
|
|
|
- width: 80
|
|
|
- },
|
|
|
- {
|
|
|
- label: '招聘类型',
|
|
|
- props: 'recruitType',
|
|
|
- options: ['社招', '校招', '直接校招'],
|
|
|
- width: 80
|
|
|
- },
|
|
|
- {
|
|
|
- label: '简历投递职位',
|
|
|
- props: 'positionApplied'
|
|
|
- },
|
|
|
- {
|
|
|
- label: '简历状态',
|
|
|
- props: 'state'
|
|
|
- },
|
|
|
- {
|
|
|
- label: '工作年限',
|
|
|
- props: 'delivererWorkExp'
|
|
|
- },
|
|
|
- {
|
|
|
- label: '学历',
|
|
|
- props: 'delivererEducation'
|
|
|
- },
|
|
|
- {
|
|
|
- label: '联系电话',
|
|
|
- props: 'delivererPhone'
|
|
|
- },
|
|
|
- {
|
|
|
- label: '面试应聘职位',
|
|
|
- props: 'positionName'
|
|
|
- },
|
|
|
- {
|
|
|
- label: '通知面试时间',
|
|
|
- props: 'sendMailTime'
|
|
|
- },
|
|
|
- {
|
|
|
- label: '完成面试时间',
|
|
|
- props: 'confirmInterviewTime'
|
|
|
- },
|
|
|
- {
|
|
|
- label: '面试状态',
|
|
|
- props: 'interviewStatus',
|
|
|
- options: ['未面试', '已面试']
|
|
|
- },
|
|
|
- {
|
|
|
- label: '面试结果',
|
|
|
- props: 'interviewResult',
|
|
|
- options: ['未读', '已通过', '已淘汰']
|
|
|
- }
|
|
|
+ column: [{
|
|
|
+ label: '编号',
|
|
|
+ props: 'id'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '姓名',
|
|
|
+ props: 'delivererName',
|
|
|
+ width: 60
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '性别',
|
|
|
+ props: 'delivererSex',
|
|
|
+ options: ['女', '男'],
|
|
|
+ width: 60
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '简历来源',
|
|
|
+ props: 'resumeFrom',
|
|
|
+ options: ['51job', '智联招聘', '58同城', '平台'],
|
|
|
+ width: 80
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '招聘类型',
|
|
|
+ props: 'recruitType',
|
|
|
+ options: ['社招', '校招', '直接校招'],
|
|
|
+ width: 80
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '简历投递职位',
|
|
|
+ props: 'positionApplied'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '简历状态',
|
|
|
+ props: 'state'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '工作年限',
|
|
|
+ props: 'delivererWorkExp'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '学历',
|
|
|
+ props: 'delivererEducation'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '联系电话',
|
|
|
+ props: 'delivererPhone'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '面试应聘职位',
|
|
|
+ props: 'positionName'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '通知面试时间',
|
|
|
+ props: 'sendMailTime'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '完成面试时间',
|
|
|
+ props: 'confirmInterviewTime'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '面试状态',
|
|
|
+ props: 'interviewStatus',
|
|
|
+ options: ['未面试', '已面试']
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '面试结果',
|
|
|
+ props: 'interviewResult',
|
|
|
+ options: ['未读', '已通过', '已淘汰']
|
|
|
+ }
|
|
|
],
|
|
|
// fixed: true,
|
|
|
width: 200,
|
|
|
- handle: [
|
|
|
- {
|
|
|
- title: '修改信息',
|
|
|
- method: 'update',
|
|
|
- type: 'info'
|
|
|
- },
|
|
|
- {
|
|
|
- title: '查看简历',
|
|
|
- method: 'details',
|
|
|
- type: 'info'
|
|
|
- }
|
|
|
+ handle: [{
|
|
|
+ title: '修改信息',
|
|
|
+ method: 'update',
|
|
|
+ type: 'info'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '查看简历',
|
|
|
+ method: 'details',
|
|
|
+ type: 'info'
|
|
|
+ }
|
|
|
]
|
|
|
}
|
|
|
}
|