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

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

@@ -104,7 +104,7 @@
{{ detailData.otherRemark }}
</el-descriptions-item>
<el-descriptions-item label="盖章报告" v-if="detailData.factoryInspectionReport">
<el-icon class="elView" v-if="detailData?.factoryInspectionReport.name">
<el-icon class="elView" v-if="detailData?.factoryInspectionReport.name && VITE_FLAG">
<View @click="openFile(detailData?.factoryInspectionReport.name)" />
</el-icon>
<a class="aLoad" @click="download(detailData?.factoryInspectionReport.keyName)">
@@ -112,7 +112,7 @@
</a>
</el-descriptions-item>
<el-descriptions-item label="佐证材料" v-if="detailData?.informationSecurityTestReport">
<el-icon class="elView" v-if="detailData?.informationSecurityTestReport.name">
<el-icon class="elView" v-if="detailData?.informationSecurityTestReport.name && VITE_FLAG">
<View @click="openFile(detailData?.informationSecurityTestReport.name)" />
</el-icon>
<a class="aLoad" @click="download(detailData?.informationSecurityTestReport.keyName)">
@@ -120,25 +120,25 @@
</a>
</el-descriptions-item>
<el-descriptions-item label="计划变更材料" v-if="detailData?.otherAttachments">
<el-icon class="elView" v-if="detailData?.otherAttachments.name">
<el-icon class="elView" v-if="detailData?.otherAttachments.name && VITE_FLAG">
<View @click="openFile(detailData?.otherAttachments.name)" />
</el-icon>
<a class="aLoad" @click="download(detailData?.otherAttachments.keyName)">{{ detailData?.otherAttachments.name }}</a>
</el-descriptions-item>
<el-descriptions-item label="告预警单材料" v-if="detailData?.performanceTestReport">
<el-icon class="elView" v-if="detailData?.performanceTestReport.name">
<el-icon class="elView" v-if="detailData?.performanceTestReport.name && VITE_FLAG">
<View @click="openFile(detailData?.performanceTestReport.name)" />
</el-icon>
<a class="aLoad" @click="download(detailData?.performanceTestReport.keyName)">{{ detailData?.performanceTestReport.name }}</a>
</el-descriptions-item>
<el-descriptions-item label="告预警单反馈材料" v-if="detailData?.typeExperimentReport">
<el-icon class="elView" v-if="detailData?.typeExperimentReport.name">
<el-icon class="elView" v-if="detailData?.typeExperimentReport.name && VITE_FLAG">
<View @click="openFile(detailData?.typeExperimentReport.name)" />
</el-icon>
<a class="aLoad" @click="download(detailData?.typeExperimentReport.keyName)">{{ detailData?.typeExperimentReport.name }}</a>
</el-descriptions-item>
<el-descriptions-item label="评估报告" v-if="detailData?.performanceTestReport">
<el-icon class="elView" v-if="detailData?.performanceTestReport.name">
<el-icon class="elView" v-if="detailData?.performanceTestReport.name && VITE_FLAG">
<View @click="openFile(detailData?.performanceTestReport.name)" />
</el-icon>
<a class="aLoad" @click="download(detailData?.performanceTestReport.keyName)">{{ detailData?.performanceTestReport.name }}</a>
@@ -161,6 +161,7 @@ const { query } = useRoute() // 查询参数
const props = defineProps({
id: propTypes.string.def(undefined)
})
const VITE_FLAG = import.meta.env.VITE_NAME == 'jibei'
console.log(propTypes.string.def(undefined), '999999999999传参')
const detailLoading = ref(false) // 表单的加载中
const detailData = ref<any>({}) // 详情数据