|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | const filters = [ | 
|---|
|  |  |  | // <SearchInput source="condition" alwaysOn />, | 
|---|
|  |  |  | <TextInput source="groupId" label="table.field.action.groupId" alwaysOn resettable />, | 
|---|
|  |  |  | <ReferenceInput source="agvId" label="table.field.action.agvId" reference="agv" alwaysOn> | 
|---|
|  |  |  | <AutocompleteInput label="table.field.action.agvId" optionText="uuid" filterToQuery={(val) => ({ uuid: val })} /> | 
|---|
|  |  |  | </ReferenceInput>, | 
|---|
|  |  |  | <TextInput source="groupId" label="table.field.action.groupId" alwaysOn />, | 
|---|
|  |  |  | <ReferenceInput source="busId" label="table.field.action.busId" reference="bus"> | 
|---|
|  |  |  | <AutocompleteInput label="table.field.action.busId" optionText="busNo" filterToQuery={(val) => ({ seqNum: val })} /> | 
|---|
|  |  |  | </ReferenceInput>, | 
|---|
|  |  |  | 
|---|
|  |  |  | title={"menu.action"} | 
|---|
|  |  |  | empty={<EmptyData onClick={() => { setCreateDialog(true) }} />} | 
|---|
|  |  |  | filters={filters} | 
|---|
|  |  |  | sort={{ field: "create_time", order: "desc" }} | 
|---|
|  |  |  | sort={{ field: "io_time", order: "desc" }} | 
|---|
|  |  |  | actions={( | 
|---|
|  |  |  | <TopToolbar> | 
|---|
|  |  |  | <FilterButton /> | 
|---|
|  |  |  | 
|---|
|  |  |  | > | 
|---|
|  |  |  | <StyledDatagrid | 
|---|
|  |  |  | preferenceKey='action' | 
|---|
|  |  |  | bulkActionButtons={() => <BulkDeleteButton mutationMode={OPERATE_MODE} />} | 
|---|
|  |  |  | bulkActionButtons={false} | 
|---|
|  |  |  | rowClick={(id, resource, record) => false} | 
|---|
|  |  |  | expand={() => <ActionPanel />} | 
|---|
|  |  |  | expandSingle={true} | 
|---|
|  |  |  | 
|---|
|  |  |  | <TextField source="seqNum" /> | 
|---|
|  |  |  | </ReferenceField> | 
|---|
|  |  |  | {/* <TextField source="seqNum" label="table.field.action.seqNum" /> */} | 
|---|
|  |  |  | <NumberField source="priority" label="table.field.action.priority" /> | 
|---|
|  |  |  | <NumberField source="priority" label="table.field.action.priority" sortable={false} sx={{ fontWeight: 'bold' }} /> | 
|---|
|  |  |  | {/* <TextField source="name" label="table.field.action.name" /> */} | 
|---|
|  |  |  | <ReferenceField source="actionType" label="table.field.action.actionType" reference="actionType" link={false} sortable={false}> | 
|---|
|  |  |  | <TextField source="name" /> | 
|---|
|  |  |  | </ReferenceField> | 
|---|
|  |  |  | <TextField source="code" label="table.field.action.code" /> | 
|---|
|  |  |  | <NumberField source="val" label="table.field.action.val" /> | 
|---|
|  |  |  | <TextField source="params" label="table.field.action.params" /> | 
|---|
|  |  |  | <TextField source="code" label="table.field.action.code" sortable={false} /> | 
|---|
|  |  |  | <NumberField source="val" label="table.field.action.val" sortable={false} /> | 
|---|
|  |  |  | <TextField source="params" label="table.field.action.params" sortable={false} /> | 
|---|
|  |  |  | <ReferenceField source="actionSts" label="table.field.action.actionSts" reference="actionSts" link={false} sortable={false}> | 
|---|
|  |  |  | <TextField source="name" /> | 
|---|
|  |  |  | </ReferenceField> | 
|---|