| | |
| | | // @ts-ignore |
| | | import { request } from '@/utils/request'; |
| | | |
| | | /** 按日期修订任务状态 POST /api/flexjob/task/autoTaskStatusByDate */ |
| | | export async function autoTaskStatusByDate( |
| | | body: API.AutoTaskStatusByDateCommand, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<number>('/api/flexjob/task/autoTaskStatusByDate', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 删除任务 DELETE /api/flexjob/task/deleteTaskInfo */ |
| | | export async function deleteTaskInfo(body: API.DeleteTaskInfoCommand, options?: API.RequestConfig) { |
| | | return request<number>('/api/flexjob/task/deleteTaskInfo', { |
| | |
| | | }); |
| | | } |
| | | |
| | | /** 清空已停止的任务收藏 DELETE /api/flexjob/taskUser/clearTaskCollect */ |
| | | export async function clearTaskCollect( |
| | | body: API.ClearTaskCollectCommand, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<number>('/api/flexjob/taskUser/clearTaskCollect', { |
| | | method: 'DELETE', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 收藏任务 POST /api/flexjob/taskUser/collectTask */ |
| | | export async function collectTask(body: API.CollectTaskCommand, options?: API.RequestConfig) { |
| | | return request<number>('/api/flexjob/taskUser/collectTask', { |
| | |
| | | ids?: string[]; |
| | | } |
| | | |
| | | type AutoTaskStatusByDateCommand = Record<string, any>; |
| | | |
| | | interface BindWxmpUserInfoCommand { |
| | | /** 访问令牌 */ |
| | | accessToken: string; |
| | |
| | | id?: string; |
| | | checkReceiveStatus?: EnumTaskUserSubmitCheckReceiveStatus; |
| | | } |
| | | |
| | | type ClearTaskCollectCommand = Record<string, any>; |
| | | |
| | | interface CollectTaskCommand { |
| | | /** 任务Id */ |
| | |
| | | avatar?: string; |
| | | /** 姓名 */ |
| | | name?: string; |
| | | gender?: EnumUserGender; |
| | | /** 企业全称 */ |
| | | enterpriseName?: string; |
| | | /** 角色 */ |
| | |
| | | pageModel?: PagedListQueryPageModel; |
| | | } |
| | | |
| | | interface GetOpenUserResumesQuery { |
| | | /** 任务Id */ |
| | | taskInfoId?: string; |
| | | /** 期望岗位编号 */ |
| | | userExpectJobs?: string[]; |
| | | gender?: EnumUserGender; |
| | | /** 身份编号 */ |
| | | personalIdentityCode?: string; |
| | | /** 年龄范围最小 */ |
| | | ageMin?: number; |
| | | /** 年龄范围大 */ |
| | | ageMax?: number; |
| | | /** 资格证书编号 */ |
| | | userCredentials?: string[]; |
| | | /** 是否已收藏 */ |
| | | isCollected?: boolean; |
| | | /** 是否已联系 */ |
| | | isContacted?: boolean; |
| | | pageModel?: PagedListQueryPageModel; |
| | | } |
| | | |
| | | interface GetOperationUserInfosQuery { |
| | | /** 关键字 */ |
| | | keywords?: string; |
| | |
| | | interface GetPersonalLoginInfoQueryResult { |
| | | /** Id */ |
| | | id?: string; |
| | | /** 头像 */ |
| | | avatar?: string; |
| | | /** 姓名 */ |
| | | name?: string; |
| | | /** 是否实名 */ |
| | |
| | | workExperience?: string; |
| | | /** 创建时间 */ |
| | | createdTime?: string; |
| | | hireStatus?: EnumTaskUserHireStatus; |
| | | } |
| | | |
| | | type GetUserResumeWorkExperienceQuery = Record<string, any>; |
| | |
| | | interface SubmitCheckReceiveTaskCommand { |
| | | /** 任务Id */ |
| | | taskInfoId?: string; |
| | | /** 日期 */ |
| | | date?: string; |
| | | /** 附件 */ |
| | | files?: string[]; |
| | | } |
| | |
| | | }); |
| | | } |
| | | |
| | | /** 查询开放简历分页列表数据 POST /api/user/userResume/getOpenUserResumes */ |
| | | export async function getOpenUserResumes( |
| | | body: API.GetOpenUserResumesQuery, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<API.GetUserResumesQueryResult>('/api/user/userResume/getOpenUserResumes', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 查询用户简历 GET /api/user/userResume/getUserResume */ |
| | | export async function getUserResume( |
| | | // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) |
| | |
| | | <template> |
| | | <LoadingLayout :loading="state.loading"> |
| | | <AppContainer> |
| | | <ProTableV2 v-bind="proTableProps" :columns="signColumns" :operationBtns="signOperationBtns"> |
| | | <ProTableV2 v-bind="proTableProps" :columns="signColumns" :showOperationColumn="false"> |
| | | </ProTableV2> |
| | | </AppContainer> |
| | | </LoadingLayout> |
| | |
| | | |
| | | <script setup lang="ts"> |
| | | import { ProTableV2, LoadingLayout, AppContainer, useTable } from '@bole-core/components'; |
| | | import * as taskServices from '@/services/api/task'; |
| | | import * as userResumeServices from '@/services/api/userResume'; |
| | | |
| | | defineOptions({ |
| | | name: 'SignDetailView', |
| | |
| | | } = useTable( |
| | | async ({ pageIndex, pageSize }, extraParamState) => { |
| | | try { |
| | | let params: API.GetTaskInfosQuery = { |
| | | let params: API.GetUserResumesQuery = { |
| | | pageModel: { |
| | | rows: pageSize, |
| | | page: pageIndex, |
| | | orderInput: extraParamState.orderInput, |
| | | }, |
| | | enterpriseId: id, |
| | | taskInfoId: id, |
| | | }; |
| | | let res = await taskServices.getTaskInfos(params, { |
| | | let res = await userResumeServices.getUserResumes(params, { |
| | | showLoading: !state.loading, |
| | | }); |
| | | return res; |
| | |
| | | defaultExtraParams: { |
| | | orderInput: [{ property: 'id', order: EnumPagedListOrder.Asc }], |
| | | }, |
| | | columnsRenderProps: {}, |
| | | columnsRenderProps: { |
| | | hireStatus: { type: 'enum', valueEnum: EnumTaskUserHireStatusText }, |
| | | gender: { type: 'enum', valueEnum: EnumUserGenderText }, |
| | | }, |
| | | } |
| | | ); |
| | | </script> |