完善评查详情
This commit is contained in:
@@ -443,7 +443,7 @@ export default function RuleGroupsIndex() {
|
||||
{
|
||||
title: "分组名称",
|
||||
key: "name",
|
||||
width: "400px",
|
||||
width: "35%",
|
||||
render: (_: unknown, record: RuleGroup & { isParent?: boolean, parentId?: string }) => (
|
||||
<div className={`flex items-center ${!record.isParent ? 'ml-8' : ''}`}>
|
||||
{record.isParent && (
|
||||
@@ -467,7 +467,7 @@ export default function RuleGroupsIndex() {
|
||||
</span>
|
||||
)}
|
||||
<Link
|
||||
to={`/rule-groups/${record.id}/rules`}
|
||||
to={`/rule-groups/new?id=${record.id}`}
|
||||
className="group-name-link flex items-center ml-1 text-green-800"
|
||||
>
|
||||
<i className={`${record.isParent ? 'ri-folder-line' : 'ri-file-list-line'} mr-1 text-green-800`}></i> {record.name}
|
||||
@@ -488,10 +488,11 @@ export default function RuleGroupsIndex() {
|
||||
{
|
||||
title: "评查点数量",
|
||||
key: "ruleCount",
|
||||
width: "12%",
|
||||
render: (_: unknown, record: RuleGroup & { isParent?: boolean, parentId?: string }) => (
|
||||
<Link to={`/rule-groups/${record.id}/rules`} className="badge bg-primary text-white">
|
||||
{calculateTotalRuleCount(record)}
|
||||
</Link>
|
||||
<button onClick={() => navigate(`/rules?${!record.isParent ? `ruleType=${record.parentId}&groupId=${record.id}` : `ruleType=${record.id}`}`)} className="badge bg-primary text-white">
|
||||
<span className="text-xs hover:underline">{calculateTotalRuleCount(record)}</span>
|
||||
</button>
|
||||
)
|
||||
},
|
||||
{
|
||||
@@ -508,6 +509,7 @@ export default function RuleGroupsIndex() {
|
||||
{
|
||||
title: "创建时间",
|
||||
key: "createdAt",
|
||||
width: "15%",
|
||||
render: (_: unknown, record: RuleGroup) => (
|
||||
<span>{record.createdAt || '-'}</span>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user