This commit is contained in:
Flow 2025-08-12 16:47:35 +08:00
parent b53b04b6a8
commit 92f60ac8ed
2 changed files with 24 additions and 0 deletions

View File

@ -24,6 +24,7 @@ export interface EcgworkstationVO {
filename: string // 文件名称 filename: string // 文件名称
zipname: string // 压缩文件名称 zipname: string // 压缩文件名称
isreplay: number // 是否回放: 0-否, 1-是 isreplay: number // 是否回放: 0-否, 1-是
pdfurl: string // pdf文件url
} }
// 心电工作站患者信息 API // 心电工作站患者信息 API

View File

@ -296,6 +296,19 @@
<span v-else type="success" size="small" class="status-tag"> 已申请 </span> <span v-else type="success" size="small" class="status-tag"> 已申请 </span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="报告" min-width="80" align="center" show-overflow-tooltip>
<template #default="{ row }">
<el-button
type="primary"
size="small"
class="view-report-btn"
@click="handleViewReport(row)"
>
<Icon icon="ep:view" />
查看
</el-button>
</template>
</el-table-column>
<el-table-column <el-table-column
prop="orgname" prop="orgname"
label="机构" label="机构"
@ -1439,6 +1452,16 @@ const handleApply = async (row) => {
} }
} }
/** 查看报告 */
const handleViewReport = (row) => {
if (row.pdfurl) {
// PDF
window.open(row.pdfurl, '_blank')
} else {
ElMessage.warning('报告未生成')
}
}
/** 下载 */ /** 下载 */
const handleDownload = async (row) => { const handleDownload = async (row) => {
// //