|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | const filters = [ | 
|---|
|  |  |  | <SearchInput source="condition" alwaysOn />, | 
|---|
|  |  |  | <DateInput label='common.time.after' source="timeStart" alwaysOn />, | 
|---|
|  |  |  | <DateInput label='common.time.before' source="timeEnd" alwaysOn />, | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <TextInput source="dictTypeId" label="table.field.dictData.dictTypeId" />, | 
|---|
|  |  |  | <TextInput source="dictTypeCode" label="table.field.dictData.dictTypeCode" />, | 
|---|
|  |  |  | <TextInput source="value" label="table.field.dictData.value" />, | 
|---|
|  |  |  | <TextInput source="label" label="table.field.dictData.label" />, | 
|---|
|  |  |  | <NumberInput source="sort" label="table.field.dictData.sort" />, | 
|---|
|  |  |  | <TextInput source="color" label="table.field.dictData.color" />, | 
|---|
|  |  |  | // <TextInput source="color" label="table.field.dictData.color" />, | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <TextInput label="common.field.memo" source="memo" />, | 
|---|
|  |  |  | <SelectInput | 
|---|
|  |  |  | 
|---|
|  |  |  | const location = useLocation(); | 
|---|
|  |  |  | const queryParams = new URLSearchParams(location.search); | 
|---|
|  |  |  | const dictTypeId = queryParams.get('dictTypeId'); | 
|---|
|  |  |  | console.log(dictTypeId); | 
|---|
|  |  |  | if (dictTypeId != null && dictTypeId != undefined) { | 
|---|
|  |  |  | console.log(dictTypeId); | 
|---|
|  |  |  | console.log(fit); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | const dictTypeCode = queryParams.get('code'); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | return ( | 
|---|
|  |  |  | <> | 
|---|
|  |  |  | 
|---|
|  |  |  | theme.transitions.create(['all'], { | 
|---|
|  |  |  | duration: theme.transitions.duration.enteringScreen, | 
|---|
|  |  |  | }), | 
|---|
|  |  |  | marginRight: !!drawerVal ? `${PAGE_DRAWER_WIDTH}px` : 0, | 
|---|
|  |  |  | marginRight: drawerVal ? `${PAGE_DRAWER_WIDTH}px` : 0, | 
|---|
|  |  |  | }} | 
|---|
|  |  |  | title={"menu.dictData"} | 
|---|
|  |  |  | empty={<EmptyData onClick={() => { setCreateDialog(true) }} />} | 
|---|
|  |  |  | 
|---|
|  |  |  | preferenceKey='dictData' | 
|---|
|  |  |  | bulkActionButtons={() => <BulkDeleteButton mutationMode={OPERATE_MODE} />} | 
|---|
|  |  |  | rowClick={(id, resource, record) => false} | 
|---|
|  |  |  | expand={() => <DictDataPanel />} | 
|---|
|  |  |  | expandSingle={true} | 
|---|
|  |  |  | omit={['id', 'createTime', 'createBy', 'memo']} | 
|---|
|  |  |  | > | 
|---|
|  |  |  | <NumberField source="id" /> | 
|---|
|  |  |  | 
|---|
|  |  |  | <TextField source="value" label="table.field.dictData.value" /> | 
|---|
|  |  |  | <TextField source="label" label="table.field.dictData.label" /> | 
|---|
|  |  |  | <NumberField source="sort" label="table.field.dictData.sort" /> | 
|---|
|  |  |  | <TextField source="color" label="table.field.dictData.color" /> | 
|---|
|  |  |  | {/* <TextField source="color" label="table.field.dictData.color" /> */} | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <ReferenceField source="updateBy" label="common.field.updateBy" reference="user" link={false} sortable={false}> | 
|---|
|  |  |  | <TextField source="nickname" /> | 
|---|
|  |  |  | 
|---|
|  |  |  | <DictDataCreate | 
|---|
|  |  |  | open={createDialog} | 
|---|
|  |  |  | setOpen={setCreateDialog} | 
|---|
|  |  |  | row={{ dictTypeId, dictTypeCode }} | 
|---|
|  |  |  | /> | 
|---|
|  |  |  | <PageDrawer | 
|---|
|  |  |  | title='DictData Detail' | 
|---|