电能质量异常管理,谐波测试计划管理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

@@ -27,7 +27,7 @@
<el-icon class="elView" v-if="detailData?.reportPaths?.fileName">
<View @click="openFile(detailData?.reportPaths?.fileName)" />
</el-icon>
<a :href="detailData.reportPaths?.url">
<a class="aLoad" @click="download(detailData.reportPaths?.keyName)">
{{ detailData.reportPaths?.fileName }}
</a>
</el-descriptions-item>
@@ -46,6 +46,7 @@ import { propTypes } from '@/utils/propTypes'
import { getInfoById } from '@/api/supervision-boot/cycleDetection/index'
import { getFileNameAndFilePath } from '@/api/system-boot/file'
import { useDictData } from '@/stores/dictData'
import {download} from '@/utils/fileDownLoad'
import { Link, View } from '@element-plus/icons-vue'
const { query } = useRoute() // 查询参数
const openFile = (name: any) => {
@@ -69,6 +70,7 @@ const getInfo = async () => {
detailData.value = res.data
})
await getFileNameAndFilePath({ filePath: detailData.value.checkFilePath }).then((res: any) => {
detailData.value.keyName = res.data.name
detailData.value.reportPaths = res.data
})
} finally {

View File

@@ -339,19 +339,19 @@ const numList = [
const timeIntervalList = [
{
id: 1,
name: '分钟'
name: '1分钟'
},
{
id: 3,
name: '分钟'
name: '3分钟'
},
{
id: 5,
name: '分钟'
name: '5分钟'
},
{
id: 10,
name: '分钟'
name: '10分钟'
}
]
//获取登陆用户姓名和部门

View File

@@ -116,7 +116,7 @@
<el-icon class="elView" v-if="detailData?.mainWiringDiagram.name">
<View @click="openFile(detailData?.mainWiringDiagram.name)" />
</el-icon>
<a target="_blank" :href="detailData?.mainWiringDiagram.url">
<a target="_blank" class="aLoad" @click="download(detailData?.mainWiringDiagram.keyName)">
{{ detailData?.mainWiringDiagram.name }}
</a>
</el-descriptions-item>
@@ -130,6 +130,7 @@ import { propTypes } from '@/utils/propTypes'
import { getTempLineDetailsById } from '@/api/supervision-boot/monitorpoint/index'
import { useDictData } from '@/stores/dictData'
import { getFileNameAndFilePath } from '@/api/system-boot/file'
import {download} from '@/utils/fileDownLoad'
import { Link, View } from '@element-plus/icons-vue'
const openFile = (name: any) => {
window.open(window.location.origin + '/#/previewFile?/supervision/' + name)
@@ -148,19 +149,19 @@ const queryId = query.id as unknown as string // 从 URL 传递过来的 id 编
const timeIntervalList = [
{
id: '1',
name: '分钟'
name: '1分钟'
},
{
id: '3',
name: '分钟'
name: '3分钟'
},
{
id: '5',
name: '分钟'
name: '5分钟'
},
{
id: '10',
name: '分钟'
name: '10分钟'
}
]
//用户状态数组
@@ -238,6 +239,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
if (pathName == 'lineFilePath' && detailData.value.lineFilePath) {
detailData.value.lineFilePath = {
name: res.data.fileName,
keyName: res.data.name,
url: res.data.url
}
}
@@ -245,6 +247,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
else if (pathName == 'mainWiringDiagram' && detailData.value.mainWiringDiagram) {
detailData.value.mainWiringDiagram = {
name: res.data.fileName,
keyName: res.data.name,
url: res.data.url
}
}

View File

@@ -203,7 +203,7 @@
</el-icon>
<a
target="_blank"
:href="detailData?.informationSecurityTestReport?.url"
class="aLoad" @click="download(detailData?.informationSecurityTestReport.keyName)"
v-if="detailData?.informationSecurityTestReport?.name"
>
{{ detailData?.informationSecurityTestReport.name }}
@@ -215,7 +215,7 @@
</el-icon>
<a
target="_blank"
:href="detailData?.acceptanceInspectionReportSingle?.url"
class="aLoad" @click="download(detailData?.acceptanceInspectionReportSingle.keyName)"
v-if="detailData?.acceptanceInspectionReportSingle?.name"
>
{{ detailData?.acceptanceInspectionReportSingle?.name }}
@@ -227,7 +227,7 @@
</el-icon>
<a
target="_blank"
:href="detailData?.acceptanceInspectionReport?.url"
class="aLoad" @click="download(detailData?.acceptanceInspectionReport.keyName)"
v-if="detailData?.acceptanceInspectionReport?.name"
>
{{ detailData?.acceptanceInspectionReport?.name }}
@@ -240,7 +240,7 @@
<a
target="_blank"
v-if="detailData?.typeExperimentReport?.name"
:href="detailData?.typeExperimentReport?.url"
class="aLoad" @click="download(detailData?.typeExperimentReport.keyName)"
>
{{ detailData?.typeExperimentReport?.name }}
</a>
@@ -251,7 +251,7 @@
</el-icon>
<a
target="_blank"
:href="detailData?.factoryInspectionReport?.url"
class="aLoad" @click="download(detailData?.factoryInspectionReport.keyName)"
v-if="detailData?.factoryInspectionReport?.name"
>
{{ detailData?.factoryInspectionReport?.name }}
@@ -263,7 +263,7 @@
</el-icon>
<a
target="_blank"
:href="detailData?.performanceTestReport?.url"
class="aLoad" @click="download(detailData?.performanceTestReport.keyName)"
v-if="detailData?.performanceTestReport?.name"
>
{{ detailData?.performanceTestReport?.name }}
@@ -273,7 +273,7 @@
<el-icon class="elView" v-if="detailData?.otherAttachments?.name">
<View @click="openFile(detailData?.otherAttachments?.name)" />
</el-icon>
<a target="_blank" :href="detailData?.otherAttachments?.url" v-if="detailData?.otherAttachments?.name">
<a target="_blank" class="aLoad" @click="download(detailData?.otherAttachments.keyName)" v-if="detailData?.otherAttachments?.name">
{{ detailData?.otherAttachments?.name }}
</a>
</el-descriptions-item>
@@ -290,6 +290,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'
defineOptions({ name: 'BpmUserReportDetail' })
const openFile = (name: any) => {
window.open(window.location.origin + '/#/previewFile?/supervision/' + name)
@@ -461,6 +462,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
if (pathName == 'informationSecurityTestReport' && detailData.value.informationSecurityTestReport) {
detailData.value.informationSecurityTestReport = {
name: res.data.fileName,
keyName: res.data.name,
url: res.data.url
}
}
@@ -471,6 +473,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
) {
detailData.value.acceptanceInspectionReportSingle = {
name: res.data.fileName,
keyName: res.data.name,
url: res.data.url
}
}
@@ -479,6 +482,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,
url: res.data.url
}
}
@@ -486,6 +490,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,
url: res.data.url
}
}
@@ -493,6 +498,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,
url: res.data.url
}
}
@@ -507,6 +513,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,
url: res.data.url
}
}