详情文件预览
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user