|
@@ -1,8 +1,24 @@
|
|
|
<template>
|
|
|
<div class="app-container">
|
|
|
<el-form :model="queryParams" ref="queryForm" :inline="true" @submit.native.prevent v-show="showSearch">
|
|
|
- <el-form-item label="关联账号" prop="userId">
|
|
|
- <el-input v-model="queryParams.userId" placeholder="请输入关联账号" @keyup.enter.native="handleQuery" clearable class="inp" />
|
|
|
+ <el-form-item label="关键字搜索" prop="title">
|
|
|
+ <el-input v-model="queryParams.title" placeholder="请输入职位名称或发布企业" @keyup.enter.native="handleQuery" clearable />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="工作类型" prop="type">
|
|
|
+ <el-select v-model="queryParams.type" placeholder="请选择" class="se" clearable>
|
|
|
+ <el-option value="0" label="全职"></el-option>
|
|
|
+ <el-option value="1" label="兼职"></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="审核状态" prop="audit">
|
|
|
+ <el-select v-model="queryParams.audit" placeholder="状态" class="se" clearable>
|
|
|
+ <el-option value="0" label="待审核"></el-option>
|
|
|
+ <el-option value="1" label="审核通过"></el-option>
|
|
|
+ <el-option value="2" label="审核不通过"></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="发布日期">
|
|
|
+ <el-date-picker v-model="dateRange" value-format="yyyy-MM-dd" type="daterange" range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker>
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
|
<el-button type="primary" icon="el-icon-search" @click="handleQuery">搜索</el-button>
|
|
@@ -10,42 +26,68 @@
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
<el-row :gutter="10" class="mb8">
|
|
|
- <el-button type="primary" icon="el-icon-plus" :disabled="ids.length > 0" @click="op('add')" v-hasPermi="['work:position:add']">新增</el-button>
|
|
|
- <el-button type="success" icon="el-icon-edit" :disabled="ids.length != 1" @click="op('edit', ids)" v-hasPermi="['work:position:edit']">修改</el-button>
|
|
|
<el-button type="danger" icon="el-icon-delete" :disabled="ids.length == 0" @click="del" v-hasPermi="['work:position:remove']">删除{{ ids.length > 0 ? '(' + ids.length + ')' : '' }}</el-button>
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
</el-row>
|
|
|
|
|
|
<el-table :data="response.rows" border @selection-change="selects" height="calc(100vh - 270px)">
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
- <el-table-column label="id" align="center" prop="id" />
|
|
|
- <el-table-column label="关联账号" align="center" prop="userId" />
|
|
|
- <el-table-column label="封面" align="center" prop="pic" />
|
|
|
- <el-table-column label="类型: 0全职 1兼职" align="center" prop="type" />
|
|
|
- <el-table-column label="职位名称" align="center" prop="title" />
|
|
|
- <el-table-column label="职位要求" align="center" prop="contents" />
|
|
|
- <el-table-column label="职位分类id" align="center" prop="positionId" />
|
|
|
- <el-table-column label="职位分类名称" align="center" prop="positionName" />
|
|
|
+ <el-table-column label="职位名称" align="center" prop="title" width="150" />
|
|
|
+ <el-table-column label="发布企业" align="center" prop="enterpriseName" width="270">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <div class="pon" @click="op('enterprise', scope.row)">{{ scope.row.enterpriseName }}</div>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="工作类型" align="center" prop="type">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-tag type="success" v-if="scope.row.type == 0">全职</el-tag>
|
|
|
+ <el-tag type="warning" v-if="scope.row.type == 1">兼职</el-tag>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="职位分类" align="center" prop="positionName" width="120" />
|
|
|
<el-table-column label="经验要求" align="center" prop="experience" />
|
|
|
<el-table-column label="薪资范围" align="center" prop="salary" />
|
|
|
- <el-table-column label="最小薪资" align="center" prop="min" />
|
|
|
- <el-table-column label="最大薪资" align="center" prop="max" />
|
|
|
- <el-table-column label="职位关键字" align="center" prop="tags" />
|
|
|
<el-table-column label="城市名称" align="center" prop="cityName" />
|
|
|
- <el-table-column label="地区ancestors" align="center" prop="ancestors" />
|
|
|
<el-table-column label="地区名称" align="center" prop="regionName" />
|
|
|
- <el-table-column label="地点名" align="center" prop="location" />
|
|
|
- <el-table-column label="详细地址" align="center" prop="address" />
|
|
|
- <el-table-column label="楼层/单元室/门牌号" align="center" prop="mph" />
|
|
|
- <el-table-column label="经度" align="center" prop="longitude" />
|
|
|
- <el-table-column label="维度" align="center" prop="latitude" />
|
|
|
- <el-table-column label="职位状态" align="center" prop="state" />
|
|
|
- <el-table-column label="职位审核" align="center" prop="audit" />
|
|
|
- <el-table-column label="审核备注" align="center" prop="rejectDesc" />
|
|
|
- <el-table-column label="状态 (0关闭 1已发布任务 2已接单 3业主已选中 4任务开始 5验收 6付款)" align="center" prop="status" />
|
|
|
- <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
+ <el-table-column label="详细地址" align="center" prop="address" width="150">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-popover placement="top-start" title="详细地址" width="300" trigger="hover" :content="scope.row.address + '-' + scope.row.mph">
|
|
|
+ <div slot="reference">
|
|
|
+ <div class="omit">{{ scope.row.address }}-{{ scope.row.mph }}</div>
|
|
|
+ </div>
|
|
|
+ </el-popover>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="是否推荐" align="center" prop="recommend" width="80">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button size="mini" type="text" icon="el-icon-edit" @click="op('edit', scope.row)" v-hasPermi="['work:position:edit']">修改</el-button>
|
|
|
+ <el-tag type="info" v-if="scope.row.recommend == 0">否</el-tag>
|
|
|
+ <el-tag type="success" v-if="scope.row.recommend == 1">是</el-tag>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="职位状态" align="center" prop="state" width="80">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-tag type="success" v-if="scope.row.state == 0">启用</el-tag>
|
|
|
+ <el-tag type="danger" v-if="scope.row.state == 1">关闭</el-tag>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="职位审核" align="center" width="120">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-tag type="info" v-if="scope.row.audit == 0">待审核</el-tag>
|
|
|
+ <el-tag type="success" v-if="scope.row.audit == 1">审核通过</el-tag>
|
|
|
+ <el-popover placement="top-start" v-if="scope.row.audit == 2" title="拒绝原因" width="300" trigger="hover" :content="scope.row.msg">
|
|
|
+ <div slot="reference">
|
|
|
+ <el-tag type="info">审核不通过</el-tag>
|
|
|
+ <i class="el-icon-warning"></i>
|
|
|
+ </div>
|
|
|
+ </el-popover>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="发布时间" align="center" prop="createTime" width="160" />
|
|
|
+ <el-table-column label="操作" align="center" fixed="right" width="180">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-button size="mini" type="text" icon="el-icon-view" @click="op('detail', scope.row)">详情</el-button>
|
|
|
+ <el-button size="mini" type="text" icon="el-icon-edit" @click="op('audit', scope.row)" v-hasPermi="['work:position:edit']" v-if="scope.row.audit == 0">审核</el-button>
|
|
|
+ <el-button size="mini" type="text" icon="el-icon-sell" @click="op('recommend', scope.row)" v-hasPermi="['work:position:recommend']" v-if="scope.row.audit == 1">推荐</el-button>
|
|
|
<el-button size="mini" type="text" icon="el-icon-delete" @click="del(scope.row)" v-hasPermi="['work:position:remove']">删除</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -59,6 +101,8 @@
|
|
|
|
|
|
<script>
|
|
|
import edit from './edit';
|
|
|
+import recommend from './recommend';
|
|
|
+import enterprise from '@/views/work/enterprise/edit.vue';
|
|
|
export default {
|
|
|
name: 'Position',
|
|
|
data() {
|
|
@@ -66,35 +110,13 @@ export default {
|
|
|
ids: [],
|
|
|
showSearch: true,
|
|
|
response: {},
|
|
|
+ dateRange: [],
|
|
|
queryParams: {
|
|
|
pageNum: 1,
|
|
|
pageSize: 10,
|
|
|
- userId: null,
|
|
|
- pic: null,
|
|
|
type: null,
|
|
|
title: null,
|
|
|
- contents: null,
|
|
|
- positionId: null,
|
|
|
- positionName: null,
|
|
|
- experience: null,
|
|
|
- salary: null,
|
|
|
- min: null,
|
|
|
- max: null,
|
|
|
- tags: null,
|
|
|
- cityName: null,
|
|
|
- ancestors: null,
|
|
|
- regionName: null,
|
|
|
- location: null,
|
|
|
- address: null,
|
|
|
- mph: null,
|
|
|
- longitude: null,
|
|
|
- latitude: null,
|
|
|
- state: null,
|
|
|
audit: null,
|
|
|
- startDate: null,
|
|
|
- endDate: null,
|
|
|
- rejectDesc: null,
|
|
|
- status: null,
|
|
|
orderByColumn: 'id',
|
|
|
isAsc: 'desc'
|
|
|
}
|
|
@@ -105,6 +127,10 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
getList() {
|
|
|
+ if (this.dateRange) {
|
|
|
+ this.queryParams.dateBegin = this.dateRange[0];
|
|
|
+ this.queryParams.dateEnd = this.dateRange[1];
|
|
|
+ }
|
|
|
this.ajax({ url: '/work/position/list', data: this.queryParams }).then((response) => {
|
|
|
this.response = response;
|
|
|
});
|
|
@@ -115,18 +141,25 @@ export default {
|
|
|
},
|
|
|
resetQuery() {
|
|
|
this.resetForm('queryForm');
|
|
|
+ this.dateRange = [];
|
|
|
this.handleQuery();
|
|
|
},
|
|
|
selects(rows) {
|
|
|
this.ids = rows.map((item) => item.id);
|
|
|
},
|
|
|
op(tag, row) {
|
|
|
- if (tag == 'add') {
|
|
|
- this.iframe({ obj: edit, param: {}, title: '新增', width: '45%', height: '55%' });
|
|
|
+ if (tag == 'enterprise') {
|
|
|
+ this.iframe({ obj: enterprise, param: { id: row.userId, detail: true }, title: '企业详情', width: '50%', height: '65%' });
|
|
|
+ }
|
|
|
+ if (tag == 'recommend') {
|
|
|
+ this.iframe({ obj: recommend, param: { id: row.id }, title: '设为推荐', width: '25%', height: '35%' });
|
|
|
+ }
|
|
|
+ if (tag == 'detail') {
|
|
|
+ this.iframe({ obj: edit, param: { id: row.id, detail: true }, title: '职位详情', width: '45%', height: '70%' });
|
|
|
}
|
|
|
- if (tag == 'edit') {
|
|
|
+ if (tag == 'audit') {
|
|
|
const id = row.id || this.ids[0];
|
|
|
- this.iframe({ obj: edit, param: { id: id }, title: '编辑', width: '50%', height: '50%' });
|
|
|
+ this.iframe({ obj: edit, param: { id: id, audit: true }, title: '职位审核', width: '45%', height: '70%' });
|
|
|
}
|
|
|
},
|
|
|
del(row) {
|