修改冀北现场反馈问题

This commit is contained in:
GGJ
2025-12-19 11:58:26 +08:00
parent d64d18f330
commit dc32cc3bb7
32 changed files with 865 additions and 426 deletions

View File

@@ -27,9 +27,9 @@
<el-icon class="elView" v-if="detailData?.reportPaths?.fileName">
<View @click="openFile(detailData?.reportPaths?.fileName)" />
</el-icon>
<a class="aLoad" @click="download(detailData.reportPaths?.keyName)">
<span class="aLoad" @click="download(detailData.reportPaths?.keyName)">
{{ detailData.reportPaths?.fileName }}
</a>
</span >
</el-descriptions-item>
<el-descriptions-item label="描述">
{{ detailData?.description }}

View File

@@ -6,7 +6,7 @@
</el-icon>
<a :href="detailData?.lineFilePath.url">
{{ detailData?.lineFilePath.name }}
</a>
</span >
</el-descriptions-item>
<el-descriptions-item label="填报人">
{{ detailData.reporter }}
@@ -116,9 +116,9 @@
<el-icon class="elView" v-if="detailData?.mainWiringDiagram.name">
<View @click="openFile(detailData?.mainWiringDiagram.name)" />
</el-icon>
<a target="_blank" class="aLoad" @click="download(detailData?.mainWiringDiagram.keyName)">
<span class="aLoad" @click="download(detailData?.mainWiringDiagram.keyName)">
{{ detailData?.mainWiringDiagram.name }}
</a>
</span >
</el-descriptions-item>
</el-descriptions>
</template>

View File

@@ -201,81 +201,85 @@
<el-icon class="elView" v-if="detailData?.informationSecurityTestReport?.name">
<View @click="openFile(detailData?.informationSecurityTestReport?.name)" />
</el-icon>
<a
target="_blank"
class="aLoad" @click="download(detailData?.informationSecurityTestReport.keyName)"
<span
class="aLoad"
@click="download(detailData?.informationSecurityTestReport.keyName)"
v-if="detailData?.informationSecurityTestReport?.name"
>
{{ detailData?.informationSecurityTestReport.name }}
</a>
</span>
</el-descriptions-item>
<el-descriptions-item label="验收检验报告单">
<el-icon class="elView" v-if="detailData?.acceptanceInspectionReportSingle?.name">
<View @click="openFile(detailData?.acceptanceInspectionReportSingle?.name)" />
</el-icon>
<a
target="_blank"
class="aLoad" @click="download(detailData?.acceptanceInspectionReportSingle.keyName)"
<span
class="aLoad"
@click="download(detailData?.acceptanceInspectionReportSingle.keyName)"
v-if="detailData?.acceptanceInspectionReportSingle?.name"
>
{{ detailData?.acceptanceInspectionReportSingle?.name }}
</a>
</span>
</el-descriptions-item>
<el-descriptions-item label="验收检验报告">
<el-icon class="elView" v-if="detailData?.acceptanceInspectionReport?.name">
<View @click="openFile(detailData?.acceptanceInspectionReport?.name)" />
</el-icon>
<a
target="_blank"
class="aLoad" @click="download(detailData?.acceptanceInspectionReport.keyName)"
<span
class="aLoad"
@click="download(detailData?.acceptanceInspectionReport.keyName)"
v-if="detailData?.acceptanceInspectionReport?.name"
>
{{ detailData?.acceptanceInspectionReport?.name }}
</a>
</span>
</el-descriptions-item>
<el-descriptions-item label="型式实验报告">
<el-icon class="elView" v-if="detailData?.typeExperimentReport?.name">
<View @click="openFile(detailData?.typeExperimentReport?.name)" />
</el-icon>
<a
target="_blank"
<span
v-if="detailData?.typeExperimentReport?.name"
class="aLoad" @click="download(detailData?.typeExperimentReport.keyName)"
class="aLoad"
@click="download(detailData?.typeExperimentReport.keyName)"
>
{{ detailData?.typeExperimentReport?.name }}
</a>
</span>
</el-descriptions-item>
<el-descriptions-item label="出厂检验报告">
<el-icon class="elView" v-if="detailData?.factoryInspectionReport?.name">
<View @click="openFile(detailData?.factoryInspectionReport?.name)" />
</el-icon>
<a
target="_blank"
class="aLoad" @click="download(detailData?.factoryInspectionReport.keyName)"
<span
class="aLoad"
@click="download(detailData?.factoryInspectionReport.keyName)"
v-if="detailData?.factoryInspectionReport?.name"
>
{{ detailData?.factoryInspectionReport?.name }}
</a>
</span>
</el-descriptions-item>
<el-descriptions-item label="性能检测报告">
<el-icon class="elView" v-if="detailData?.performanceTestReport?.name">
<View @click="openFile(detailData?.performanceTestReport?.name)" />
</el-icon>
<a
target="_blank"
class="aLoad" @click="download(detailData?.performanceTestReport.keyName)"
<span
class="aLoad"
@click="download(detailData?.performanceTestReport.keyName)"
v-if="detailData?.performanceTestReport?.name"
>
{{ detailData?.performanceTestReport?.name }}
</a>
</span>
</el-descriptions-item>
<el-descriptions-item label="其他附件">
<el-icon class="elView" v-if="detailData?.otherAttachments?.name">
<View @click="openFile(detailData?.otherAttachments?.name)" />
</el-icon>
<a target="_blank" class="aLoad" @click="download(detailData?.otherAttachments.keyName)" v-if="detailData?.otherAttachments?.name">
<span
class="aLoad"
@click="download(detailData?.otherAttachments.keyName)"
v-if="detailData?.otherAttachments?.name"
>
{{ detailData?.otherAttachments?.name }}
</a>
</span>
</el-descriptions-item>
</el-descriptions>
</template>
@@ -290,7 +294,7 @@ import { useDictData } from '@/stores/dictData'
import { getFileNameAndFilePath } from '@/api/system-boot/file'
import { Link, View } from '@element-plus/icons-vue'
import { nodeAllList } from '@/api/device-boot/Business'
import {download} from '@/utils/fileDownLoad'
import { download } from '@/utils/fileDownLoad'
defineOptions({ name: 'BpmUserReportDetail' })
const openFile = (name: any) => {
window.open(window.location.origin + '/#/previewFile?/supervision/' + name)
@@ -482,7 +486,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
else if (pathName == 'acceptanceInspectionReport' && detailData.value.acceptanceInspectionReport) {
detailData.value.acceptanceInspectionReport = {
name: res.data.fileName,
keyName: res.data.name,
keyName: res.data.name,
url: res.data.url
}
}
@@ -490,7 +494,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
else if (pathName == 'typeExperimentReport' && detailData.value.typeExperimentReport) {
detailData.value.typeExperimentReport = {
name: res.data.fileName,
keyName: res.data.name,
keyName: res.data.name,
url: res.data.url
}
}
@@ -498,7 +502,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
else if (pathName == 'factoryInspectionReport' && detailData.value.factoryInspectionReport) {
detailData.value.factoryInspectionReport = {
name: res.data.fileName,
keyName: res.data.name,
keyName: res.data.name,
url: res.data.url
}
}
@@ -513,7 +517,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
else if (pathName == 'otherAttachments' && detailData.value.otherAttachments) {
detailData.value.otherAttachments = {
name: res.data.fileName,
keyName: res.data.name,
keyName: res.data.name,
url: res.data.url
}
}