修改文件查看只有冀北可行

This commit is contained in:
sjl
2025-12-19 13:12:38 +08:00
parent d64d18f330
commit 6f770aa91d
22 changed files with 120 additions and 104 deletions

View File

@@ -14,7 +14,7 @@
</el-descriptions-item>
<template v-if="detailData.problemType == 4">
<el-descriptions-item :span="2" label="附件">
<el-icon class="elView" v-if="detailData?.problemName">
<el-icon class="elView" v-if="detailData?.problemName && VITE_FLAG">
<View @click="openFile(detailData?.problemName)" />
</el-icon>
<a class="aLoad" @click="download(detailData.keyName)" target="_blank">{{ detailData.problemName }}</a>
@@ -27,7 +27,7 @@
{{ detailData.takeStep }}
</el-descriptions-item>
<el-descriptions-item :span="2" label="处理成效报告">
<el-icon class="elView" v-if="detailData?.reportName">
<el-icon class="elView" v-if="detailData?.reportName && VITE_FLAG">
<View @click="openFile(detailData?.reportName)" />
</el-icon>
<a class="aLoad" @click="download(detailData.keyName)" target="_blank">{{ detailData.reportName }}</a>
@@ -43,7 +43,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)