|
@@ -124,7 +124,8 @@
|
|
|
<a-button type="link" size="small" @click='onDetail(record)' functioncode="T01020201">查看</a-button>
|
|
|
<a-button type="link" size="small" @click='onEdit(record)' functioncode="T01020203">编辑</a-button>
|
|
|
<a-button type="link" size="small" @click="onDel(record)" functioncode="T01020204">删除</a-button>
|
|
|
- <a-button type="link" size="small" @click="onRecommendJob(record)" functioncode="T01030207">推荐求职人员</a-button>
|
|
|
+ <a-button type="link" size="small" @click="onRecommendJob(record)" functioncode="T01030207">推荐求职人员</a-button>
|
|
|
+ <a-button type="link" size="small" @click="onChangeStatus(record.postID,record.recordStatus==1?0:1)" >{{ record.recordStatus==1?"禁用":"启用" }}</a-button>
|
|
|
</div>
|
|
|
</template>
|
|
|
</template>
|
|
@@ -151,6 +152,7 @@ import {get} from "@/api/common";
|
|
|
import Recommend from "@/views/companyService/post/recommend.vue";
|
|
|
import {getSiteList} from "@/api/baseSettings/siteInfo";
|
|
|
import ColumnsSetting from "@/components/common/ColumnsSetting.vue";
|
|
|
+import {updatePostStatus} from "@/api/companyService/post";
|
|
|
|
|
|
export default defineComponent({
|
|
|
name: "PostList",
|
|
@@ -214,77 +216,40 @@ export default defineComponent({
|
|
|
});
|
|
|
// 原始表格定义数据
|
|
|
const originalColumns = [
|
|
|
- {
|
|
|
- title: '序号',
|
|
|
- align: "center",
|
|
|
- key: 'postID',
|
|
|
- width: 50,
|
|
|
- customRender: item => `${searchParams.pageSize * (searchParams.pageIndex - 1) + item.index + 1}`,
|
|
|
+ {title: '序号', align: "center", key: 'postID', width: 50,
|
|
|
+ customRender: (item) => `${searchParams.pageSize * (searchParams.pageIndex - 1) + item.index + 1}`,
|
|
|
isDisabled: true
|
|
|
},
|
|
|
{title: '岗位名称', dataIndex: 'professionName', key: 'professionName', align: "center"},
|
|
|
{title: '招聘人数', dataIndex: 'recruitCount', key: 'recruitCount', width: 120, align: "center"},
|
|
|
- {
|
|
|
- title: '开始日期', dataIndex: 'startTime', key: 'startTime', align: "center", customRender: (item) => {
|
|
|
+ {title: '开始日期', dataIndex: 'startTime', key: 'startTime', width: 120, align: "center",
|
|
|
+ customRender: (item) => {
|
|
|
return item.record.startTime == null ? "" : (dayjs(item.record.startTime).format('YYYY-MM-DD'))
|
|
|
}
|
|
|
},
|
|
|
- {title: '结束日期', dataIndex: 'endTime', key: 'endTime', align: "center",customRender: (item) => {
|
|
|
+ {title: '结束日期', dataIndex: 'endTime', key: 'endTime', width: 120, align: "center",
|
|
|
+ customRender: (item) => {
|
|
|
return item.record.endTime == null ? "" : (dayjs(item.record.endTime).format('YYYY-MM-DD'))
|
|
|
}
|
|
|
},
|
|
|
- {title: '招聘企业', dataIndex: 'companyName', key: 'companyName', width: 200, align: "center"},
|
|
|
- {title: '所属驿站', dataIndex: 'siteName', key: 'siteName', width: 200, align: "center"},
|
|
|
- {
|
|
|
- title: '岗位状态', dataIndex: 'recordStatus', key: 'recordStatus', align: "center",
|
|
|
+ {title: '招聘企业', dataIndex: 'companyName', key: 'companyName',align: "center"},
|
|
|
+ {title: '所属驿站', dataIndex: 'siteName', key: 'siteName', align: "center"},
|
|
|
+ {title: '岗位状态', dataIndex: 'recordStatus', key: 'recordStatus', width: 100, align: "center",
|
|
|
customRender: (item) => {
|
|
|
return item.record.recordStatus == 1 ? "启用" : "停用";
|
|
|
}
|
|
|
},
|
|
|
- {
|
|
|
- title: '学历要求',
|
|
|
- dataIndex: 'cultureLevelName',
|
|
|
- key: 'cultureLevelName',
|
|
|
- width: 150,
|
|
|
- align: "center",
|
|
|
- isDefaultClose: true
|
|
|
- },
|
|
|
- {
|
|
|
- title: '薪酬',
|
|
|
- dataIndex: 'postSalary',
|
|
|
- key: 'postSalary',
|
|
|
- width: 150,
|
|
|
- align: "center",
|
|
|
+ {title: '学历要求', dataIndex: 'cultureLevelName', key: 'cultureLevelName', width: 150, align: "center", isDefaultClose: true},
|
|
|
+ {title: '薪酬', dataIndex: 'postSalary', key: 'postSalary', width: 150, align: "center",
|
|
|
customRender: (item) => {
|
|
|
return showSalary(item.record.minSalary, item.record.maxSalary);
|
|
|
},
|
|
|
isDefaultClose: true
|
|
|
},
|
|
|
- {
|
|
|
- title: '联系人',
|
|
|
- dataIndex: 'contactName',
|
|
|
- key: 'contactName',
|
|
|
- width: 150,
|
|
|
- align: "center",
|
|
|
- isDefaultClose: true
|
|
|
- },
|
|
|
- {
|
|
|
- title: '联系电话',
|
|
|
- dataIndex: 'contactMobile',
|
|
|
- key: 'contactMobile',
|
|
|
- width: 200,
|
|
|
- align: "center",
|
|
|
- isDefaultClose: true
|
|
|
- },
|
|
|
- {
|
|
|
- title: '推荐数量',
|
|
|
- dataIndex: 'recommendNum',
|
|
|
- key: 'recommendNum',
|
|
|
- width: 100,
|
|
|
- align: "center",
|
|
|
- isDefaultClose: true
|
|
|
- },
|
|
|
- {title: '操作', key: 'operation', fixed: 'right', width: 240, align: "center", isDisabled: true},
|
|
|
+ {title: '联系人', dataIndex: 'contactName', key: 'contactName', width: 150, align: "center", isDefaultClose: true},
|
|
|
+ {title: '联系电话', dataIndex: 'contactMobile', key: 'contactMobile', width: 200, align: "center", isDefaultClose: true},
|
|
|
+ {title: '推荐数量', dataIndex: 'recommendNum', key: 'recommendNum', width: 100, align: "center", isDefaultClose: true},
|
|
|
+ {title: '操作', key: 'operation', fixed: 'right', width: 290, align: "center", isDisabled: true},
|
|
|
];
|
|
|
// 响应式表格定义
|
|
|
const columns = ref<Array<any>>(originalColumns.filter(item => !item.isDefaultClose));
|
|
@@ -331,6 +296,11 @@ export default defineComponent({
|
|
|
recommendRef.value.show(item.professionID,item.parentProfessionID,item.professionName,item.postID,item.companyName,0,'推荐求职人员');
|
|
|
}
|
|
|
|
|
|
+ const onChangeStatus = (curPostID: any,statusValue:any) => {
|
|
|
+ updatePostStatus({ postID: curPostID,status:statusValue });
|
|
|
+ loadData();
|
|
|
+ };
|
|
|
+
|
|
|
const onRecommendInfo = (item) =>{
|
|
|
recommendRef.value.show('','',item.professionName,item.postID,item.companyName,1,'求职人员信息');
|
|
|
}
|
|
@@ -427,6 +397,7 @@ export default defineComponent({
|
|
|
onAdd,
|
|
|
onEdit,
|
|
|
onRecommendJob,
|
|
|
+ onChangeStatus,
|
|
|
onRecommendInfo,
|
|
|
expand,
|
|
|
postStatusList,
|