Merge branch 'devlop' of http://47.97.1.152:5880/r/wms-master into devlop
| | |
| | | import * as React from 'react'; |
| | | import { useState, useRef, useEffect, useMemo, useCallback } from 'react'; |
| | | import { Stack, Chip, Dialog, DialogTitle, DialogContent, IconButton, CircularProgress } from '@mui/material'; |
| | | import { useTranslate, useRecordContext } from 'react-admin'; |
| | | import CloseIcon from '@mui/icons-material/Close'; |
| | |
| | | const CrossZoneAreaField = () => { |
| | | const translate = useTranslate(); |
| | | const record = useRecordContext(); |
| | | const [open, setOpen] = React.useState(false); |
| | | const [areaNames, setAreaNames] = React.useState([]); |
| | | const [loading, setLoading] = React.useState(false); |
| | | const [open, setOpen] = useState(false); |
| | | const [areaNames, setAreaNames] = useState([]); |
| | | const [loading, setLoading] = useState(false); |
| | | |
| | | const handleOpen = () => { |
| | | setOpen(true); |
| | |
| | | } |
| | | }; |
| | | |
| | | React.useEffect(() => { |
| | | useEffect(() => { |
| | | if (record?.areaIds && record.areaIds.length !== 0 && record.areaIds.length > 0) { |
| | | fetchAreaNames(); |
| | | } |
| | |
| | | </Stack> |
| | | |
| | | </Grid> |
| | | <Grid item xs={12} md={4}> |
| | | {/* <Grid item xs={12} md={4}> |
| | | <Typography variant="h6" gutterBottom> |
| | | {translate('common.edit.title.common')} |
| | | </Typography> |
| | | <StatusSelectInput /> |
| | | <Box mt="2em" /> |
| | | <MemoInput /> |
| | | </Grid> |
| | | </Grid> */} |
| | | </Grid> |
| | | </SimpleForm> |
| | | </Edit > |
| | |
| | | preferenceKey='fields' |
| | | bulkActionButtons={() => <BulkDeleteButton mutationMode={OPERATE_MODE} />} |
| | | rowClick={(id, resource, record) => false} |
| | | omit={['id', 'createTime', 'createBy', 'memo']} |
| | | omit={['id', 'createTime', 'createBy', 'memo','statusBool']} |
| | | > |
| | | <NumberField source="id" /> |
| | | <TextField source="fields" label="table.field.fields.fields" /> |
| | |
| | | </Stack> |
| | | |
| | | </Grid> |
| | | <Grid item xs={12} md={4}> |
| | | {/* <Grid item xs={12} md={4}> |
| | | <Typography variant="h6" gutterBottom> |
| | | {translate('common.edit.title.common')} |
| | | </Typography> |
| | | <StatusSelectInput /> |
| | | <Box mt="2em" /> |
| | | <MemoInput /> |
| | | </Grid> |
| | | </Grid> */} |
| | | </Grid> |
| | | </SimpleForm> |
| | | </Edit > |
| | |
| | | preferenceKey='fieldsItem' |
| | | bulkActionButtons={() => <BulkDeleteButton mutationMode={OPERATE_MODE} />} |
| | | rowClick={(id, resource, record) => false} |
| | | omit={['id', 'createTime', 'createBy', 'memo']} |
| | | omit={['id', 'createTime', 'createBy', 'memo','statusBool']} |
| | | > |
| | | <NumberField source="id" /> |
| | | <TextField source="uuid" label="table.field.fieldsItem.uuid" /> |
| | |
| | | /> |
| | | </Stack> |
| | | </Grid> |
| | | <Grid item xs={12} md={4}> |
| | | {/* <Grid item xs={12} md={4}> |
| | | <Typography variant="h6" gutterBottom> |
| | | {translate('common.edit.title.common')} |
| | | </Typography> |
| | | <StatusSelectInput /> |
| | | <Box mt="2em" /> |
| | | <MemoInput /> |
| | | </Grid> |
| | | </Grid> */} |
| | | </Grid> |
| | | </SimpleForm> |
| | | </Edit > |
| | |
| | | preferenceKey='host' |
| | | bulkActionButtons={() => <BulkDeleteButton mutationMode={OPERATE_MODE} />} |
| | | rowClick={(id, resource, record) => false} |
| | | omit={['id', 'createTime', 'memo']} |
| | | omit={['id', 'createTime', 'memo','statusBool']} |
| | | > |
| | | <NumberField source="id" /> |
| | | <MyField source="name" label="common.field.name" |
| | |
| | | preferenceKey='role' |
| | | bulkActionButtons={() => <BulkDeleteButton mutationMode={OPERATE_MODE} />} |
| | | rowClick={(id, resource, record) => false} |
| | | omit={['id', 'createTime', 'memo']} |
| | | omit={['id', 'createTime', 'memo','statusBool']} |
| | | > |
| | | <NumberField source="id" /> |
| | | <MyField source="name" label="table.field.role.name" |
| | |
| | | /> |
| | | </Stack> |
| | | </Grid> |
| | | <Grid item xs={12} md={4}> |
| | | {/* <Grid item xs={12} md={4}> |
| | | <Typography variant="h6" gutterBottom> |
| | | {translate('common.edit.title.common')} |
| | | </Typography> |
| | | <StatusSelectInput /> |
| | | <Box mt="2em" /> |
| | | <MemoInput /> |
| | | </Grid> |
| | | </Grid> */} |
| | | </Grid> |
| | | </SimpleForm> |
| | | </Edit > |
| | |
| | | preferenceKey='tenant' |
| | | bulkActionButtons={() => <BulkDeleteButton mutationMode={OPERATE_MODE} />} |
| | | rowClick={(id, resource, record) => false} |
| | | omit={['id', 'createTime', 'memo']} |
| | | omit={['id', 'createTime', 'memo','statusBool']} |
| | | > |
| | | <NumberField source="id" /> |
| | | <TextField source="name" label="table.field.tenant.name" /> |
| | |
| | | "realName", |
| | | "updateTime", |
| | | "createTime", |
| | | "memo", |
| | | "memo","statusBool" |
| | | ]} |
| | | > |
| | | <NumberField source="id" /> |