ux: 全部页面添加操作说明 PageGuide
为以下17个缺少操作说明的页面添加 PageGuide 组件: - OrgChart: 组织架构管理 - SupportDashboard: 客服工作台 - Money: 薪酬管理 - AIAssistant: AI 智能助手 - Settings: 系统设置 - Calendar: 人事日历 - Templates: 模板管理 - AuditLog: 审计日志 - Notifications: 通知中心 - MedicalPeriodCalculator: 医疗期计算器 - HealthCheck: 用工健康检查 - AnnualValueReport: 年度价值报表 - CompanyFiles: 公司文件管理 - LeaveApproval: 请假审批 - TrainingRecords: 培训记录 - PerformanceRecords: 绩效记录 - DisciplinaryRecords: 违纪记录 Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
@@ -8,6 +8,7 @@ import api from '../../lib/api'
|
||||
import { usePageSize } from '../../hooks/usePageSize'
|
||||
import { Input, Label, Select } from '../../components/ui/Input'
|
||||
import Button from '../../components/ui/Button'
|
||||
import PageGuide from '../../components/ui/PageGuide'
|
||||
|
||||
const TYPE_LABELS: Record<string, string> = { LATE: '迟到', ABSENT: '旷工', INSUBORDINATION: '不服从管理', MISCONDUCT: '违纪', VIOLATE_POLICY: '违反规章制度', OTHER: '其他' }
|
||||
const SEVERITY_LABELS: Record<string, string> = { WARNING: '警告', SERIOUS: '严重', SEVERE: '极其严重' }
|
||||
@@ -73,6 +74,7 @@ export default function DisciplinaryRecords() {
|
||||
|
||||
return (
|
||||
<div className="space-y-4">
|
||||
<PageGuide>违纪记录管理,记录员工违纪行为和处理结果,包括警告、记过、解除等。支持新增记录、上传证据材料、查询历史。关联:违纪记录关联员工档案,严重违纪可触发解聘流程。</PageGuide>
|
||||
<div className="flex items-center justify-between">
|
||||
<div>
|
||||
<h1 className="text-base font-semibold">违纪记录</h1>
|
||||
|
||||
@@ -8,6 +8,7 @@ import api from '../../lib/api'
|
||||
import { usePageSize } from '../../hooks/usePageSize'
|
||||
import { Input, Label, Select } from '../../components/ui/Input'
|
||||
import Button from '../../components/ui/Button'
|
||||
import PageGuide from '../../components/ui/PageGuide'
|
||||
|
||||
const RESULT_LABELS: Record<string, string> = { EXCELLENT: '优秀', QUALIFIED: '合格', NEED_IMPROVE: '需改进', UNQUALIFIED: '不胜任' }
|
||||
const RESULT_COLORS: Record<string, string> = { EXCELLENT: 'bg-green-50 text-green-700', QUALIFIED: 'bg-blue-50 text-blue-700', NEED_IMPROVE: 'bg-amber-50 text-amber-700', UNQUALIFIED: 'bg-red-50 text-red-700' }
|
||||
@@ -72,6 +73,7 @@ export default function PerformanceRecords() {
|
||||
|
||||
return (
|
||||
<div className="space-y-4">
|
||||
<PageGuide>绩效记录管理,记录员工绩效考核结果,支持季度、年度考核。流程:设定目标 → 周期评估 → 结果归档。关联:绩效数据关联员工档案,影响薪酬调整和晋升。</PageGuide>
|
||||
<div className="flex items-center justify-between">
|
||||
<div>
|
||||
<h1 className="text-base font-semibold">绩效考核</h1>
|
||||
|
||||
@@ -9,6 +9,7 @@ import { usePageSize } from '../../hooks/usePageSize'
|
||||
import { Input, Label, Select } from '../../components/ui/Input'
|
||||
import Button from '../../components/ui/Button'
|
||||
import Modal from '../../components/ui/Modal'
|
||||
import PageGuide from '../../components/ui/PageGuide'
|
||||
|
||||
const ACK_LABELS: Record<string, string> = { PENDING: '待签收', SIGNED: '已签收', REFUSED: '拒绝签收' }
|
||||
const ACK_COLORS: Record<string, string> = { PENDING: 'bg-amber-50 text-amber-700', SIGNED: 'bg-green-50 text-green-700', REFUSED: 'bg-red-50 text-red-700' }
|
||||
@@ -100,6 +101,7 @@ export default function TrainingRecords() {
|
||||
|
||||
return (
|
||||
<div className="space-y-4">
|
||||
<PageGuide>培训记录管理,记录员工参加的各类培训,包括入职培训、岗位培训、安全培训等。支持新增记录、上传证书、查询历史。关联:培训数据关联员工档案,可在花名册查看。</PageGuide>
|
||||
<div className="flex items-center justify-between">
|
||||
<div>
|
||||
<h1 className="text-base font-semibold">培训记录</h1>
|
||||
|
||||
Reference in New Issue
Block a user