招聘信息修改
This commit is contained in:
parent
671f8de49d
commit
518f1321c5
|
@ -119,12 +119,15 @@ public class SysOssController extends BaseController {
|
|||
// 保存文件到目标目录
|
||||
File uploadFile = new File(directory.getAbsolutePath() + File.separator + fileName);
|
||||
file.transferTo(uploadFile);
|
||||
//上传服务器地址
|
||||
String pathFan=filePath.replace("\\","/");
|
||||
//filePath获取到的地址斜杠是“ \ ”的(单斜杠是特殊符号,得用双斜杠代替),得换成“ / ”才能访问到
|
||||
//返回全路径图片地址
|
||||
String returnPath = ("http://47.121.27.78:8008/upload/" + fileName).replace("\\","/");
|
||||
//修改数据库
|
||||
Long image = iSysImageService.uploadImage(fileName,pathFan+fileName);
|
||||
Long image = iSysImageService.uploadImage(fileName,returnPath);
|
||||
System.err.println("替换后:"+pathFan);
|
||||
map.put("url",pathFan+fileName);
|
||||
map.put("url",returnPath);
|
||||
map.put("fileName",fileName);
|
||||
map.put("ossId",image.toString());
|
||||
return R.ok(map);
|
||||
|
|
|
@ -29,33 +29,50 @@ public class GwJobInfo extends BaseEntity {
|
|||
@TableId(value = "id")
|
||||
private Long id;
|
||||
/**
|
||||
* 标签id
|
||||
* 岗位名称
|
||||
*/
|
||||
private Long lableId;
|
||||
private String jobName;
|
||||
/**
|
||||
* 招聘岗位
|
||||
* 岗位职责
|
||||
*/
|
||||
private String jobPost;
|
||||
private String postStatement;
|
||||
/**
|
||||
* 岗位类型
|
||||
* 薪资范围
|
||||
*/
|
||||
private String postType;
|
||||
/**
|
||||
* 招聘类型
|
||||
*/
|
||||
private String jobType;
|
||||
private String
|
||||
salaryRange;
|
||||
/**
|
||||
* 工作地点
|
||||
*/
|
||||
private String baseSite;
|
||||
/**
|
||||
* 工作职责
|
||||
* 学历
|
||||
*/
|
||||
private String education;
|
||||
/**
|
||||
* 年龄范围
|
||||
*/
|
||||
private String ageRange;
|
||||
/**
|
||||
* 发布时间
|
||||
*/
|
||||
private Date releaseTime;
|
||||
/**
|
||||
* 是否置顶 0:否 1:是
|
||||
*/
|
||||
private String isTop;
|
||||
/**
|
||||
* 岗位职责
|
||||
*/
|
||||
private String jobDuties;
|
||||
/**
|
||||
* 任职资格
|
||||
* 任职要求
|
||||
*/
|
||||
private String qualification;
|
||||
/**
|
||||
* 发布状态 0:否 1:是
|
||||
*/
|
||||
private String releaseState;
|
||||
/**
|
||||
* 创建者id
|
||||
*/
|
||||
|
|
|
@ -29,28 +29,23 @@ public class GwJobInfoBo extends BaseEntity {
|
|||
private Long id;
|
||||
|
||||
/**
|
||||
* 标签id
|
||||
* 岗位名称
|
||||
*/
|
||||
@NotNull(message = "标签id不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private Long lableId;
|
||||
@NotBlank(message = "岗位名称不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private String jobName;
|
||||
|
||||
/**
|
||||
* 招聘岗位
|
||||
* 岗位职责
|
||||
*/
|
||||
@NotBlank(message = "招聘岗位不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private String jobPost;
|
||||
@NotBlank(message = "岗位职责不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private String postStatement;
|
||||
|
||||
/**
|
||||
* 岗位类型
|
||||
* 薪资范围
|
||||
*/
|
||||
@NotBlank(message = "岗位类型不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private String postType;
|
||||
|
||||
/**
|
||||
* 招聘类型
|
||||
*/
|
||||
@NotBlank(message = "招聘类型不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private String jobType;
|
||||
@NotBlank(message = "薪资范围不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private String
|
||||
salaryRange;
|
||||
|
||||
/**
|
||||
* 工作地点
|
||||
|
@ -59,17 +54,47 @@ public class GwJobInfoBo extends BaseEntity {
|
|||
private String baseSite;
|
||||
|
||||
/**
|
||||
* 工作职责
|
||||
* 学历
|
||||
*/
|
||||
@NotBlank(message = "工作职责不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
@NotBlank(message = "学历不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private String education;
|
||||
|
||||
/**
|
||||
* 年龄范围
|
||||
*/
|
||||
@NotBlank(message = "年龄范围不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private String ageRange;
|
||||
|
||||
/**
|
||||
* 发布时间
|
||||
*/
|
||||
@NotNull(message = "发布时间不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private Date releaseTime;
|
||||
|
||||
/**
|
||||
* 是否置顶 0:否 1:是
|
||||
*/
|
||||
@NotBlank(message = "是否置顶 0:否 1:是不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private String isTop;
|
||||
|
||||
/**
|
||||
* 岗位职责
|
||||
*/
|
||||
@NotBlank(message = "岗位职责不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private String jobDuties;
|
||||
|
||||
/**
|
||||
* 任职资格
|
||||
* 任职要求
|
||||
*/
|
||||
@NotBlank(message = "任职资格不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
@NotBlank(message = "任职要求不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private String qualification;
|
||||
|
||||
/**
|
||||
* 发布状态 0:否 1:是
|
||||
*/
|
||||
@NotBlank(message = "发布状态 0:否 1:是不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private String releaseState;
|
||||
|
||||
/**
|
||||
* 创建者id
|
||||
*/
|
||||
|
@ -83,4 +108,5 @@ public class GwJobInfoBo extends BaseEntity {
|
|||
private Long updateUserId;
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -29,28 +29,23 @@ public class GwJobInfoVo {
|
|||
private Long id;
|
||||
|
||||
/**
|
||||
* 标签id
|
||||
* 岗位名称
|
||||
*/
|
||||
@ExcelProperty(value = "标签id")
|
||||
private Long lableId;
|
||||
@ExcelProperty(value = "岗位名称")
|
||||
private String jobName;
|
||||
|
||||
/**
|
||||
* 招聘岗位
|
||||
* 岗位职责
|
||||
*/
|
||||
@ExcelProperty(value = "招聘岗位")
|
||||
private String jobPost;
|
||||
@ExcelProperty(value = "岗位职责")
|
||||
private String postStatement;
|
||||
|
||||
/**
|
||||
* 岗位类型
|
||||
* 薪资范围
|
||||
*/
|
||||
@ExcelProperty(value = "岗位类型")
|
||||
private String postType;
|
||||
|
||||
/**
|
||||
* 招聘类型
|
||||
*/
|
||||
@ExcelProperty(value = "招聘类型")
|
||||
private String jobType;
|
||||
@ExcelProperty(value = "薪资范围")
|
||||
private String
|
||||
salaryRange;
|
||||
|
||||
/**
|
||||
* 工作地点
|
||||
|
@ -59,17 +54,47 @@ public class GwJobInfoVo {
|
|||
private String baseSite;
|
||||
|
||||
/**
|
||||
* 工作职责
|
||||
* 学历
|
||||
*/
|
||||
@ExcelProperty(value = "工作职责")
|
||||
@ExcelProperty(value = "学历")
|
||||
private String education;
|
||||
|
||||
/**
|
||||
* 年龄范围
|
||||
*/
|
||||
@ExcelProperty(value = "年龄范围")
|
||||
private String ageRange;
|
||||
|
||||
/**
|
||||
* 发布时间
|
||||
*/
|
||||
@ExcelProperty(value = "发布时间")
|
||||
private Date releaseTime;
|
||||
|
||||
/**
|
||||
* 是否置顶 0:否 1:是
|
||||
*/
|
||||
@ExcelProperty(value = "是否置顶 0:否 1:是")
|
||||
private String isTop;
|
||||
|
||||
/**
|
||||
* 岗位职责
|
||||
*/
|
||||
@ExcelProperty(value = "岗位职责")
|
||||
private String jobDuties;
|
||||
|
||||
/**
|
||||
* 任职资格
|
||||
* 任职要求
|
||||
*/
|
||||
@ExcelProperty(value = "任职资格")
|
||||
@ExcelProperty(value = "任职要求")
|
||||
private String qualification;
|
||||
|
||||
/**
|
||||
* 发布状态 0:否 1:是
|
||||
*/
|
||||
@ExcelProperty(value = "发布状态 0:否 1:是")
|
||||
private String releaseState;
|
||||
|
||||
/**
|
||||
* 创建者id
|
||||
*/
|
||||
|
@ -83,4 +108,5 @@ public class GwJobInfoVo {
|
|||
private Long updateUserId;
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -33,6 +33,7 @@ public class GwJobInfoServiceImpl implements IGwJobInfoService {
|
|||
|
||||
/**
|
||||
* 查询招聘信息
|
||||
|
||||
*/
|
||||
@Override
|
||||
public GwJobInfoVo queryById(Long id){
|
||||
|
@ -40,7 +41,8 @@ public class GwJobInfoServiceImpl implements IGwJobInfoService {
|
|||
}
|
||||
|
||||
/**
|
||||
* 查询招聘信息列表
|
||||
* 查询招聘信息
|
||||
列表
|
||||
*/
|
||||
@Override
|
||||
public TableDataInfo<GwJobInfoVo> queryPageList(GwJobInfoBo bo, PageQuery pageQuery) {
|
||||
|
@ -50,7 +52,8 @@ public class GwJobInfoServiceImpl implements IGwJobInfoService {
|
|||
}
|
||||
|
||||
/**
|
||||
* 查询招聘信息列表
|
||||
* 查询招聘信息
|
||||
列表
|
||||
*/
|
||||
@Override
|
||||
public List<GwJobInfoVo> queryList(GwJobInfoBo bo) {
|
||||
|
@ -61,13 +64,17 @@ public class GwJobInfoServiceImpl implements IGwJobInfoService {
|
|||
private LambdaQueryWrapper<GwJobInfo> buildQueryWrapper(GwJobInfoBo bo) {
|
||||
Map<String, Object> params = bo.getParams();
|
||||
LambdaQueryWrapper<GwJobInfo> lqw = Wrappers.lambdaQuery();
|
||||
lqw.eq(bo.getLableId() != null, GwJobInfo::getLableId, bo.getLableId());
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getJobPost()), GwJobInfo::getJobPost, bo.getJobPost());
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getPostType()), GwJobInfo::getPostType, bo.getPostType());
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getJobType()), GwJobInfo::getJobType, bo.getJobType());
|
||||
lqw.like(StringUtils.isNotBlank(bo.getJobName()), GwJobInfo::getJobName, bo.getJobName());
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getPostStatement()), GwJobInfo::getPostStatement, bo.getPostStatement());
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getSalaryRange()), GwJobInfo::getSalaryRange, bo.getSalaryRange());
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getBaseSite()), GwJobInfo::getBaseSite, bo.getBaseSite());
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getEducation()), GwJobInfo::getEducation, bo.getEducation());
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getAgeRange()), GwJobInfo::getAgeRange, bo.getAgeRange());
|
||||
lqw.eq(bo.getReleaseTime() != null, GwJobInfo::getReleaseTime, bo.getReleaseTime());
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getIsTop()), GwJobInfo::getIsTop, bo.getIsTop());
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getJobDuties()), GwJobInfo::getJobDuties, bo.getJobDuties());
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getQualification()), GwJobInfo::getQualification, bo.getQualification());
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getReleaseState()), GwJobInfo::getReleaseState, bo.getReleaseState());
|
||||
lqw.eq(bo.getCreateUserId() != null, GwJobInfo::getCreateUserId, bo.getCreateUserId());
|
||||
lqw.eq(bo.getUpdateUserId() != null, GwJobInfo::getUpdateUserId, bo.getUpdateUserId());
|
||||
return lqw;
|
||||
|
@ -75,6 +82,7 @@ public class GwJobInfoServiceImpl implements IGwJobInfoService {
|
|||
|
||||
/**
|
||||
* 新增招聘信息
|
||||
|
||||
*/
|
||||
@Override
|
||||
public Boolean insertByBo(GwJobInfoBo bo) {
|
||||
|
@ -89,6 +97,7 @@ public class GwJobInfoServiceImpl implements IGwJobInfoService {
|
|||
|
||||
/**
|
||||
* 修改招聘信息
|
||||
|
||||
*/
|
||||
@Override
|
||||
public Boolean updateByBo(GwJobInfoBo bo) {
|
||||
|
|
|
@ -72,9 +72,8 @@ public class GwSlideshowServiceImpl implements IGwSlideshowService {
|
|||
Page<GwSlideshowVo> result = baseMapper.selectVoPage(pageQuery.build(), lqw);
|
||||
if (CollUtil.isNotEmpty(result.getRecords())){
|
||||
List<GwSlideshowVo> records = result.getRecords();
|
||||
List<GwSlideshowVo> collect = records.stream().filter(ObjectUtil::isNotEmpty).sorted(Comparator.comparing(GwSlideshowVo::getReleaseTime).reversed()).collect(Collectors.toList());
|
||||
List<GwSlideshowVo> fist = collect.stream().filter(itx -> itx.getIsTop().equals("1")).collect(Collectors.toList());
|
||||
fist.addAll(collect.stream().filter(itx->!itx.getIsTop().equals("1")).collect(Collectors.toList()));
|
||||
List<GwSlideshowVo> fist = records.stream().filter(itx -> itx.getIsTop().equals("1")).collect(Collectors.toList());
|
||||
fist.addAll(records.stream().filter(itx->!itx.getIsTop().equals("1")).collect(Collectors.toList()));
|
||||
result.setRecords(fist);
|
||||
}
|
||||
return TableDataInfo.build(result);
|
||||
|
@ -99,7 +98,7 @@ public class GwSlideshowServiceImpl implements IGwSlideshowService {
|
|||
lqw.eq(StringUtils.isNotBlank(bo.getNewsContent()), GwSlideshow::getNewsContent, bo.getNewsContent());
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getAbstracts()), GwSlideshow::getAbstracts, bo.getAbstracts());
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getIsTop()), GwSlideshow::getIsTop, bo.getIsTop());
|
||||
lqw.orderByDesc(GwSlideshow::getCreateTime);
|
||||
lqw.orderByDesc(GwSlideshow::getReleaseTime);
|
||||
return lqw;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,19 +1,25 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.official.mapper.GwJobInfoMapper">
|
||||
|
||||
<resultMap type="com.ruoyi.official.domain.GwJobInfo" id="GwJobInfoResult">
|
||||
<resultMap type="com.ruoyi.system.domain.GwJobInfo" id="GwJobInfoResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="lableId" column="lable_id"/>
|
||||
<result property="jobPost" column="job_post"/>
|
||||
<result property="postType" column="post_type"/>
|
||||
<result property="jobType" column="job_type"/>
|
||||
<result property="createBy" column="create_by"/>
|
||||
<result property="jobName" column="job_name"/>
|
||||
<result property="postStatement" column="post_statement"/>
|
||||
<result property="
|
||||
salaryRange" column="
|
||||
salary_range"/>
|
||||
<result property="baseSite" column="base_site"/>
|
||||
<result property="education" column="education"/>
|
||||
<result property="ageRange" column="age_range"/>
|
||||
<result property="releaseTime" column="release_time"/>
|
||||
<result property="isTop" column="is_top"/>
|
||||
<result property="jobDuties" column="job_duties"/>
|
||||
<result property="qualification" column="qualification"/>
|
||||
<result property="createBy" column="create_by"/>
|
||||
<result property="releaseState" column="release_state"/>
|
||||
<result property="createUserId" column="create_user_id"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="updateBy" column="update_by"/>
|
||||
|
|
|
@ -6,7 +6,7 @@ ENV = 'development'
|
|||
|
||||
# 若依管理系统/开发环境
|
||||
VUE_APP_BASE_API = '/prod-api'
|
||||
VUE_APP_API_TARGET_URL = 'http://47.121.27.78:8080/'
|
||||
VUE_APP_API_TARGET_URL = 'http://192.168.28.105:8081/'
|
||||
|
||||
# 应用访问路径 例如使用前缀 /admin/
|
||||
VUE_APP_CONTEXT_PATH = '/'
|
||||
|
|
|
@ -1,18 +1,21 @@
|
|||
<template>
|
||||
<div class="app-container">
|
||||
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
|
||||
<el-form-item label="标签id" prop="lableId">
|
||||
<el-form-item label="岗位名称" prop="jobName">
|
||||
<el-input
|
||||
v-model="queryParams.lableId"
|
||||
placeholder="请输入标签id"
|
||||
v-model="queryParams.jobName"
|
||||
placeholder="请输入岗位名称"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
@keyup.enter.native="handleQuery"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="招聘岗位" prop="jobPost">
|
||||
<el-form-item label="岗位职责" prop="postStatement">
|
||||
<el-input
|
||||
v-model="queryParams.jobPost"
|
||||
placeholder="请输入招聘岗位"
|
||||
v-model="qu/>
|
||||
</el-form-item>
|
||||
<el-form-item label="薪资范围" prop="salaryRange">
|
||||
<el-input
|
||||
v-model="queryParams.salaryRange"
|
||||
placeholder="请输入薪资范围"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
|
@ -25,18 +28,58 @@
|
|||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="工作职责" prop="jobDuties">
|
||||
<el-form-item label="学历" prop="education">
|
||||
<el-input
|
||||
v-model="queryParams.jobDuties"
|
||||
placeholder="请输入工作职责"
|
||||
v-model="queryParams.education"
|
||||
placeholder="请输入学历"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="任职资格" prop="qualification">
|
||||
<el-form-item label="年龄范围" prop="ageRange">
|
||||
<el-input
|
||||
v-model="queryParams.ageRange"
|
||||
placeholder="请输入年龄范围"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="发布时间" prop="releaseTime">
|
||||
<el-date-picker clearable
|
||||
v-model="queryParams.releaseTime"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="请选择发布时间">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="是否置顶 0:否 1:是" prop="isTop">
|
||||
<el-input
|
||||
v-model="queryParams.isTop"
|
||||
placeholder="请输入是否置顶 0:否 1:是"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="岗位职责" prop="jobDuties">
|
||||
<el-input
|
||||
v-model="queryParams.jobDuties"
|
||||
placeholder="请输入岗位职责"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="任职要求" prop="qualification">
|
||||
<el-input
|
||||
v-model="queryParams.qualification"
|
||||
placeholder="请输入任职资格"
|
||||
placeholder="请输入任职要求"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="发布状态 0:否 1:是" prop="releaseState">
|
||||
<el-input
|
||||
v-model="queryParams.releaseState"
|
||||
placeholder="请输入发布状态 0:否 1:是"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
|
@ -82,8 +125,7 @@
|
|||
size="mini"
|
||||
:disabled="single"
|
||||
@click="handleUpdate"
|
||||
v-hasPermi="['official:jobInfo:edit']"
|
||||
>修改</el-button>
|
||||
v-hasPermi="['system:jobInfo:edit']">修改</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
|
@ -93,8 +135,7 @@
|
|||
size="mini"
|
||||
:disabled="multiple"
|
||||
@click="handleDelete"
|
||||
v-hasPermi="['official:jobInfo:remove']"
|
||||
>删除</el-button>
|
||||
v-hasPermi="['system:jobInfo:remove']">删除</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
|
@ -112,13 +153,21 @@
|
|||
<el-table v-loading="loading" :data="jobInfoList" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<el-table-column label="主键id" align="center" prop="id" v-if="true"/>
|
||||
<el-table-column label="标签id" align="center" prop="lableId" />
|
||||
<el-table-column label="招聘岗位" align="center" prop="jobPost" />
|
||||
<el-table-column label="岗位类型" align="center" prop="postType" />
|
||||
<el-table-column label="招聘类型" align="center" prop="jobType" />
|
||||
<el-table-column label="岗位名称" align="center" prop="jobName" />
|
||||
<el-table-column label="岗位职责" align="center" prop="postStatement" />
|
||||
<el-table-column label="薪资范围" align="center" prop="salaryRange" />
|
||||
<el-table-column label="工作地点" align="center" prop="baseSite" />
|
||||
<el-table-column label="工作职责" align="center" prop="jobDuties" />
|
||||
<el-table-column label="任职资格" align="center" prop="qualification" />
|
||||
<el-table-column label="学历" align="center" prop="education" />
|
||||
<el-table-column label="年龄范围" align="center" prop="ageRange" />
|
||||
<el-table-column label="发布时间" align="center" prop="releaseTime" width="180">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ parseTime(scope.row.releaseTime, '{y}-{m}-{d}') }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="是否置顶 0:否 1:是" align="center" prop="isTop" />
|
||||
<el-table-column label="岗位职责" align="center" prop="jobDuties" />
|
||||
<el-table-column label="任职要求" align="center" prop="qualification" />
|
||||
<el-table-column label="发布状态 0:否 1:是" align="center" prop="releaseState" />
|
||||
<el-table-column label="创建者id" align="center" prop="createUserId" />
|
||||
<el-table-column label="更新者id" align="center" prop="updateUserId" />
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||
|
@ -152,20 +201,43 @@
|
|||
<!-- 添加或修改招聘信息对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
||||
<el-form-item label="标签id" prop="lableId">
|
||||
<el-input v-model="form.lableId" placeholder="请输入标签id" />
|
||||
<el-form-item label="岗位名称" prop="jobName">
|
||||
<el-input v-model="form.jobName" placeholder="请输入岗位名称" />
|
||||
</el-form-item>
|
||||
<el-form-item label="招聘岗位" prop="jobPost">
|
||||
<el-input v-model="form.jobPost" placeholder="请输入招聘岗位" />
|
||||
<el-form-item label="岗位职责" prop="postStatement">
|
||||
<el-input v-model="form.postStatement" placeholder="请输入岗位职责" />
|
||||
</el-form-item>
|
||||
<el-form-item label="薪资范围" prop="salaryRange">
|
||||
<el-input v-model="form.salaryRange" placeholder="请输入薪资范围" />
|
||||
</el-form-item>
|
||||
<el-form-item label="工作地点" prop="baseSite">
|
||||
<el-input v-model="form.baseSite" placeholder="请输入工作地点" />
|
||||
</el-form-item>
|
||||
<el-form-item label="工作职责" prop="jobDuties">
|
||||
<el-input v-model="form.jobDuties" placeholder="请输入工作职责" />
|
||||
<el-form-item label="学历" prop="education">
|
||||
<el-input v-model="form.education" placeholder="请输入学历" />
|
||||
</el-form-item>
|
||||
<el-form-item label="任职资格" prop="qualification">
|
||||
<el-input v-model="form.qualification" placeholder="请输入任职资格" />
|
||||
<el-form-item label="年龄范围" prop="ageRange">
|
||||
<el-input v-model="form.ageRange" placeholder="请输入年龄范围" />
|
||||
</el-form-item>
|
||||
<el-form-item label="发布时间" prop="releaseTime">
|
||||
<el-date-picker clearable
|
||||
v-model="form.releaseTime"
|
||||
type="datetime"
|
||||
value-format="yyyy-MM-dd HH:mm:ss"
|
||||
placeholder="请选择发布时间">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="是否置顶 0:否 1:是" prop="isTop">
|
||||
<el-input v-model="form.isTop" placeholder="请输入是否置顶 0:否 1:是" />
|
||||
</el-form-item>
|
||||
<el-form-item label="岗位职责" prop="jobDuties">
|
||||
<el-input v-model="form.jobDuties" placeholder="请输入岗位职责" />
|
||||
</el-form-item>
|
||||
<el-form-item label="任职要求" prop="qualification">
|
||||
<el-input v-model="form.qualification" placeholder="请输入任职要求" />
|
||||
</el-form-item>
|
||||
<el-form-item label="发布状态 0:否 1:是" prop="releaseState">
|
||||
<el-input v-model="form.releaseState" placeholder="请输入发布状态 0:否 1:是" />
|
||||
</el-form-item>
|
||||
<el-form-item label="创建者id" prop="createUserId">
|
||||
<el-input v-model="form.createUserId" placeholder="请输入创建者id" />
|
||||
|
@ -213,13 +285,17 @@ export default {
|
|||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
lableId: undefined,
|
||||
jobPost: undefined,
|
||||
postType: undefined,
|
||||
jobType: undefined,
|
||||
jobName: undefined,
|
||||
postStatement: undefined,
|
||||
salaryRange: undefined,
|
||||
baseSite: undefined,
|
||||
education: undefined,
|
||||
ageRange: undefined,
|
||||
releaseTime: undefined,
|
||||
isTop: undefined,
|
||||
jobDuties: undefined,
|
||||
qualification: undefined,
|
||||
releaseState: undefined,
|
||||
createUserId: undefined,
|
||||
updateUserId: undefined,
|
||||
},
|
||||
|
@ -230,26 +306,39 @@ export default {
|
|||
id: [
|
||||
{ required: true, message: "主键id不能为空", trigger: "blur" }
|
||||
],
|
||||
lableId: [
|
||||
{ required: true, message: "标签id不能为空", trigger: "blur" }
|
||||
jobName: [
|
||||
{ required: true, message: "岗位名称不能为空", trigger: "blur" }
|
||||
],
|
||||
jobPost: [
|
||||
{ required: true, message: "招聘岗位不能为空", trigger: "blur" }
|
||||
postStatement: [
|
||||
{ required: true, message: "岗位职责不能为空", trigger: "blur" }
|
||||
],
|
||||
postType: [
|
||||
{ required: true, message: "岗位类型不能为空", trigger: "change" }
|
||||
],
|
||||
jobType: [
|
||||
{ required: true, message: "招聘类型不能为空", trigger: "change" }
|
||||
|
||||
salaryRange: [
|
||||
{ required: true, message: "薪资范围不能为空", trigger: "blur" }
|
||||
],
|
||||
baseSite: [
|
||||
{ required: true, message: "工作地点不能为空", trigger: "blur" }
|
||||
],
|
||||
education: [
|
||||
{ required: true, message: "学历不能为空", trigger: "blur" }
|
||||
],
|
||||
ageRange: [
|
||||
{ required: true, message: "年龄范围不能为空", trigger: "blur" }
|
||||
],
|
||||
releaseTime: [
|
||||
{ required: true, message: "发布时间不能为空", trigger: "blur" }
|
||||
],
|
||||
isTop: [
|
||||
{ required: true, message: "是否置顶 0:否 1:是不能为空", trigger: "blur" }
|
||||
],
|
||||
jobDuties: [
|
||||
{ required: true, message: "工作职责不能为空", trigger: "blur" }
|
||||
{ required: true, message: "岗位职责不能为空", trigger: "blur" }
|
||||
],
|
||||
qualification: [
|
||||
{ required: true, message: "任职资格不能为空", trigger: "blur" }
|
||||
{ required: true, message: "任职要求不能为空", trigger: "blur" }
|
||||
],
|
||||
releaseState: [
|
||||
{ required: true, message: "发布状态 0:否 1:是不能为空", trigger: "blur" }
|
||||
],
|
||||
createUserId: [
|
||||
{ required: true, message: "创建者id不能为空", trigger: "blur" }
|
||||
|
@ -283,14 +372,18 @@ export default {
|
|||
reset() {
|
||||
this.form = {
|
||||
id: undefined,
|
||||
lableId: undefined,
|
||||
jobPost: undefined,
|
||||
postType: undefined,
|
||||
jobType: undefined,
|
||||
createBy: undefined,
|
||||
jobName: undefined,
|
||||
postStatement: undefined,
|
||||
salaryRange: undefined,
|
||||
baseSite: undefined,
|
||||
education: undefined,
|
||||
ageRange: undefined,
|
||||
releaseTime: undefined,
|
||||
isTop: undefined,
|
||||
jobDuties: undefined,
|
||||
qualification: undefined,
|
||||
createBy: undefined,
|
||||
releaseState: undefined,
|
||||
createUserId: undefined,
|
||||
createTime: undefined,
|
||||
updateBy: undefined,
|
||||
|
@ -375,7 +468,7 @@ export default {
|
|||
},
|
||||
/** 导出按钮操作 */
|
||||
handleExport() {
|
||||
this.download('official/jobInfo/export', {
|
||||
this.download('system/jobInfo/export', {
|
||||
...this.queryParams
|
||||
}, `jobInfo_${new Date().getTime()}.xlsx`)
|
||||
}
|
||||
|
|
|
@ -37,9 +37,9 @@ module.exports = {
|
|||
[process.env.VUE_APP_BASE_API]: {
|
||||
target: process.env.VUE_APP_API_TARGET_URL,
|
||||
changeOrigin: true,
|
||||
// pathRewrite: {
|
||||
// ['^' + process.env.VUE_APP_BASE_API]: ''
|
||||
// }
|
||||
pathRewrite: {
|
||||
['^' + process.env.VUE_APP_BASE_API]: ''
|
||||
}
|
||||
},
|
||||
},
|
||||
disableHostCheck: true
|
||||
|
|
Loading…
Reference in New Issue
Block a user