预览小眼睛放开
This commit is contained in:
@@ -60,27 +60,27 @@
|
||||
|
||||
|
||||
<el-descriptions-item :span="2" label="技术监督报告">
|
||||
<el-icon class="elView" v-if="detailData?.supervisionReportName && VITE_FLAG">
|
||||
<el-icon class="elView" v-if="detailData?.supervisionReportName ">
|
||||
<View @click="openFile(detailData?.supervisionReportName)" />
|
||||
</el-icon>
|
||||
<span class="aLoad" @click="download(detailData.keyName)" target="_blank">{{ detailData.supervisionReportName }}</span >
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item :span="2" label="测试报告">
|
||||
<el-icon class="elView" v-if="detailData?.testReportName && VITE_FLAG">
|
||||
<el-icon class="elView" v-if="detailData?.testReportName ">
|
||||
<View @click="openFile(detailData?.testReportName)" />
|
||||
</el-icon>
|
||||
<span class="aLoad" @click="download(detailData.keyName)" target="_blank">{{ detailData.testReportName }}</span >
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item :span="2" label="其他报告">
|
||||
<div v-for="item in detailData.otherReports">
|
||||
<el-icon class="elView" v-if="item.fileName && VITE_FLAG">
|
||||
<el-icon class="elView" v-if="item.fileName ">
|
||||
<View @click="openFile(item.fileName)" />
|
||||
</el-icon>
|
||||
<span class="aLoad" @click="download(item.keyName)" target="_blank">{{ item.fileName }}</span >
|
||||
</div>
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item :span="2" label="处理成效报告" v-if="props.flag">
|
||||
<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 >
|
||||
@@ -111,7 +111,7 @@ const openFile = (name: any) => {
|
||||
window.open(window.location.origin + '/#/previewFile?/supervision/' + name)
|
||||
}
|
||||
|
||||
const VITE_FLAG = import.meta.env.VITE_NAME == 'jibei'
|
||||
|
||||
const { query } = useRoute() // 查询参数
|
||||
const props = defineProps({
|
||||
id: propTypes.string.def(undefined),
|
||||
|
||||
Reference in New Issue
Block a user