From c440d16b624b7effa7953ce19816fc9ea6cccf42 Mon Sep 17 00:00:00 2001 From: whycq <913841844@qq.com> Date: 星期三, 05 三月 2025 10:05:16 +0800 Subject: [PATCH] # --- rsf-admin/src/page/dictType/DictTypeList.jsx | 19 ++++++++++++------- 1 files changed, 12 insertions(+), 7 deletions(-) diff --git a/rsf-admin/src/page/dictType/DictTypeList.jsx b/rsf-admin/src/page/dictType/DictTypeList.jsx index d668008..dc30eae 100644 --- a/rsf-admin/src/page/dictType/DictTypeList.jsx +++ b/rsf-admin/src/page/dictType/DictTypeList.jsx @@ -63,7 +63,7 @@ <DateInput label='common.time.after' source="timeStart" alwaysOn />, <DateInput label='common.time.before' source="timeEnd" alwaysOn />, - <TextInput source="uuid" label="table.field.dictType.uuid" />, + <TextInput source="code" label="table.field.dictType.code" />, <TextInput source="name" label="table.field.dictType.name" />, <TextInput source="description" label="table.field.dictType.description" />, @@ -84,6 +84,11 @@ const [createDialog, setCreateDialog] = useState(false); const [drawerVal, setDrawerVal] = useState(false); + + const navigate = useNavigate(); + const assign = (record) => { + navigate(`/dictData?dictTypeId=${record.id}`); + } return ( <Box display="flex"> @@ -119,6 +124,12 @@ omit={['id', 'createTime', 'createBy', 'memo']} > <NumberField source="id" /> + <MyField source="code" label="table.field.dictType.code" + onClick={(event, record, val) => { + event.stopPropagation(); + assign(record); + }} + /> <TextField source="name" label="table.field.dictType.name" /> <TextField source="description" label="table.field.dictType.description" /> @@ -142,12 +153,6 @@ open={createDialog} setOpen={setCreateDialog} /> - <PageDrawer - title='DictType Detail' - drawerVal={drawerVal} - setDrawerVal={setDrawerVal} - > - </PageDrawer> </Box> ) } -- Gitblit v1.9.1