预览小眼睛放开

This commit is contained in:
sjl
2025-12-25 15:11:52 +08:00
parent 42ce7aec5a
commit bf3d033f39
19 changed files with 128 additions and 124 deletions

View File

@@ -18,7 +18,7 @@
</el-descriptions-item>
<template v-if="detailData.problemType == 4">
<el-descriptions-item :span="2" label="附件">
<el-icon class="elView" v-if="detailData?.problemName && VITE_FLAG">
<el-icon class="elView" v-if="detailData?.problemName ">
<View @click="openFile(detailData?.problemName)" />
</el-icon>
<span class="aLoad" @click="download(detailData.keyName)" target="_blank">{{ detailData.problemName }}</span >
@@ -31,7 +31,7 @@
{{ detailData.takeStep }}
</el-descriptions-item>
<el-descriptions-item :span="2" label="处理成效报告">
<el-icon class="elView" v-if="detailData?.reportName && VITE_FLAG">
<el-icon class="elView" v-if="detailData?.reportName ">
<View @click="openFile(detailData?.reportName)" />
</el-icon>
<span class="aLoad" @click="download(detailData.keyName)" target="_blank">{{ detailData.reportName }}</span >
@@ -48,7 +48,7 @@ import { getById } from '@/api/supervision-boot/leaflet'
import { getFileNameAndFilePath } from '@/api/system-boot/file'
import {download} from '@/utils/fileDownLoad'
import { Link, View } from '@element-plus/icons-vue'
const VITE_FLAG = import.meta.env.VITE_NAME == 'jibei'
defineOptions({ name: 'technology/detail' })
const openFile = (name: any) => {
window.open(window.location.origin + '/#/previewFile?/supervision/' + name)