flat: 修改全职岗位和零工岗位的问题

This commit is contained in:
yangxiao
2025-12-19 13:15:48 +08:00
parent 66f2b6e806
commit d08f241468
16 changed files with 5196 additions and 696 deletions

View File

@@ -5,16 +5,16 @@
@current-change="currentChange" @size-change="sizeChange" @refresh-change="refreshChange"
>
<!--自定义按钮-->
<template slot="menuLeft">
<!-- <template slot="menuLeft">
<save-button type="warning" plain icon="el-icon-plus" size="small" @click="rowCopy('', 'add')"
v-show="vaildData(permission.tenant_works_add, false)">发布岗位
</save-button>
<el-button type="success" size="small" plain icon="el-icon-plus" @click="handleImport"
v-show="vaildData(permission.tenant_works_add, false)">批量导入
</el-button>
</template>
</template> -->
<template slot="wage" slot-scope="{ row }">
<div>{{ row.wage }}{{ wageUnitCategoryStateEnum[row.wageUnitCategory] }}</div>
<div>{{ row.wage }}~{{row.wageUpper}}{{ wageUnitCategoryStateEnum[row.wageUnitCategory] }}</div>
</template>
<!--/自定义按钮-->
<!--自定义列-->
@@ -58,22 +58,8 @@
<!--/自定义列-->
<!--自定义操作栏-->
<div slot="menu" slot-scope="{ size, type, row }">
<!-- <el-button type="text" size="mini" @click="recommend(row)">重点人群推送</el-button> -->
<el-button type="text" v-if="row.reviewState === 1" size="mini" @click="employ(row, 1)">申请录用</el-button>
<el-button type="text" v-if="row.reviewState === 2" size="mini" @click="employmentNum(row)">已录用</el-button>
<el-button icon="el-icon-view" :size="size" :type="type" @click.stop="rowView(row)"
v-show="vaildData(permission.tenant_mission_view, false)">查看
</el-button>
<!-- <save-button icon="el-icon-check" :size="size" :type="type" @click="rowCopy(row, 'copy')">复制</save-button> -->
<el-button icon="el-icon-edit" :size="size" :type="type" @click="rowCopy(row, 'edit')" :disabled="false"
v-if="row.reviewState === 0 || row.reviewState === 1"
v-show="vaildData(permission.tenant_mission_edit, false)">编辑
</el-button>
<el-button icon="el-icon-delete" :size="size" :type="type" @click="$refs.crud.rowDel(row)" :disabled="false"
v-show="vaildData(permission.tenant_mission_cancel, false)" v-if="row.reviewState !== 9">取消
</el-button>
<!-- <el-button type="text" size="mini" @click="contrast(row)"
>比对人才库</el-button> -->
<el-button type="text" size="mini" @click="release(row)"
>发布</el-button>
</div>
</avue-crud>
<!--发布 复制 编辑dialog-->
@@ -111,7 +97,7 @@
</template>
<script>
import {getList, cancel, detail, upload} from "@/api/tenant/postzp";
import {getList, cancel, detail, upload, findCompanyListInInviteAndWorks} from "@/api/tenant/postzp";
// import {getList, cancel, detail} from "@/api/tenant/mission";
import CopyMission from "../Dialog/CopyMission";
import Employ from "../Dialog/Employ";
@@ -234,155 +220,48 @@ export default {
delBtnText: "取消",
dialogClickModal: false,
column: [
{
label: "机构名称",
prop: "companyName",
// display: false,
width: 200,
},
{
label: "用工单位",
prop: "jobCompanyName",
display: false,
fixed: true,
// fixed: true,
// width: 120,
}, {
label: "单位信用编码",
prop: "jobCompanyScale",
display: false,
// fixed: true,
// width: 120,
}, {
label: "联系人",
prop: "callName",
// type: "select",
// dicData: educationState,
search: false,
display: false,
width: 120,
},
{
label: "岗位名称",
prop: "jobName",
display: false,
fixed: true,
}, {
label: "手机号码",
prop: "callNumber",
search: false,
// display: false,
width: 120,
},
{
label: "招聘人数",
prop: "peopleNum",
search: false,
searchSpan: 1,
display: false,
},
{
label: "参考工资",
prop: "wage",
search: false,
searchSpan: 5,
display: false,
slot: true,
width: 140,
},
{
label: "岗位工种",
prop: "worktypeNames",
search: false,
display: false,
}, {
label: "年龄要求",
prop: "ageDesc",
search: false,
display: false,
}, {
label: "学历要求",
prop: "education",
type: "select",
dicData: educationState,
search: false,
display: false,
}, {
label: "经验要求",
prop: "experienceDesc",
search: false,
display: false,
},
{
label: "任务状态",
prop: "status",
type: "select",
dicData: missionState,
display: false,
hide: true,
span: 24,
width: 80,
},
{
label: "任务编码",
prop: "missionNo",
hide: true,
display: false,
},
{
label: "任务时长",
prop: "missionDuration",
search: false,
searchSpan: 5,
display: false,
hide: true,
minWidth: 70,
},
{
label: "详细地址",
prop: "address",
display: false,
span: 6,
width: 200,
},
{
label: "开始日期",
prop: "stime",
type: "date",
display: false,
minWidth: 100,
format: "yyyy-MM-dd",
},
{
label: "结束日期",
prop: "etime",
type: "date",
display: false,
minWidth: 100,
format: "yyyy-MM-dd",
},
{
label: "录入人员",
prop: "createUserName",
display: false,
span: 6,
width: 80,
},
{
label: "审核状态",
prop: "reviewState",
dicData: recruitStatus,
display: false,
span: 6,
width: 100,
},
{
label: "审核时间",
prop: "reviewTime",
display: false,
span: 6,
width: 100,
},
{
label: "审核人员",
prop: "reviewUserName",
display: false,
span: 6,
width: 100,
},
{
label: "数据来源",
prop: "dataSources",
dicData: dataSourcesEnum,
display: false,
span: 24,
width: 100,
},
{
label: "机构名称",
prop: "companyName",
display: false,
width: 200,
},
],
};
},
},
methods: {
release(row) {
this.$refs.copy.onLoad(row, 'add');
console.log(row, 'row')
},
format(date) {
if (date) {
return dateFormat(new Date(date), "yyyy/MM/dd");
@@ -488,11 +367,12 @@ export default {
status: this.query.status,
...params
}
getList(
findCompanyListInInviteAndWorks(
page.currentPage,
page.pageSize,
this.query
).then((res) => {
console.log(res, "res");
const data = res.data.data;
this.page.total = data.total;
this.data = data.records;