|
@@ -18,6 +18,8 @@ import {
|
|
CloseOutlined,
|
|
CloseOutlined,
|
|
} from '@ant-design/icons';
|
|
} from '@ant-design/icons';
|
|
import { patientSizes } from '@/states/patientSize';
|
|
import { patientSizes } from '@/states/patientSize';
|
|
|
|
+import { WorkstationTypeLabels } from '@/states/workstation';
|
|
|
|
+import { FormattedMessage } from 'react-intl';
|
|
|
|
|
|
const ContentAreaSmall = ({ className }: { className?: string }) => {
|
|
const ContentAreaSmall = ({ className }: { className?: string }) => {
|
|
console.log('ContentAreaSmall component rendered');
|
|
console.log('ContentAreaSmall component rendered');
|
|
@@ -56,8 +58,13 @@ const ContentAreaSmall = ({ className }: { className?: string }) => {
|
|
placeholder="选择工作位"
|
|
placeholder="选择工作位"
|
|
style={{ width: '100%', marginBottom: 8 }}
|
|
style={{ width: '100%', marginBottom: 8 }}
|
|
>
|
|
>
|
|
- <Select.Option value="工作位1">工作位1</Select.Option>
|
|
|
|
- <Select.Option value="工作位2">工作位2</Select.Option>
|
|
|
|
|
|
+ {Object.entries(WorkstationTypeLabels).map(
|
|
|
|
+ ([key, value]: [string, string]) => (
|
|
|
|
+ <Select.Option key={key} value={value}>
|
|
|
|
+ <FormattedMessage id={`workstation.${key.toLowerCase()}`} />
|
|
|
|
+ </Select.Option>
|
|
|
|
+ )
|
|
|
|
+ )}
|
|
</Select>
|
|
</Select>
|
|
</Col>
|
|
</Col>
|
|
</Row>
|
|
</Row>
|