| File was renamed from rsf-admin/src/page/customer/CustomerPanel.jsx |
| | |
| | | import PanelTypography from "../components/PanelTypography"; |
| | | import * as Common from '@/utils/common' |
| | | |
| | | const CustomerPanel = () => { |
| | | const DictTypePanel = () => { |
| | | const record = useRecordContext(); |
| | | if (!record) return null; |
| | | const translate = useTranslate(); |
| | |
| | | overflow: 'hidden', |
| | | textOverflow: 'ellipsis', |
| | | }}> |
| | | {Common.camelToPascalWithSpaces(translate('table.field.customer.name'))}: {record.name} |
| | | {Common.camelToPascalWithSpaces(translate('table.field.dictType.name'))}: {record.name} |
| | | </Typography> |
| | | {/* inherit, primary, secondary, textPrimary, textSecondary, error */} |
| | | <Typography variant="h6" gutterBottom align="right" > |
| | |
| | | <Grid container spacing={2}> |
| | | <Grid item xs={6}> |
| | | <PanelTypography |
| | | title="table.field.customer.uuid" |
| | | property={record.uuid} |
| | | title="table.field.dictType.name" |
| | | property={record.name} |
| | | /> |
| | | </Grid> |
| | | <Grid item xs={6}> |
| | | <PanelTypography |
| | | title="table.field.customer.name" |
| | | property={record.name} |
| | | title="table.field.dictType.description" |
| | | property={record.description} |
| | | /> |
| | | </Grid> |
| | | |
| | |
| | | ); |
| | | }; |
| | | |
| | | export default CustomerPanel; |
| | | export default DictTypePanel; |