|
|
@@ -14,7 +14,7 @@ import {
|
|
|
import ErrorMessage from '@/components/ErrorMessage';
|
|
|
import { patientSizes, PatientSize } from '../../states/patientSize';
|
|
|
import { WorkstationTypeLabels, WorkstationType } from '../../states/workstation';
|
|
|
-import { FormattedMessage } from 'react-intl';
|
|
|
+import { FormattedMessage, useIntl } from 'react-intl';
|
|
|
import { useSelector, useDispatch, useStore } from 'react-redux';
|
|
|
import { deleteBodyPosition } from '../../API/patient/viewActions';
|
|
|
import { copyPositionThunk } from '../../states/exam/examWorksCacheSlice';
|
|
|
@@ -45,6 +45,7 @@ import { openCamera, closeCamera } from '@/states/exam/cameraSlice';
|
|
|
import CameraModal from '@/components/CameraModal';
|
|
|
|
|
|
const ContentAreaLarge = () => {
|
|
|
+ const intl = useIntl();
|
|
|
const dispatch = useDispatch<AppDispatch>();
|
|
|
const isResetting = useSelector(
|
|
|
(state: RootState) => state.device.status === 'loading'
|
|
|
@@ -274,9 +275,9 @@ const ContentAreaLarge = () => {
|
|
|
<Row gutter={16} align="middle">
|
|
|
<Col span={productName === 'DROS' ? 9 : 12}>
|
|
|
<Select
|
|
|
- placeholder="选择体型"
|
|
|
+ placeholder={<FormattedMessage id="exam.bodysize.placeholder" />}
|
|
|
style={{ width: '100%', marginBottom: 8 }}
|
|
|
- value={bodysize}
|
|
|
+ value={intl.formatMessage({ id: bodysize })}
|
|
|
onChange={handleBodysizeChange}
|
|
|
>
|
|
|
{Object.entries(patientSizes).map(
|
|
|
@@ -292,10 +293,10 @@ const ContentAreaLarge = () => {
|
|
|
<label
|
|
|
style={{ display: 'block', marginBottom: 4, fontSize: '12px' }}
|
|
|
>
|
|
|
- 厚度 (cm)
|
|
|
+ <FormattedMessage id="exam.thickness.label" />
|
|
|
</label>
|
|
|
<InputNumber
|
|
|
- placeholder="厚度"
|
|
|
+ placeholder={intl.formatMessage({ id: 'exam.thickness.placeholder' })}
|
|
|
style={{ width: '100%', marginBottom: 8 }}
|
|
|
value={thickness || undefined}
|
|
|
min={1}
|
|
|
@@ -481,10 +482,10 @@ const ContentAreaLarge = () => {
|
|
|
<label
|
|
|
style={{ display: 'block', marginBottom: 4, fontSize: '12px' }}
|
|
|
>
|
|
|
- 曝光模式
|
|
|
+ <FormattedMessage id="exam.exposureMode.label" />
|
|
|
</label>
|
|
|
<Select
|
|
|
- placeholder="选择曝光模式"
|
|
|
+ placeholder={<FormattedMessage id="exam.exposureMode.placeholder" />}
|
|
|
value={currentExposureMode}
|
|
|
onChange={handleExposureModeChange}
|
|
|
style={{ width: '100%', marginBottom: 8 }}
|
|
|
@@ -500,8 +501,8 @@ const ContentAreaLarge = () => {
|
|
|
AEC
|
|
|
</label>
|
|
|
<Switch
|
|
|
- checkedChildren="开启AEC"
|
|
|
- unCheckedChildren="关闭AEC"
|
|
|
+ checkedChildren={<FormattedMessage id="exam.aec.enabled" />}
|
|
|
+ unCheckedChildren={<FormattedMessage id="exam.aec.disabled" />}
|
|
|
checked={isAECEnabled}
|
|
|
onChange={handleAECChange}
|
|
|
style={{ marginBottom: 8 }}
|
|
|
@@ -521,7 +522,7 @@ const ContentAreaLarge = () => {
|
|
|
state="normal"
|
|
|
/>
|
|
|
}
|
|
|
- title="重置参数"
|
|
|
+ title={intl.formatMessage({ id: 'exam.action.resetParams' })}
|
|
|
onClick={handleResetParameters}
|
|
|
disabled={isResetting}
|
|
|
/>
|
|
|
@@ -529,7 +530,7 @@ const ContentAreaLarge = () => {
|
|
|
<Divider />
|
|
|
<Flex wrap gap="small">
|
|
|
{showDeleteButton && (
|
|
|
- <Tooltip title="删除选择的体位">
|
|
|
+ <Tooltip title={intl.formatMessage({ id: 'exam.action.deletePosition' })}>
|
|
|
<Button
|
|
|
style={{ width: '1.5rem', height: '1.5rem' }}
|
|
|
icon={
|
|
|
@@ -580,7 +581,7 @@ const ContentAreaLarge = () => {
|
|
|
</Tooltip>
|
|
|
)}
|
|
|
|
|
|
- <Tooltip title="复制选择的体位">
|
|
|
+ <Tooltip title={intl.formatMessage({ id: 'exam.action.copyPosition' })}>
|
|
|
<Button
|
|
|
style={{ width: '1.5rem', height: '1.5rem' }}
|
|
|
icon={
|
|
|
@@ -607,7 +608,7 @@ const ContentAreaLarge = () => {
|
|
|
</Tooltip>
|
|
|
|
|
|
{showSaveParamsButton && (
|
|
|
- <Tooltip title="保存参数">
|
|
|
+ <Tooltip title={intl.formatMessage({ id: 'exam.action.saveParams' })}>
|
|
|
<Button
|
|
|
style={{ width: '1.5rem', height: '1.5rem' }}
|
|
|
icon={
|
|
|
@@ -625,7 +626,7 @@ const ContentAreaLarge = () => {
|
|
|
</Tooltip>
|
|
|
)}
|
|
|
|
|
|
- <Tooltip title="打开/关闭摄像头">
|
|
|
+ <Tooltip title={intl.formatMessage({ id: 'exam.action.toggleCamera' })}>
|
|
|
<Button
|
|
|
style={{ width: '1.5rem', height: '1.5rem' }}
|
|
|
icon={
|
|
|
@@ -643,7 +644,7 @@ const ContentAreaLarge = () => {
|
|
|
</Tooltip>
|
|
|
|
|
|
{showRejectButton && (
|
|
|
- <Tooltip title="拒绝">
|
|
|
+ <Tooltip title={intl.formatMessage({ id: 'exam.action.reject' })}>
|
|
|
<Button
|
|
|
style={{ width: '1.5rem', height: '1.5rem' }}
|
|
|
loading={loading}
|
|
|
@@ -663,7 +664,7 @@ const ContentAreaLarge = () => {
|
|
|
)}
|
|
|
|
|
|
{showRestoreButton && (
|
|
|
- <Tooltip title="恢复">
|
|
|
+ <Tooltip title={intl.formatMessage({ id: 'exam.action.restore' })}>
|
|
|
<Button
|
|
|
style={{ width: '1.5rem', height: '1.5rem' }}
|
|
|
loading={loading}
|