报告
This commit is contained in:
parent
b53b04b6a8
commit
92f60ac8ed
@ -24,6 +24,7 @@ export interface EcgworkstationVO {
|
||||
filename: string // 文件名称
|
||||
zipname: string // 压缩文件名称
|
||||
isreplay: number // 是否回放: 0-否, 1-是
|
||||
pdfurl: string // pdf文件url
|
||||
}
|
||||
|
||||
// 心电工作站患者信息 API
|
||||
|
||||
@ -296,6 +296,19 @@
|
||||
<span v-else type="success" size="small" class="status-tag"> 已申请 </span>
|
||||
</template>
|
||||
</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
|
||||
prop="orgname"
|
||||
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) => {
|
||||
// 设置下载状态
|
||||
|
||||
Loading…
Reference in New Issue
Block a user