|
@@ -9,6 +9,7 @@ import {
|
|
} from '../../states/patient/worklist/slices/history';
|
|
} from '../../states/patient/worklist/slices/history';
|
|
import WorklistTable from './components/WorklistTable';
|
|
import WorklistTable from './components/WorklistTable';
|
|
import OperationPanel from './components/OperationPanel';
|
|
import OperationPanel from './components/OperationPanel';
|
|
|
|
+import SendPanel from '../../pages/output/SendPanel';
|
|
import { RootState, AppDispatch } from '../../states/store';
|
|
import { RootState, AppDispatch } from '../../states/store';
|
|
import { Task } from '@/domain/work';
|
|
import { Task } from '@/domain/work';
|
|
import worklistToExam from '../../domain/patient/worklistToExam';
|
|
import worklistToExam from '../../domain/patient/worklistToExam';
|
|
@@ -31,6 +32,9 @@ const HistorylistPage: React.FC = () => {
|
|
const historylistData = useSelector(
|
|
const historylistData = useSelector(
|
|
(state: RootState) => state.historyEntities.data
|
|
(state: RootState) => state.historyEntities.data
|
|
);
|
|
);
|
|
|
|
+ const currentPanel = useSelector(
|
|
|
|
+ (state: RootState) => state.historyPanelSwitch.currentPanel
|
|
|
|
+ );
|
|
|
|
|
|
useEffect(() => {
|
|
useEffect(() => {
|
|
console.log(
|
|
console.log(
|
|
@@ -92,7 +96,11 @@ const HistorylistPage: React.FC = () => {
|
|
open={drawerVisible}
|
|
open={drawerVisible}
|
|
width={300}
|
|
width={300}
|
|
>
|
|
>
|
|
- <OperationPanel />
|
|
|
|
|
|
+ {currentPanel === 'OperationPanel' ? (
|
|
|
|
+ <OperationPanel />
|
|
|
|
+ ) : (
|
|
|
|
+ <SendPanel />
|
|
|
|
+ )}
|
|
</Drawer>
|
|
</Drawer>
|
|
</>
|
|
</>
|
|
) : (
|
|
) : (
|
|
@@ -115,7 +123,11 @@ const HistorylistPage: React.FC = () => {
|
|
span={screens.lg ? 6 : screens.md ? 4 : 0}
|
|
span={screens.lg ? 6 : screens.md ? 4 : 0}
|
|
className="h-full overflow-auto"
|
|
className="h-full overflow-auto"
|
|
>
|
|
>
|
|
- <OperationPanel />
|
|
|
|
|
|
+ {currentPanel === 'OperationPanel' ? (
|
|
|
|
+ <OperationPanel />
|
|
|
|
+ ) : (
|
|
|
|
+ <SendPanel />
|
|
|
|
+ )}
|
|
</Col>
|
|
</Col>
|
|
</Row>
|
|
</Row>
|
|
)}
|
|
)}
|