详情文件预览

This commit is contained in:
zhujiyan
2024-06-06 22:14:20 +08:00
parent 5722259cc1
commit b3fbb68881
15 changed files with 238 additions and 77 deletions

View File

@@ -52,6 +52,7 @@
<Link />
</el-icon>
<a :href='detailData.testReport' target='_blank'>{{ detailData.testReportName }}</a>
<span @click="openFile(detailData.testReportName )">预览</span>
</el-descriptions-item>
<el-descriptions-item label='审核状态'>
@@ -73,7 +74,9 @@ import { defaultAttribute } from '@/components/table/defaultAttribute'
import { getTestById } from '@/api/supervision-boot/survey/test'
import { getFileNameAndFilePath } from '@/api/system-boot/file'
import { Link } from '@element-plus/icons-vue'
const openFile = (name:any) => {
window.open(window.location.origin + '/#/previewFile?'+name)
}
const { query } = useRoute() // 查询参数
const props = defineProps({
id: propTypes.string.def(undefined)