电能质量异常管理,谐波测试计划管理bug修改

This commit is contained in:
sjl
2025-12-18 16:09:44 +08:00
parent 92aa66436e
commit 909f43e257
20 changed files with 325 additions and 137 deletions

View File

@@ -59,27 +59,27 @@
<el-icon class="elView" v-if="detailData?.supervisionReportName">
<View @click="openFile(detailData?.supervisionReportName)" />
</el-icon>
<a :href="detailData.supervisionReport" target="_blank">{{ detailData.supervisionReportName }}</a>
<a class="aLoad" @click="download(detailData.keyName)" target="_blank">{{ detailData.supervisionReportName }}</a>
</el-descriptions-item>
<el-descriptions-item :span="2" label="测试报告">
<el-icon class="elView" v-if="detailData?.testReportName">
<View @click="openFile(detailData?.testReportName)" />
</el-icon>
<a :href="detailData.testReport" target="_blank">{{ detailData.testReportName }}</a>
<a class="aLoad" @click="download(detailData.keyName)" target="_blank">{{ detailData.testReportName }}</a>
</el-descriptions-item>
<el-descriptions-item :span="2" label="其他报告">
<div v-for="item in detailData.otherReports">
<el-icon class="elView">
<View @click="openFile(item.fileName)" />
</el-icon>
<a :href="item.url" target="_blank">{{ item.fileName }}</a>
<a class="aLoad" @click="download(item.keyName)" target="_blank">{{ item.fileName }}</a>
</div>
</el-descriptions-item>
<el-descriptions-item :span="2" label="处理成效报告" v-if="props.flag">
<el-icon class="elView " v-if="detailData?.reportName">
<View @click="openFile(detailData?.reportName)" />
</el-icon>
<a :href="detailData.reportPath" target="_blank">{{ detailData.reportName }}</a>
<a class="aLoad" @click="download(detailData.keyName)" target="_blank">{{ detailData.reportName }}</a>
</el-descriptions-item>
<!-- <el-descriptions-item label="流程状态" >
<el-tag :type="getDeviceStatusType(detailData?.status)">
@@ -100,6 +100,7 @@ import { defaultAttribute } from '@/components/table/defaultAttribute'
import { getTestById } from '@/api/supervision-boot/survey/test'
import { getFileNameAndFilePath } from '@/api/system-boot/file'
import { Link, View } from '@element-plus/icons-vue'
import {download} from '@/utils/fileDownLoad'
const openFile = (name: any) => {
window.open(window.location.origin + '/#/previewFile?/supervision/' + name)
}
@@ -128,6 +129,7 @@ const getInfo = async () => {
const getFileData = async () => {
detailData.value.otherReports = []
await getFileNameAndFilePath({ filePath: detailData.value.testReport }).then(res => {
detailData.value.keyName = res.data.name
detailData.value.testReport = res.data.url
detailData.value.testReportName = res.data.fileName
})
@@ -137,17 +139,20 @@ const getFileData = async () => {
await getFileNameAndFilePath({
filePath: '/supervision/' + detailData.value.otherReport.split(',')[i]
}).then(res => {
res.data.keyName = res.data.name
detailData.value.otherReports.push(res.data)
})
}
}
await getFileNameAndFilePath({ filePath: detailData.value.supervisionReport }).then(res => {
detailData.value.keyName = res.data.name
detailData.value.supervisionReport = res.data.url
detailData.value.supervisionReportName = res.data.fileName
})
if (props.flag) {
getFileNameAndFilePath({ filePath: detailData.value.reportPath }).then(res => {
detailData.value.keyName = res.data.name
detailData.value.reportPath = res.data.url
detailData.value.reportName = res.data.fileName
})