|
@@ -9,6 +9,7 @@ import { PatientType } from '@/API/patientType';
|
|
|
// import { BodyPart } from '@/API/bodyPart';
|
|
|
// import { setCurrentBodyPart } from '@/states/bodyPartSlice';
|
|
|
import { fetchViewsOrProtocols } from '@/states/patient/viewSelection';
|
|
|
+import { useIntl } from 'react-intl';
|
|
|
|
|
|
interface Props {
|
|
|
// setSelected: (val: 'protocol' | 'view') => void;
|
|
@@ -44,7 +45,15 @@ const RegisterAvailableFilterBar: React.FC<Props> = ({
|
|
|
// { label: '启用', value: 'enabled' },
|
|
|
// { label: '停用', value: 'disabled' },
|
|
|
// ];
|
|
|
-
|
|
|
+ const intl = useIntl();
|
|
|
+ const viewText = intl.formatMessage({
|
|
|
+ id: 'register.filter.view',
|
|
|
+ defaultMessage: 'register.filter.view',
|
|
|
+ });
|
|
|
+ const protocolText = intl.formatMessage({
|
|
|
+ id: 'register.filter.protocol',
|
|
|
+ defaultMessage: 'register.filter.protocol',
|
|
|
+ });
|
|
|
return (
|
|
|
<div
|
|
|
className="absolute top-0 left-0 right-0 z-10"
|
|
@@ -54,8 +63,8 @@ const RegisterAvailableFilterBar: React.FC<Props> = ({
|
|
|
<Col xs={24} sm={12} md={12} lg={12} xl={12}>
|
|
|
<Segmented
|
|
|
options={[
|
|
|
- { label: '协议', value: 'protocol' },
|
|
|
- { label: '体位', value: 'view' },
|
|
|
+ { label: protocolText, value: 'protocol' },
|
|
|
+ { label: viewText, value: 'view' },
|
|
|
]}
|
|
|
value={selected}
|
|
|
onChange={(val) => {
|