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/StaPanel.jsx | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/zy-acs-flow/src/page/sta/StaPanel.jsx b/zy-acs-flow/src/page/sta/StaPanel.jsx
index bd6d77f..382ac5e 100644
--- a/zy-acs-flow/src/page/sta/StaPanel.jsx
+++ b/zy-acs-flow/src/page/sta/StaPanel.jsx
@@ -26,6 +26,7 @@
} from 'react-admin';
import { format } from 'date-fns';
import * as Common from '@/utils/common'
+import { getCompDirectLabel } from "../loc/compDirect";
const STATUS_FIELDS = [
{ key: 'autoing', labelKey: 'table.field.sta.autoing' },
@@ -42,7 +43,10 @@
{ labelKey: 'table.field.sta.rsvInCnt', valueKey: 'rsvInCnt' },
{ labelKey: 'table.field.sta.rsvOutCnt', valueKey: 'rsvOutCnt' },
{ labelKey: 'table.field.sta.angle', valueKey: 'angle' },
- { labelKey: 'table.field.sta.actDir', valueKey: 'actDir' },
+ {
+ labelKey: 'table.field.sta.actDir',
+ getValue: (record, translate) => getCompDirectLabel(translate, record?.actDir),
+ },
// { labelKey: 'table.field.sta.offset', valueKey: 'offset' },
{ labelKey: 'table.field.sta.height', valueKey: 'height' },
{ labelKey: 'table.field.sta.depth', valueKey: 'depth' },
@@ -150,11 +154,11 @@
<Box height={12}> </Box>
<Grid container spacing={2}>
- {INFO_FIELDS.map(({ labelKey, valueKey }) => (
+ {INFO_FIELDS.map(({ labelKey, valueKey, getValue }) => (
<Grid item xs={12} sm={6} md={4} key={labelKey}>
<InfoItem
labelKey={labelKey}
- value={getRecordValue(record, valueKey)}
+ value={getValue ? getValue(record, translate) : getRecordValue(record, valueKey)}
/>
</Grid>
))}
--
Gitblit v1.9.1