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

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

@@ -12,7 +12,7 @@
</el-form-item>
<el-form-item label="技术监督报告:" v-if="showFile1">
<el-icon class="elView" v-if="supervisionReportDetail?.supervisionReportName">
<el-icon class="elView" v-if="supervisionReportDetail?.supervisionReportName && VITE_FLAG">
<View @click="openFile(supervisionReportDetail?.supervisionReportName)" />
</el-icon>
<a class="aLoad" @click="download(supervisionReportDetail.keyName)" target="_blank">
@@ -21,7 +21,7 @@
</el-form-item>
<el-form-item label="问题附件:" v-if="showFile">
<el-icon class="elView" v-if="problemDetail?.problemName">
<el-icon class="elView" v-if="problemDetail?.problemName && VITE_FLAG">
<View @click="openFile(problemDetail?.problemName)" />
</el-icon>
<a class="aLoad" @click="download(supervisionReportDetail.keyName)" target="_blank">{{ problemDetail.problemName }}</a>
@@ -63,6 +63,7 @@ import { Link, View } from '@element-plus/icons-vue'
const openFile = (name: any) => {
window.open(window.location.origin + '/#/previewFile?/supervision/' + name)
}
const VITE_FLAG = import.meta.env.VITE_NAME == 'jibei'
//.doc,.docx,.xlsx,.xls,.pdf
const acceptType = ref('')
//下拉数据源