fix: 修复当天入职员工被误判为预入职的时区问题;数据导出独立为设置Tab

This commit is contained in:
freedakgmail
2026-07-24 23:37:11 +08:00
parent 5c12f28ac7
commit bb25e1731c
3 changed files with 997 additions and 8 deletions
+8 -5
View File
@@ -11,7 +11,7 @@ import Modal from '../components/ui/Modal'
export default function Settings() {
const queryClient = useQueryClient()
const [activeSection, setActiveSection] = useState<'org' | 'users' | 'plan' | 'notifications' | 'import'>('org')
const [activeSection, setActiveSection] = useState<'org' | 'users' | 'plan' | 'notifications' | 'import' | 'export'>('org')
const { data: orgData } = useQuery<any>({
queryKey: ['org-settings'],
@@ -40,6 +40,7 @@ export default function Settings() {
{ key: 'plan' as const, label: '套餐', icon: CreditCard },
{ key: 'notifications' as const, label: '通知设置', icon: Bell },
{ key: 'import' as const, label: '数据导入', icon: FileSpreadsheet },
{ key: 'export' as const, label: '数据导出', icon: Download },
]
return (
@@ -77,6 +78,12 @@ export default function Settings() {
{activeSection === 'plan' && <PlanSettings orgData={orgData} />}
{activeSection === 'notifications' && <NotificationSettings />}
{activeSection === 'import' && <ImportSettings />}
{activeSection === 'export' && (
<Card>
<h2 className="font-medium mb-4"></h2>
<ExportSettings />
</Card>
)}
</div>
)
}
@@ -131,10 +138,6 @@ function OrgSettings({ orgData, onSave, saving }: { orgData: any; onSave: (data:
</Button>
</div>
<div className="mt-6 pt-4 border-t">
<h3 className="text-xs font-medium text-gray-600 mb-3"></h3>
<ExportSettings />
</div>
</Card>
)
}