fix: 1. 继续对齐交叉评查的接口,完善创建交叉评查的逻辑 和 相关组件的渲染布局。

2. 文档的基本信息修改改用接口。      3. 重新完善角色权限管理的页面逻辑。     4.将评查点列表中的返回逻辑改用浏览器的记忆返回。
This commit is contained in:
2025-12-12 12:00:36 +08:00
parent a5c49a5c95
commit d4000cd292
25 changed files with 4750 additions and 28293 deletions
+21 -4
View File
@@ -1,17 +1,34 @@
interface PageHeaderProps {
title: string;
onSave?: () => void;
onBack?: () => void;
showSaveButton?: boolean;
showBackButton?: boolean;
}
export function PageHeader({ title, onSave, showSaveButton = true }: PageHeaderProps) {
export function PageHeader({
title,
onSave,
onBack,
showSaveButton = true,
showBackButton = 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>
<div className="flex items-center gap-2">
{showBackButton && (
<button
type="button"
className="ant-btn ant-btn-default"
onClick={onBack}
>
<i className="ri-arrow-left-line mr-1"></i>
</button>
)}
{showSaveButton && (
<button
type="button"
<button
type="button"
className="ant-btn ant-btn-primary"
onClick={onSave}
>