feat: 下载dicom

This commit is contained in:
mozzie 2023-09-05 16:45:03 +08:00
parent c6834cb4c4
commit ea5983776f
3 changed files with 22 additions and 14 deletions

View File

@ -13,6 +13,12 @@ export const Dashboard = (props: DashboardProps) => {
<Button onClick={() => navigate("/list")} data-tracking-id="test-btn"> <Button onClick={() => navigate("/list")} data-tracking-id="test-btn">
list list
</Button> </Button>
<Button
onClick={() => navigate("/root/viewer")}
data-tracking-id="test-btn"
>
</Button>
</div> </div>
); );
}; };

View File

@ -1,8 +1,7 @@
import { TableColumnsType } from "antd"; import { TableColumnsType } from "antd";
export const columns: TableColumnsType<any> = [ export const columns: TableColumnsType<any> = [
{ title: "#", dataIndex: "id", key: "id" }, { title: "PatientID", dataIndex: "PatientID", key: "PatientID" },
{ title: "病历号", dataIndex: "PatientID", key: "PatientID" },
{ {
title: "创建时间", title: "创建时间",
render: (_, record) => { render: (_, record) => {

View File

@ -2,7 +2,7 @@ import { useEffect, useState } from "react";
import { useDomain } from "@/hook/useDomain"; import { useDomain } from "@/hook/useDomain";
import { Button, Space, Table, Tooltip } from "antd"; import { Button, Space, Table, Tooltip } from "antd";
import { columns } from "./columns"; import { columns } from "./columns";
import { EyeOutlined, TagOutlined } from "@ant-design/icons"; import { DesktopOutlined, TagOutlined } from "@ant-design/icons";
import { openOHIFViewer } from "@/modules/Admin/Dicom/Upload/util"; import { openOHIFViewer } from "@/modules/Admin/Dicom/Upload/util";
interface ArchiveListProps { interface ArchiveListProps {
@ -41,17 +41,20 @@ export const ArchiveList = (props: ArchiveListProps) => {
dataIndex: "operation", dataIndex: "operation",
render: (_: any, record: any) => ( render: (_: any, record: any) => (
<Space> <Space>
<Button <Tooltip title="在线阅片">
type="primary" <Button
size="small" type="text"
icon={<EyeOutlined />} icon={<DesktopOutlined />}
onClick={() => onViewDicom(record)} onClick={() => onViewDicom(record)}
> />
</Tooltip>
</Button> <Tooltip title="添加标签">
<Button type="primary" size="small" icon={<TagOutlined />}> <Button
type="text"
</Button> icon={<TagOutlined />}
onClick={() => {}}
/>
</Tooltip>
</Space> </Space>
), ),
}, },