删除所有console.log输出,优化评查结果的表格的显示,添加新的页码获取逻辑

This commit is contained in:
2025-06-02 18:55:00 +08:00
parent 820baa5b22
commit b02978508d
71 changed files with 862 additions and 572 deletions
+11 -8
View File
@@ -1,20 +1,23 @@
interface PageHeaderProps {
title: string;
onSave?: () => void;
showSaveButton?: boolean;
}
export function PageHeader({ title, onSave }: PageHeaderProps) {
export function PageHeader({ title, onSave, showSaveButton = true }: PageHeaderProps) {
return (
<div className="flex justify-between items-center pb-2 mb-4 border-b border-gray-200">
<h1 className="text-xl font-medium text-gray-800">{title}</h1>
<div>
<button
type="button"
className="ant-btn ant-btn-primary"
onClick={onSave}
>
<i className="ri-save-line mr-1"></i>
</button>
{showSaveButton && (
<button
type="button"
className="ant-btn ant-btn-primary"
onClick={onSave}
>
<i className="ri-save-line mr-1"></i>
</button>
)}
</div>
</div>
);