|
@@ -1,4 +1,5 @@
|
|
|
-import { Layout } from 'antd';
|
|
|
|
|
|
|
+import { Flex, Layout } from 'antd';
|
|
|
|
|
+import { useAppSelector } from '@/states/store';
|
|
|
import ImageControl from './components/ImageControl';
|
|
import ImageControl from './components/ImageControl';
|
|
|
import OperationPanel from './components/OperationPanel';
|
|
import OperationPanel from './components/OperationPanel';
|
|
|
import BodyPositionList from '../exam/components/BodyPositionList';
|
|
import BodyPositionList from '../exam/components/BodyPositionList';
|
|
@@ -7,37 +8,52 @@ import InvertContrastModal from './components/InvertContrastModal';
|
|
|
const { Content, Sider } = Layout;
|
|
const { Content, Sider } = Layout;
|
|
|
|
|
|
|
|
const ImageProcessingPageLarge = () => {
|
|
const ImageProcessingPageLarge = () => {
|
|
|
|
|
+ const selectedBodyPosition = useAppSelector(
|
|
|
|
|
+ (state) => state.bodyPositionList.selectedBodyPosition
|
|
|
|
|
+ );
|
|
|
|
|
+
|
|
|
|
|
+ const patientId = selectedBodyPosition?.work?.PatientID || '';
|
|
|
|
|
+ const patientName = selectedBodyPosition?.work?.PatientName || '';
|
|
|
|
|
+ const patientSex = selectedBodyPosition?.work?.PatientSex || '';
|
|
|
|
|
+
|
|
|
return (
|
|
return (
|
|
|
- <Layout className="h-full">
|
|
|
|
|
- <Sider width={200} className="custom-sider">
|
|
|
|
|
- {/**使用style注入方式修改Sider内部div的样式,使体位列表显示出体位信息 */}
|
|
|
|
|
- <style>{`
|
|
|
|
|
|
|
+ <Flex className="h-full m-0 p-0" vertical>
|
|
|
|
|
+ <div className="text-[15px] m-0">
|
|
|
|
|
+ <span className="mr-4">患者ID: {patientId}</span>
|
|
|
|
|
+ <span>患者姓名: {patientName}</span>
|
|
|
|
|
+ <span>性别: {patientSex}</span>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <Layout className="flex-1">
|
|
|
|
|
+ <Sider width={200} className="custom-sider">
|
|
|
|
|
+ {/**使用style注入方式修改Sider内部div的样式,使体位列表显示出体位信息 */}
|
|
|
|
|
+ <style>{`
|
|
|
.custom-sider > .ant-layout-sider-children {
|
|
.custom-sider > .ant-layout-sider-children {
|
|
|
display: flex;
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
flex-direction: column;
|
|
|
height: 100%;
|
|
height: 100%;
|
|
|
}
|
|
}
|
|
|
`}</style>
|
|
`}</style>
|
|
|
- <BodyPositionList layout="vertical" showAddButton={false} />
|
|
|
|
|
- </Sider>
|
|
|
|
|
- <Content>
|
|
|
|
|
- <ImageControl />
|
|
|
|
|
- </Content>
|
|
|
|
|
- <Sider width={300} className="operation-panel-sider">
|
|
|
|
|
- {/**使用style注入方式确保OperationPanel获得100%高度 */}
|
|
|
|
|
- <style>{`
|
|
|
|
|
|
|
+ <BodyPositionList layout="vertical" showAddButton={false} />
|
|
|
|
|
+ </Sider>
|
|
|
|
|
+ <Content>
|
|
|
|
|
+ <ImageControl />
|
|
|
|
|
+ </Content>
|
|
|
|
|
+ <Sider width={300} className="operation-panel-sider">
|
|
|
|
|
+ {/**使用style注入方式确保OperationPanel获得100%高度 */}
|
|
|
|
|
+ <style>{`
|
|
|
.operation-panel-sider > .ant-layout-sider-children {
|
|
.operation-panel-sider > .ant-layout-sider-children {
|
|
|
display: flex;
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
flex-direction: column;
|
|
|
height: 100%;
|
|
height: 100%;
|
|
|
}
|
|
}
|
|
|
`}</style>
|
|
`}</style>
|
|
|
- <OperationPanel />
|
|
|
|
|
- </Sider>
|
|
|
|
|
-
|
|
|
|
|
- {/* 反色对比Modal */}
|
|
|
|
|
- <InvertContrastModal />
|
|
|
|
|
- </Layout>
|
|
|
|
|
|
|
+ <OperationPanel />
|
|
|
|
|
+ </Sider>
|
|
|
|
|
+
|
|
|
|
|
+ {/* 反色对比Modal */}
|
|
|
|
|
+ <InvertContrastModal />
|
|
|
|
|
+ </Layout>
|
|
|
|
|
+ </Flex>
|
|
|
);
|
|
);
|
|
|
};
|
|
};
|
|
|
|
|
|