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

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

@@ -24,7 +24,7 @@
</el-tag>
</el-descriptions-item>
<el-descriptions-item label="报告文件">
<el-icon class="elView" v-if="detailData?.reportPaths?.fileName">
<el-icon class="elView" v-if="detailData?.reportPaths?.fileName &&VITE_FLAG">
<View @click="openFile(detailData?.reportPaths?.fileName)" />
</el-icon>
<a class="aLoad" @click="download(detailData.reportPaths?.keyName)">
@@ -52,6 +52,7 @@ const { query } = useRoute() // 查询参数
const openFile = (name: any) => {
window.open(window.location.origin + '/#/previewFile?/supervision/' + name)
}
const VITE_FLAG = import.meta.env.VITE_NAME == 'jibei'
const props = defineProps({
id: propTypes.string.def(undefined)
})