From c70ea186cf38ae0cef07d5d712b5261416c968d3 Mon Sep 17 00:00:00 2001
From: vincentlu <t1341870251@gmail.com>
Date: 星期四, 05 二月 2026 11:08:25 +0800
Subject: [PATCH] #
---
zy-acs-flow/src/page/sta/StaList.jsx | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/zy-acs-flow/src/page/sta/StaList.jsx b/zy-acs-flow/src/page/sta/StaList.jsx
index 0704092..01d73d3 100644
--- a/zy-acs-flow/src/page/sta/StaList.jsx
+++ b/zy-acs-flow/src/page/sta/StaList.jsx
@@ -30,6 +30,7 @@
ReferenceArrayInput,
AutocompleteInput,
DeleteButton,
+ FunctionField,
} from 'react-admin';
import { Box, Typography, Card, Stack } from '@mui/material';
import { styled } from '@mui/material/styles';
@@ -43,6 +44,7 @@
import { PAGE_DRAWER_WIDTH, OPERATE_MODE, DEFAULT_PAGE_SIZE } from '@/config/setting';
import * as Common from '@/utils/common';
import rowSx from "./rowSx";
+import { getCompDirectLabel } from "../loc/compDirect";
const StyledDatagrid = styled(DatagridConfigurable)(({ theme }) => ({
'& .css-1vooibu-MuiSvgIcon-root': {
@@ -161,7 +163,10 @@
<NumberField source="height" label="table.field.sta.height" />
<NumberField source="depth" label="table.field.sta.depth" />
<NumberField source="angle" label="table.field.sta.angle" />
- <NumberField source="actDir" label="table.field.sta.actDir" />
+ <FunctionField
+ label="table.field.sta.actDir"
+ render={(record) => getCompDirectLabel(translate, record?.actDir)}
+ />
<NumberField source="inboundWait" label="table.field.sta.inboundWait" />
<NumberField source="outboundWait" label="table.field.sta.outboundWait" />
{/* <TextField source="autoing" label="table.field.sta.autoing" />
--
Gitblit v1.9.1