add per-state DICOM zip downloads
This commit is contained in:
@@ -815,6 +815,7 @@ export default function App() {
|
||||
].map(t => {
|
||||
const screenshotDir = deformationJob?.result?.previews?.screenshots;
|
||||
const imagePath = screenshotDir ? `${screenshotDir}/${t.key}.png` : '';
|
||||
const stateZip = deformationJob?.result?.stateZips?.[t.key];
|
||||
return (
|
||||
<div key={t.key} className="bg-white p-4 rounded-2xl border flex flex-col hover:border-blue-200 transition-colors shadow-sm group min-h-[285px]">
|
||||
<div className="flex justify-between items-center mb-3">
|
||||
@@ -831,6 +832,15 @@ export default function App() {
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
{stateZip?.path && (
|
||||
<a
|
||||
href={fileUrl(stateZip.path)}
|
||||
download={stateZip.name}
|
||||
className="mt-3 py-2.5 bg-slate-100 text-slate-600 rounded-xl text-[11px] font-black hover:bg-green-600 hover:text-white transition-all flex items-center justify-center gap-2"
|
||||
>
|
||||
<Download size={13} /> 下载本状态 DICOM ZIP
|
||||
</a>
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
})}
|
||||
|
||||
Reference in New Issue
Block a user