“人事管理更新0823”
This commit is contained in:
1 parent
c164d1feb4
commit
9946b329fa
14 files changed
+1922
-285
No files matched your search
@@ -126,6 +126,7 @@ export interface RecordVO {
|
||||
completionTime?: string;
|
||||
certificatePath?: string;
|
||||
certificateNumber?: string;
|
||||
certificateFileName?: string;
|
||||
feedback?: string;
|
||||
createTime: string;
|
||||
updateTime: string;
|
||||
@@ -148,6 +149,8 @@ export interface RecordForm {
|
||||
completionTime?: string;
|
||||
certificatePath?: string;
|
||||
certificateNumber?: string;
|
||||
certificateFileName?: string;
|
||||
attachmentIds?: string;
|
||||
feedback?: string;
|
||||
remark?: string;
|
||||
}
|
||||
@@ -424,3 +427,12 @@ export function resubmitTrainingApplication(applicationId: string | number, data
|
||||
data: data
|
||||
});
|
||||
}
|
||||
|
||||
// 更新培训记录的证书附件ID
|
||||
export function updateRecordAttachments(recordId: string | number, data: { attachmentIds: string }) {
|
||||
return request({
|
||||
url: `/rs/training/record/attachments/${recordId}`,
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
}
|
||||
@@ -372,7 +372,9 @@
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="申请人数">{{ viewForm.applicantCount }}</el-descriptions-item>
|
||||
<el-descriptions-item label="浏览次数">{{ viewForm.viewCount }}</el-descriptions-item>
|
||||
<el-descriptions-item label="发布时间">{{ parseTime(viewForm.publishTime) || '未发布' }}</el-descriptions-item>
|
||||
<el-descriptions-item label="发布时间">
|
||||
{{ parseTime(viewForm.publishTime) || (viewForm.isActive === '0' ? parseTime(viewForm.createTime) || '长期有效' : '未发布') }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="创建时间">{{ parseTime(viewForm.createTime) }}</el-descriptions-item>
|
||||
<el-descriptions-item label="职位描述" :span="2">
|
||||
<div class="view-description">{{ viewForm.description || '暂无描述' }}</div>
|
||||
|
||||
@@ -82,12 +82,7 @@
|
||||
<el-table-column prop="location" label="工作地点" width="120" />
|
||||
<el-table-column prop="publishTime" label="发布时间" width="120">
|
||||
<template #default="scope">
|
||||
{{ formatDate(scope.row.publishTime) }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="publishTime" label="发布时间" width="120">
|
||||
<template #default="scope">
|
||||
<span>{{ formatDate(scope.row.publishTime) }}</span>
|
||||
{{ formatDate(scope.row.publishTime) || formatDate(scope.row.createTime) || '长期有效' }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" width="160" fixed="right">
|
||||
@@ -181,10 +176,10 @@
|
||||
<h4>招聘信息</h4>
|
||||
<el-descriptions :column="2" border>
|
||||
<el-descriptions-item label="发布时间">
|
||||
{{ formatDate(currentJob.publishTime) }}
|
||||
{{ formatDate(currentJob.publishTime) || formatDate(currentJob.createTime) || '长期有效' }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="截止时间">
|
||||
<span>{{ formatDate(currentJob.publishTime) }}</span>
|
||||
<span>{{ getDeadlineDate(currentJob.publishTime) }}</span>
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="浏览次数"> {{ currentJob.viewCount || 0 }} 次 </el-descriptions-item>
|
||||
<el-descriptions-item label="应聘人数"> {{ currentJob.applicantCount || 0 }} 人 </el-descriptions-item>
|
||||
@@ -257,6 +252,14 @@ const formatDate = (dateStr: string) => {
|
||||
return parseTime(dateStr, '{y}-{m}-{d}');
|
||||
};
|
||||
|
||||
// 计算截止日期(发布日期+30天)
|
||||
const getDeadlineDate = (publishTime: string) => {
|
||||
if (!publishTime) return '长期有效';
|
||||
const publishDate = new Date(publishTime);
|
||||
const deadlineDate = new Date(publishDate.getTime() + 30 * 24 * 60 * 60 * 1000); // 30天后
|
||||
return parseTime(deadlineDate.toString(), '{y}-{m}-{d}');
|
||||
};
|
||||
|
||||
// 检查是否过期(使用publishTime判断,假设30天有效期)
|
||||
const isJobExpired = (publishTime: string) => {
|
||||
if (!publishTime) return false;
|
||||
|
||||
+1382
-192
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user