feat: 同步知识库与工作台相关改动
This commit is contained in:
@@ -53,11 +53,27 @@ function fmtTime(t) {
|
||||
}
|
||||
|
||||
function typeLabel(t) {
|
||||
return { exam_publish: '考试发布', exam_pass: '考试通过', position_set: '岗位设置' }[t] || '通知'
|
||||
return {
|
||||
exam_publish: '考试发布',
|
||||
exam_pass: '考试通过',
|
||||
position_set: '岗位设置',
|
||||
worker_task_assign: '事项指派',
|
||||
worker_artifact_review: '交付待确认',
|
||||
worker_artifact_approved: '交付已确认',
|
||||
worker_artifact_published: '交付已发布',
|
||||
}[t] || '通知'
|
||||
}
|
||||
|
||||
function typeTag(t) {
|
||||
return { exam_publish: 'warning', exam_pass: 'success', position_set: 'primary' }[t] || 'info'
|
||||
return {
|
||||
exam_publish: 'warning',
|
||||
exam_pass: 'success',
|
||||
position_set: 'primary',
|
||||
worker_task_assign: 'primary',
|
||||
worker_artifact_review: 'warning',
|
||||
worker_artifact_approved: 'success',
|
||||
worker_artifact_published: 'success',
|
||||
}[t] || 'info'
|
||||
}
|
||||
|
||||
function openNotice(n) {
|
||||
|
||||
Reference in New Issue
Block a user