| | |
| | | import MyExportButton from '../components/MyExportButton'; |
| | | import PageDrawer from "../components/PageDrawer"; |
| | | import MyField from "../components/MyField"; |
| | | import { PAGE_DRAWER_WIDTH, OPERATE_MODE } from '@/config/setting'; |
| | | import { PAGE_DRAWER_WIDTH, OPERATE_MODE, DEFAULT_PAGE_SIZE } from '@/config/setting'; |
| | | import * as Common from '@/utils/common'; |
| | | |
| | | const StyledDatagrid = styled(DatagridConfigurable)(({ theme }) => ({ |
| | |
| | | title={"menu.agvModel"} |
| | | empty={<EmptyData onClick={() => { setCreateDialog(true) }} />} |
| | | filters={filters} |
| | | sort={{ field: "create_time", order: "desc" }} |
| | | sort={{ field: "create_time", order: "asc" }} |
| | | actions={( |
| | | <TopToolbar> |
| | | <FilterButton /> |
| | |
| | | <MyExportButton /> |
| | | </TopToolbar> |
| | | )} |
| | | perPage={25} |
| | | perPage={DEFAULT_PAGE_SIZE} |
| | | > |
| | | <StyledDatagrid |
| | | preferenceKey='agvModel' |
| | |
| | | rowClick={(id, resource, record) => false} |
| | | expand={() => <AgvModelPanel />} |
| | | expandSingle={true} |
| | | omit={['id', 'uuid', 'liftHeight', 'mqttTopic', 'password', 'updateBy', 'updateTime', 'createTime', 'createBy', 'memo']} |
| | | omit={['id', 'uuid', 'liftHeight', 'mqttTopic', 'password', 'protocol' |
| | | , 'length', 'width', 'height' |
| | | , 'statusBool', 'updateBy', 'updateTime', 'createTime', 'createBy', 'memo']} |
| | | > |
| | | <NumberField source="id" /> |
| | | <TextField source="uuid" label="table.field.agvModel.uuid" /> |
| | | <TextField source="type" label="table.field.agvModel.type" /> |
| | | <TextField source="name" label="table.field.agvModel.name" /> |
| | | <TextField source="type" label="table.field.agvModel.type" /> |
| | | <NumberField source="length" label="table.field.agvModel.length" /> |
| | | <NumberField source="width" label="table.field.agvModel.width" /> |
| | | <NumberField source="height" label="table.field.agvModel.height" /> |
| | |
| | | <BooleanField source="allDirectionBool" label="table.field.agvModel.allDirection" sortable={false} /> |
| | | <TextField source="protocol" label="table.field.agvModel.protocol" /> |
| | | <TextField source="mqttTopic" label="table.field.agvModel.mqttTopic" /> |
| | | <BooleanField source="needUndockingBool" label="table.field.agvModel.needUndocking" sortable={false} /> |
| | | <BooleanField source="backupActionBool" label="table.field.agvModel.backupAction" sortable={false} /> |
| | | |
| | | <ReferenceField source="updateBy" label="common.field.updateBy" reference="user" link={false} sortable={false}> |
| | | <TextField source="nickname" /> |