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

@@ -177,12 +177,12 @@
})?.name
}}
</el-descriptions-item>
<el-descriptions-item label="可研报告">
<el-descriptions-item label="可研报告11">
<span v-if="detailData.userType == 0 || detailData.userType == 1">
<el-icon class="elView" v-if="proviteData?.feasibilityReport.name">
<View @click="openFile(proviteData.feasibilityReport.key)" />
</el-icon>
<a target="_blank" :href="proviteData.feasibilityReport.url">
<a target="_blank" class="aLoad" @click="download(proviteData.feasibilityReport.keyName)">
{{ proviteData.feasibilityReport.name }}
</a>
</span>
@@ -197,7 +197,7 @@
<el-icon class="elView" v-if="proviteData?.feasibilityReport.name">
<View @click="openFile(proviteData.feasibilityReport.key)" />
</el-icon>
<a target="_blank" :href="proviteData.feasibilityReport.url">
<a target="_blank" class="aLoad" @click="download(proviteData.feasibilityReport.keyName)">
{{ proviteData.feasibilityReport.name }}
</a>
</span>
@@ -205,7 +205,7 @@
<el-icon class="elView" v-if="proviteData?.feasibilityReport.name">
<View @click="openFile(proviteData.feasibilityReport.key)" />
</el-icon>
<a target="_blank" :href="proviteData.feasibilityReport.url">
<a target="_blank" class="aLoad" @click="download(proviteData.feasibilityReport.keyName)">
{{ proviteData.feasibilityReport.name }}
</a>
</span>
@@ -214,7 +214,7 @@
<el-icon class="elView" v-if="proviteData?.preliminaryDesignDescription.name">
<View @click="openFile(proviteData?.preliminaryDesignDescription.key)" />
</el-icon>
<a target="_blank" :href="proviteData?.preliminaryDesignDescription.url">
<a target="_blank" class="aLoad" @click="download(proviteData.preliminaryDesignDescription.keyName)">
{{ proviteData?.preliminaryDesignDescription.name }}
</a>
</el-descriptions-item>
@@ -222,7 +222,7 @@
<el-icon class="elView" v-if="proviteData?.predictionEvaluationReport.name">
<View @click="openFile(proviteData?.predictionEvaluationReport.key)" />
</el-icon>
<a target="_blank" :href="proviteData?.predictionEvaluationReport.url">
<a target="_blank" class="aLoad" @click="download(proviteData.predictionEvaluationReport.keyName)">
{{ proviteData?.predictionEvaluationReport.name }}
</a>
</el-descriptions-item>
@@ -230,7 +230,7 @@
<el-icon class="elView" v-if="proviteData?.predictionEvaluationReviewOpinions.name">
<View @click="openFile(proviteData?.predictionEvaluationReviewOpinions.key)" />
</el-icon>
<a target="_blank" :href="proviteData?.predictionEvaluationReviewOpinions.url">
<a target="_blank" class="aLoad" @click="download(proviteData.predictionEvaluationReviewOpinions.keyName)">
{{ proviteData?.predictionEvaluationReviewOpinions.name }}
</a>
</el-descriptions-item>
@@ -241,7 +241,7 @@
<el-icon class="elView" v-if="proviteData?.substationMainWiringDiagram.name">
<View @click="openFile(proviteData?.substationMainWiringDiagram.key)" />
</el-icon>
<a target="_blank" :href="proviteData?.substationMainWiringDiagram.url">
<a target="_blank" class="aLoad" @click="download(proviteData.substationMainWiringDiagram.keyName)">
{{ proviteData?.substationMainWiringDiagram.name }}
</a>
</el-descriptions-item>
@@ -249,7 +249,7 @@
<el-icon class="elView" v-if="proviteData?.sensitiveDevices.name">
<View @click="openFile(proviteData?.sensitiveDevices.key)" />
</el-icon>
<a target="_blank" :href="proviteData?.sensitiveDevices.url">
<a target="_blank" class="aLoad" @click="download(proviteData.sensitiveDevices.keyName)">
{{ proviteData?.sensitiveDevices.name }}
</a>
</el-descriptions-item>
@@ -257,7 +257,7 @@
<el-icon class="elView" v-if="proviteData?.antiInterferenceReport.name">
<View @click="openFile(proviteData?.antiInterferenceReport.key)" />
</el-icon>
<a target="_blank" :href="proviteData?.antiInterferenceReport.url">
<a target="_blank" class="aLoad" @click="download(proviteData.antiInterferenceReport.keyName)">
{{ proviteData?.antiInterferenceReport.name }}
</a>
</el-descriptions-item>
@@ -265,7 +265,7 @@
<el-icon class="elView" v-if="proviteData?.powerQualityReport.name">
<View @click="openFile(proviteData?.powerQualityReport.key)" />
</el-icon>
<a target="_blank" :href="proviteData?.powerQualityReport.url">
<a target="_blank" class="aLoad" @click="download(proviteData.powerQualityReport.keyName)">
{{ proviteData?.powerQualityReport.name }}
</a>
</el-descriptions-item>
@@ -274,7 +274,7 @@
<el-icon class="elView" v-if="item.name">
<View @click="openFile(item.key)" />
</el-icon>
<a target="_blank" :href="item.url">
<a target="_blank" class="aLoad" @click="download(item.keyName)">
{{ item.name }}
</a>
</div>
@@ -284,7 +284,7 @@
<el-icon class="elView" v-if="proviteData?.additionalAttachments.name">
<View @click="openFile(proviteData?.additionalAttachments.key)" />
</el-icon>
<a target="_blank" :href="proviteData?.additionalAttachments.url">
<a target="_blank" class="aLoad" @click="download(proviteData.additionalAttachments.keyName)">
{{ proviteData?.additionalAttachments.name }}
</a>
</el-descriptions-item>
@@ -307,7 +307,7 @@
<el-icon class="elView" v-if="proviteData?.otherReport.name">
<View @click="openFile(proviteData?.otherReport.key)" />
</el-icon>
<a target="_blank" :href="proviteData?.otherReport.url">{{ proviteData?.otherReport.name }}</a>
<a target="_blank" class="aLoad" @click="download(proviteData.otherReport.keyName)">{{ proviteData?.otherReport.name }}</a>
</el-descriptions-item>
</el-descriptions>
</div>
@@ -320,9 +320,10 @@ import { propTypes } from '@/utils/propTypes'
import { getUserReportById } from '@/api/supervision-boot/userReport/form'
import { getDictTreeById } from '@/api/system-boot/dictTree'
import { useDictData } from '@/stores/dictData'
import { getFileNameAndFilePath } from '@/api/system-boot/file'
import { Link, View } from '@element-plus/icons-vue'
import {getFileNameAndFilePath } from '@/api/system-boot/file'
import { Key, Link, View } from '@element-plus/icons-vue'
import { userReportGoNetById } from '@/api/supervision-boot/interfere'
import {download} from '@/utils/fileDownLoad'
// import el-descriptions-item from './components/detailsItem.vue'
defineOptions({ name: 'BpmUserReportDetail' })
const openFile = (name: any) => {
@@ -494,6 +495,7 @@ const getProviteData = async () => {
})
}
}
//根据文件名请求
const getFileNamePath = async (val: any, pathName: any) => {
await getFileNameAndFilePath({ filePath: val }).then(res => {
@@ -503,6 +505,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
proviteData.value.feasibilityReport = {
name: res.data.fileName,
key: val,
keyName: res.data.name,
url: res.data.url
}
}
@@ -511,6 +514,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
proviteData.value.preliminaryDesignDescription = {
name: res.data.fileName,
key: val,
keyName: res.data.name,
url: res.data.url
}
}
@@ -519,6 +523,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
proviteData.value.predictionEvaluationReport = {
name: res.data.fileName,
key: val,
KeyName: res.data.name,
url: res.data.url
}
}
@@ -530,6 +535,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
proviteData.value.predictionEvaluationReviewOpinions = {
name: res.data.fileName,
key: val,
KeyName: res.data.name,
url: res.data.url
}
}
@@ -538,6 +544,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
proviteData.value.substationMainWiringDiagram = {
name: res.data.fileName,
key: val,
KeyName: res.data.name,
url: res.data.url
}
}
@@ -546,6 +553,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
proviteData.value.sensitiveDevices = {
name: res.data.fileName,
key: val,
KeyName: res.data.name,
url: res.data.url
}
}
@@ -554,6 +562,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
proviteData.value.antiInterferenceReport = {
name: res.data.fileName,
key: val,
KeyName: res.data.name,
url: res.data.url
}
}
@@ -562,6 +571,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
proviteData.value.powerQualityReport = {
name: res.data.fileName,
key: val,
KeyName: res.data.name,
url: res.data.url
}
}
@@ -570,6 +580,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
proviteData.value.additionalAttachments = {
name: res.data.fileName,
key: val,
KeyName: res.data.name,
url: res.data.url
}
}
@@ -579,12 +590,14 @@ const getFileNamePath = async (val: any, pathName: any) => {
proviteData.value.otherReport = {
name: res.data.fileName,
key: val,
KeyName: res.data.name,
url: res.data.url
}
} else if (pathName == 'netInReport') {
netInReportList.value.push({
name: res.data.fileName,
key: val,
KeyName: res.data.name,
url: res.data.url
})
}