feat: 上传全部影像
This commit is contained in:
parent
267c5dfa43
commit
43eb5e70af
|
@ -12,11 +12,14 @@ export const columnsForStudy: TableColumnsType<Study> = [
|
|||
{
|
||||
title: "切片数量",
|
||||
key: "seriesNumber",
|
||||
render: (_: any, record: Study) => (
|
||||
<span>
|
||||
{record.subs.map((s) => s.subs.length).reduce((p, n) => p + n)}
|
||||
</span>
|
||||
),
|
||||
render: (_: any, record: Study) => {
|
||||
console.log(record);
|
||||
return (
|
||||
<span>
|
||||
{record.subs.map((s) => s.subs.length).reduce((p, n) => p + n)}
|
||||
</span>
|
||||
);
|
||||
},
|
||||
},
|
||||
{ title: "年龄", dataIndex: "patientAge", key: "patientAge" },
|
||||
{ title: "性别", dataIndex: "patientSex", key: "patientSex" },
|
||||
|
|
|
@ -42,6 +42,7 @@ export const useDicomUploader = () => {
|
|||
//TODO: 耗时
|
||||
setIsLoading(true);
|
||||
const studys = await parseDcmFiles(dcmFiles);
|
||||
console.log("studys", studys);
|
||||
setStudys(studys);
|
||||
setIsLoading(false);
|
||||
};
|
||||
|
|
|
@ -69,7 +69,7 @@ export const parseDcmFiles = async (dcmFiles: File[]): Promise<Study[]> => {
|
|||
}
|
||||
// 序列级别
|
||||
let series = study.subs.find(
|
||||
(s) => s.SeriesInstanceUID === SeriesInstanceUID
|
||||
(s) => s.SeriesInstanceUID === SeriesInstanceUID && s.
|
||||
);
|
||||
if (!series) {
|
||||
series = {
|
||||
|
|
Loading…
Reference in New Issue
Block a user