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

View File

@@ -192,7 +192,7 @@
<el-icon class="elView" v-if="proviteData?.feasibilityReport?.name">
<View @click="openFile(proviteData?.feasibilityReport?.name)" />
</el-icon>
<a target="_blank" :href="proviteData.feasibilityReport?.url" rel="nofollow">
<a target="_blank" class="aLoad" @click="download(proviteData.feasibilityReport.keyName)" rel="nofollow">
{{ proviteData.feasibilityReport?.name }}
</a>
</span>
@@ -205,7 +205,7 @@
<el-icon class="elView" v-if="proviteData?.feasibilityReport?.name">
<View @click="openFile(proviteData?.feasibilityReport?.name)" />
</el-icon>
<a target="_blank" :href="proviteData.feasibilityReport?.url">
<a target="_blank" class="aLoad" @click="download(proviteData.feasibilityReport.keyName)">
{{ proviteData.feasibilityReport?.name }}
</a>
</span>
@@ -213,7 +213,7 @@
<el-icon class="elView" v-if="proviteData?.feasibilityReport?.name">
<View @click="openFile(proviteData?.feasibilityReport?.name)" />
</el-icon>
<a target="_blank" :href="proviteData.feasibilityReport?.url">
<a target="_blank" class="aLoad" @click="download(proviteData.feasibilityReport.keyName)">
{{ proviteData.feasibilityReport?.name }}
</a>
</span>
@@ -223,7 +223,7 @@
<View @click="openFile(proviteData?.preliminaryDesignDescription?.name)" />
</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>
@@ -231,7 +231,7 @@
<el-icon class="elView" v-if="proviteData?.predictionEvaluationReport?.name">
<View @click="openFile(proviteData?.predictionEvaluationReport?.name)" />
</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>
@@ -239,7 +239,7 @@
<el-icon class="elView" v-if="proviteData?.predictionEvaluationReviewOpinions?.name">
<View @click="openFile(proviteData?.predictionEvaluationReviewOpinions?.name)" />
</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>
@@ -247,7 +247,7 @@
<el-icon class="elView" v-if="proviteData?.substationMainWiringDiagram?.name">
<View @click="openFile(proviteData?.substationMainWiringDiagram?.name)" />
</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>
@@ -255,7 +255,7 @@
<el-icon class="elView" v-if="proviteData?.sensitiveDevices?.name">
<View @click="openFile(proviteData?.sensitiveDevices?.name)" />
</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>
@@ -263,7 +263,7 @@
<el-icon class="elView" v-if="proviteData?.antiInterferenceReport?.name">
<View @click="openFile(proviteData?.antiInterferenceReport?.name)" />
</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>
@@ -271,7 +271,7 @@
<el-icon class="elView" v-if="proviteData?.powerQualityReport?.name">
<View @click="openFile(proviteData?.powerQualityReport?.name)" />
</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>
@@ -280,7 +280,7 @@
<el-icon class="elView" v-if="proviteData?.additionalAttachments?.name">
<View @click="openFile(proviteData?.additionalAttachments?.name)" />
</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>
@@ -530,7 +530,7 @@
<el-icon class="elView" v-if="proviteData1?.feasibilityReport?.name">
<View @click="openFile(proviteData1?.feasibilityReport?.name)" />
</el-icon>
<a target="_blank" :href="proviteData1.feasibilityReport?.url" rel="nofollow">
<a target="_blank" class="aLoad" @click="download(proviteData.feasibilityReport.keyName)" rel="nofollow">
{{ proviteData1.feasibilityReport?.name }}
</a>
</span>
@@ -543,7 +543,7 @@
<el-icon class="elView" v-if="proviteData1?.feasibilityReport?.name">
<View @click="openFile(proviteData1?.feasibilityReport?.name)" />
</el-icon>
<a target="_blank" :href="proviteData1.feasibilityReport?.url">
<a target="_blank" class="aLoad" @click="download(proviteData.feasibilityReport.keyName)">
{{ proviteData1.feasibilityReport?.name }}
</a>
</span>
@@ -553,7 +553,7 @@
<el-icon class="elView" v-if="proviteData1?.feasibilityReport?.name">
<View @click="openFile(proviteData1?.feasibilityReport?.name)" />
</el-icon>
<a target="_blank" :href="proviteData1.feasibilityReport?.url">
<a target="_blank" class="aLoad" @click="download(proviteData.feasibilityReport.keyName)">
{{ proviteData1.feasibilityReport?.name }}
</a>
</span>
@@ -565,7 +565,7 @@
<View @click="openFile(proviteData1?.preliminaryDesignDescription?.name)" />
</el-icon>
<a target="_blank" :href="proviteData1?.preliminaryDesignDescription?.url">
<a target="_blank" class="aLoad" @click="download(proviteData.preliminaryDesignDescription.keyName)">
{{ proviteData1?.preliminaryDesignDescription?.name }}
</a>
</el-descriptions-item>
@@ -575,7 +575,7 @@
<el-icon class="elView" v-if="proviteData1?.predictionEvaluationReport?.name">
<View @click="openFile(proviteData1?.predictionEvaluationReport?.name)" />
</el-icon>
<a target="_blank" :href="proviteData1?.predictionEvaluationReport?.url">
<a target="_blank" class="aLoad" @click="download(proviteData.predictionEvaluationReport.keyName)">
{{ proviteData1?.predictionEvaluationReport?.name }}
</a>
</el-descriptions-item>
@@ -585,7 +585,7 @@
<el-icon class="elView" v-if="proviteData1?.predictionEvaluationReviewOpinions?.name">
<View @click="openFile(proviteData1?.predictionEvaluationReviewOpinions?.name)" />
</el-icon>
<a target="_blank" :href="proviteData1?.predictionEvaluationReviewOpinions?.url">
<a target="_blank" class="aLoad" @click="download(proviteData.predictionEvaluationReviewOpinions.keyName)">
{{ proviteData1?.predictionEvaluationReviewOpinions?.name }}
</a>
</el-descriptions-item>
@@ -595,7 +595,7 @@
<el-icon class="elView" v-if="proviteData1?.substationMainWiringDiagram?.name">
<View @click="openFile(proviteData1?.substationMainWiringDiagram?.name)" />
</el-icon>
<a target="_blank" :href="proviteData1?.substationMainWiringDiagram?.url">
<a target="_blank" class="aLoad" @click="download(proviteData.substationMainWiringDiagram.keyName)">
{{ proviteData1?.substationMainWiringDiagram?.name }}
</a>
</el-descriptions-item>
@@ -605,7 +605,7 @@
<el-icon class="elView" v-if="proviteData1?.sensitiveDevices?.name">
<View @click="openFile(proviteData1?.sensitiveDevices?.name)" />
</el-icon>
<a target="_blank" :href="proviteData1?.sensitiveDevices?.url">
<a target="_blank" class="aLoad" @click="download(proviteData.sensitiveDevices.keyName)">
{{ proviteData1?.sensitiveDevices?.name }}
</a>
</el-descriptions-item>
@@ -615,7 +615,7 @@
<el-icon class="elView" v-if="proviteData1?.antiInterferenceReport?.name">
<View @click="openFile(proviteData1?.antiInterferenceReport?.name)" />
</el-icon>
<a target="_blank" :href="proviteData1?.antiInterferenceReport?.url">
<a target="_blank" class="aLoad" @click="download(proviteData.antiInterferenceReport.keyName)">
{{ proviteData1?.antiInterferenceReport?.name }}
</a>
</el-descriptions-item>
@@ -625,7 +625,7 @@
<el-icon class="elView" v-if="proviteData1?.powerQualityReport?.name">
<View @click="openFile(proviteData1?.powerQualityReport?.name)" />
</el-icon>
<a target="_blank" :href="proviteData1?.powerQualityReport?.url">
<a target="_blank" class="aLoad" @click="download(proviteData.powerQualityReport.keyName)">
{{ proviteData1?.powerQualityReport?.name }}
</a>
</el-descriptions-item>
@@ -636,7 +636,7 @@
<el-icon class="elView" v-if="proviteData1?.additionalAttachments?.name">
<View @click="openFile(proviteData1?.additionalAttachments?.name)" />
</el-icon>
<a target="_blank" :href="proviteData1?.additionalAttachments?.url">
<a target="_blank" class="aLoad" @click="download(proviteData.additionalAttachments.keyName)">
{{ proviteData1?.additionalAttachments?.name }}
</a>
</el-descriptions-item>
@@ -655,6 +655,7 @@ import { useDictData } from '@/stores/dictData'
import { getFileNameAndFilePath } from '@/api/system-boot/file'
import { Link, View } from '@element-plus/icons-vue'
import PreviewFile from '@/components/PreviewFile/index.vue'
import { download} from '@/utils/fileDownLoad'
defineOptions({ name: 'BpmUserReportDetail' })
const { query } = useRoute() // 查询参数
@@ -959,6 +960,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
if (pathName == 'feasibilityReport' && proviteData.value.feasibilityReport) {
proviteData.value.feasibilityReport = {
name: res.data.fileName,
keyName: res.data.name,
url: res.data.url
}
}
@@ -966,6 +968,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
else if (pathName == 'preliminaryDesignDescription' && proviteData.value.preliminaryDesignDescription) {
proviteData.value.preliminaryDesignDescription = {
name: res.data.fileName,
keyName: res.data.name,
url: res.data.url
}
}
@@ -973,6 +976,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
else if (pathName == 'predictionEvaluationReport' && proviteData.value.predictionEvaluationReport) {
proviteData.value.predictionEvaluationReport = {
name: res.data.fileName,
keyName: res.data.name,
url: res.data.url
}
}
@@ -983,6 +987,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
) {
proviteData.value.predictionEvaluationReviewOpinions = {
name: res.data.fileName,
keyName: res.data.name,
url: res.data.url
}
}
@@ -990,6 +995,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
else if (pathName == 'substationMainWiringDiagram' && proviteData.value.substationMainWiringDiagram) {
proviteData.value.substationMainWiringDiagram = {
name: res.data.fileName,
keyName: res.data.name,
url: res.data.url
}
}
@@ -997,6 +1003,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
else if (pathName == 'sensitiveDevices' && proviteData.value.sensitiveDevices) {
proviteData.value.sensitiveDevices = {
name: res.data.fileName,
keyName: res.data.name,
url: res.data.url
}
}
@@ -1004,6 +1011,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
else if (pathName == 'antiInterferenceReport' && proviteData.value.antiInterferenceReport) {
proviteData.value.antiInterferenceReport = {
name: res.data.fileName,
keyName: res.data.name,
url: res.data.url
}
}
@@ -1011,6 +1019,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
else if (pathName == 'powerQualityReport' && proviteData.value.powerQualityReport) {
proviteData.value.powerQualityReport = {
name: res.data.fileName,
keyName: res.data.name,
url: res.data.url
}
}
@@ -1018,6 +1027,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
else if (pathName == 'additionalAttachments' && proviteData.value.additionalAttachments) {
proviteData.value.additionalAttachments = {
name: res.data.fileName,
keyName: res.data.name,
url: res.data.url
}
}
@@ -1032,6 +1042,7 @@ const getFileNamePath1 = async (val: any, pathName: any) => {
if (pathName == 'feasibilityReport' && proviteData1.value.feasibilityReport) {
proviteData1.value.feasibilityReport = {
name: res.data.fileName,
keyName: res.data.name,
url: res.data.url
}
}
@@ -1039,6 +1050,7 @@ const getFileNamePath1 = async (val: any, pathName: any) => {
else if (pathName == 'preliminaryDesignDescription' && proviteData1.value.preliminaryDesignDescription) {
proviteData1.value.preliminaryDesignDescription = {
name: res.data.fileName,
keyName: res.data.name,
url: res.data.url
}
}
@@ -1046,6 +1058,7 @@ const getFileNamePath1 = async (val: any, pathName: any) => {
else if (pathName == 'predictionEvaluationReport' && proviteData1.value.predictionEvaluationReport) {
proviteData1.value.predictionEvaluationReport = {
name: res.data.fileName,
keyName: res.data.name,
url: res.data.url
}
}
@@ -1056,6 +1069,7 @@ const getFileNamePath1 = async (val: any, pathName: any) => {
) {
proviteData1.value.predictionEvaluationReviewOpinions = {
name: res.data.fileName,
keyName: res.data.name,
url: res.data.url
}
}
@@ -1063,6 +1077,7 @@ const getFileNamePath1 = async (val: any, pathName: any) => {
else if (pathName == 'substationMainWiringDiagram' && proviteData1.value.substationMainWiringDiagram) {
proviteData1.value.substationMainWiringDiagram = {
name: res.data.fileName,
keyName: res.data.name,
url: res.data.url
}
}
@@ -1070,6 +1085,7 @@ const getFileNamePath1 = async (val: any, pathName: any) => {
else if (pathName == 'sensitiveDevices' && proviteData1.value.sensitiveDevices) {
proviteData1.value.sensitiveDevices = {
name: res.data.fileName,
keyName: res.data.name,
url: res.data.url
}
}
@@ -1077,6 +1093,7 @@ const getFileNamePath1 = async (val: any, pathName: any) => {
else if (pathName == 'antiInterferenceReport' && proviteData1.value.antiInterferenceReport) {
proviteData1.value.antiInterferenceReport = {
name: res.data.fileName,
keyName: res.data.name,
url: res.data.url
}
}
@@ -1084,6 +1101,7 @@ const getFileNamePath1 = async (val: any, pathName: any) => {
else if (pathName == 'powerQualityReport' && proviteData1.value.powerQualityReport) {
proviteData1.value.powerQualityReport = {
name: res.data.fileName,
keyName: res.data.name,
url: res.data.url
}
}
@@ -1091,6 +1109,7 @@ const getFileNamePath1 = async (val: any, pathName: any) => {
else if (pathName == 'additionalAttachments' && proviteData1.value.additionalAttachments) {
proviteData1.value.additionalAttachments = {
name: res.data.fileName,
keyName: res.data.name,
url: res.data.url
}
}

View File

@@ -237,7 +237,7 @@
<el-icon class="elView" v-if="proviteData?.feasibilityReport?.name">
<View @click="openFile(proviteData?.feasibilityReport?.name)" />
</el-icon>
<a target="_blank" :href="proviteData?.feasibilityReport?.url" rel="nofollow">
<a target="_blank" class="aLoad" @click="download(proviteData.feasibilityReport.keyName)" rel="nofollow">
{{ proviteData?.feasibilityReport?.name }}
</a>
</span>
@@ -252,7 +252,7 @@
<el-icon class="elView" v-if="proviteData?.feasibilityReport?.name">
<View @click="openFile(proviteData?.feasibilityReport?.name)" />
</el-icon>
<a target="_blank" :href="proviteData?.feasibilityReport?.url">
<a target="_blank" class="aLoad" @click="download(proviteData.feasibilityReport.keyName)">
{{ proviteData?.feasibilityReport?.name }}
</a>
</span>
@@ -260,7 +260,7 @@
<el-icon class="elView" v-if="proviteData?.feasibilityReport?.name">
<View @click="openFile(proviteData?.feasibilityReport?.name)" />
</el-icon>
<a target="_blank" :href="proviteData?.feasibilityReport?.url">
<a target="_blank" class="aLoad" @click="download(proviteData.feasibilityReport.keyName)">
{{ proviteData?.feasibilityReport?.name }}
</a>
</span>
@@ -270,7 +270,7 @@
<View @click="openFile(proviteData?.preliminaryDesignDescription?.name)" />
</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>
@@ -278,7 +278,7 @@
<el-icon class="elView" v-if="proviteData?.predictionEvaluationReport?.name">
<View @click="openFile(proviteData?.predictionEvaluationReport?.name)" />
</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>
@@ -286,7 +286,7 @@
<el-icon class="elView" v-if="proviteData?.predictionEvaluationReviewOpinions?.name">
<View @click="openFile(proviteData?.predictionEvaluationReviewOpinions?.name)" />
</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>
@@ -297,7 +297,7 @@
<el-icon class="elView" v-if="proviteData?.substationMainWiringDiagram?.name">
<View @click="openFile(proviteData?.substationMainWiringDiagram?.name)" />
</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>
@@ -305,7 +305,7 @@
<el-icon class="elView" v-if="proviteData?.sensitiveDevices?.name">
<View @click="openFile(proviteData?.sensitiveDevices?.name)" />
</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>
@@ -313,7 +313,7 @@
<el-icon class="elView" v-if="proviteData?.antiInterferenceReport?.name">
<View @click="openFile(proviteData?.antiInterferenceReport?.name)" />
</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>
@@ -321,7 +321,7 @@
<el-icon class="elView" v-if="proviteData?.powerQualityReport?.name">
<View @click="openFile(proviteData?.powerQualityReport?.name)" />
</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>
@@ -332,7 +332,7 @@
<el-icon class="elView" v-if="proviteData?.additionalAttachments?.name">
<View @click="openFile(proviteData?.additionalAttachments?.name)" />
</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>
@@ -342,7 +342,7 @@
<el-icon class="elView" v-if="item.name">
<View @click="openFile(item.name)" />
</el-icon>
<a target="_blank" :href="item.url">
<a target="_blank" class="aLoad" @click="download(item.keyName)">
{{ item.name }}
</a>
</div>
@@ -352,7 +352,7 @@
<el-icon class="elView" v-if="item.name">
<View @click="openFile(item.name)" />
</el-icon>
<a target="_blank" :href="item.url">
<a target="_blank" class="aLoad" @click="download(item.keyName)" >
{{ item.name }}
</a>
</div>
@@ -361,7 +361,7 @@
<el-icon class="elView" v-if="form.informationSecurityTestReport[0]?.name">
<View @click="openFile(form.informationSecurityTestReport[0]?.name)" />
</el-icon>
<a target="_blank" :href="form.informationSecurityTestReport[0]?.url">
<a target="_blank" class="aLoad" @click="download(proviteData.predictionEvaluationReviewOpinions.keyName)" >
{{ form.informationSecurityTestReport[0]?.name }}
</a>
</el-descriptions-item>
@@ -370,7 +370,7 @@
<el-icon class="elView" v-if="item.name">
<View @click="openFile(item.name)" />
</el-icon>
<a target="_blank" :href="item.url">
<a target="_blank" class="aLoad" @click="download(item.keyName)" >
{{ item.name }}
</a>
</div>
@@ -380,7 +380,7 @@
<el-icon class="elView" v-if="item.name">
<View @click="openFile(item.name)" />
</el-icon>
<a target="_blank" :href="item.url">
<a target="_blank" class="aLoad" @click="download(item.keyName)">
{{ item.name }}
</a>
</div>
@@ -390,7 +390,7 @@
<el-icon class="elView" v-if="form.acceptanceInspectionReportSingle[0]?.name">
<View @click="openFile(form.acceptanceInspectionReportSingle[0]?.name)" />
</el-icon>
<a target="_blank" :href="form.acceptanceInspectionReportSingle[0]?.url">
<a target="_blank" class="aLoad" @click="download(form.acceptanceInspectionReportSingle[0]?.keyName)">
{{ form.acceptanceInspectionReportSingle[0]?.name }}
</a>
</el-descriptions-item>
@@ -399,7 +399,7 @@
<el-icon class="elView" v-if="form.acceptanceInspectionReport[0]?.name">
<View @click="openFile(form.acceptanceInspectionReport[0]?.name)" />
</el-icon>
<a target="_blank" :href="form.acceptanceInspectionReport[0]?.url">
<a target="_blank" class="aLoad" @click="download(form.acceptanceInspectionReport[0]?.keyName )">
{{ form.acceptanceInspectionReport[0]?.name }}
</a>
</el-descriptions-item>
@@ -407,7 +407,7 @@
<el-icon class="elView" v-if="form.typeExperimentReport[0]?.name">
<View @click="openFile(form.typeExperimentReport[0]?.name)" />
</el-icon>
<a target="_blank" :href="form.typeExperimentReport[0]?.url">
<a target="_blank" class="aLoad" @click="download(form.typeExperimentReport[0]?.keyName)">
{{ form.typeExperimentReport[0]?.name }}
</a>
</el-descriptions-item>
@@ -416,7 +416,7 @@
<el-icon class="elView" v-if="form.factoryInspectionReport[0]?.name">
<View @click="openFile(form.factoryInspectionReport[0]?.name)" />
</el-icon>
<a target="_blank" :href="form.factoryInspectionReport[0]?.url">
<a target="_blank" class="aLoad" @click="download(form.factoryInspectionReport[0]?.keyName)">
{{ form.factoryInspectionReport[0]?.name }}
</a>
</el-descriptions-item>
@@ -424,7 +424,7 @@
<el-icon class="elView" v-if="form.performanceTestReport[0]?.name">
<View @click="openFile(form.performanceTestReport[0]?.name)" />
</el-icon>
<a target="_blank" :href="form.performanceTestReport[0]?.url">
<a target="_blank" class="aLoad" @click="download(form.performanceTestReport[0]?.keyName)">
{{ form.performanceTestReport[0]?.name }}
</a>
</el-descriptions-item>
@@ -432,7 +432,7 @@
<el-icon class="elView" v-if="form.mainWiringDiagram[0]?.name">
<View @click="openFile(form.mainWiringDiagram[0]?.name)" />
</el-icon>
<a target="_blank" :href="form.mainWiringDiagram[0]?.url">
<a target="_blank" class="aLoad" @click="download(form.mainWiringDiagram[0]?.keyName)">
{{ form.mainWiringDiagram[0]?.name }}
</a>
</el-descriptions-item>
@@ -440,7 +440,7 @@
<el-icon class="elView" v-if="form.runTheReport[0]?.name">
<View @click="openFile(form.runTheReport[0]?.name)" />
</el-icon>
<a target="_blank" :href="form.runTheReport[0]?.url">
<a target="_blank" class="aLoad" @click="download(form.runTheReport[0]?.keyName)">
{{ form.runTheReport[0]?.name }}
</a>
</el-descriptions-item>
@@ -460,6 +460,7 @@ import { Link, View } from '@element-plus/icons-vue'
import PreviewFile from '@/components/PreviewFile/index.vue'
import { getByDeptDevLine } from '@/api/supervision-boot/interfere/index'
import { addOrUpdateFile, getFileById } from '@/api/supervision-boot/interfere/index'
import {download} from '@/utils/fileDownLoad'
defineOptions({ name: 'BpmUserReportDetail' })
const { query } = useRoute() // 查询参数
@@ -579,6 +580,8 @@ const getInfo = async () => {
} finally {
detailLoading.value = false
}
console.log(form.value)
if (props.openType == 'sourcesOfInterference') {
queryFiles()
}
@@ -776,13 +779,16 @@ const getFileNamePath = async (val: any, pathName: any) => {
if (pathName == 'feasibilityReport' && proviteData.value.feasibilityReport) {
proviteData.value.feasibilityReport = {
name: res.data.fileName,
keyName: res.data.name,
url: res.data.url
}
}
//项目初步设计说明书
else if (pathName == 'preliminaryDesignDescription' && proviteData.value.preliminaryDesignDescription) {
proviteData.value.preliminaryDesignDescription = {
name: res.data.fileName,
keyName: res.data.name,
url: res.data.url
}
}
@@ -790,6 +796,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
else if (pathName == 'predictionEvaluationReport' && proviteData.value.predictionEvaluationReport) {
proviteData.value.predictionEvaluationReport = {
name: res.data.fileName,
keyName: res.data.name,
url: res.data.url
}
}
@@ -800,6 +807,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
) {
proviteData.value.predictionEvaluationReviewOpinions = {
name: res.data.fileName,
keyName: res.data.name,
url: res.data.url
}
}
@@ -807,6 +815,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
else if (pathName == 'substationMainWiringDiagram' && proviteData.value.substationMainWiringDiagram) {
proviteData.value.substationMainWiringDiagram = {
name: res.data.fileName,
keyName: res.data.name,
url: res.data.url
}
}
@@ -814,6 +823,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
else if (pathName == 'sensitiveDevices' && proviteData.value.sensitiveDevices) {
proviteData.value.sensitiveDevices = {
name: res.data.fileName,
keyName: res.data.name,
url: res.data.url
}
}
@@ -821,6 +831,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
else if (pathName == 'antiInterferenceReport' && proviteData.value.antiInterferenceReport) {
proviteData.value.antiInterferenceReport = {
name: res.data.fileName,
keyName: res.data.name,
url: res.data.url
}
}
@@ -828,6 +839,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
else if (pathName == 'powerQualityReport' && proviteData.value.powerQualityReport) {
proviteData.value.powerQualityReport = {
name: res.data.fileName,
keyName: res.data.name,
url: res.data.url
}
}
@@ -835,6 +847,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
else if (pathName == 'additionalAttachments' && proviteData.value.additionalAttachments) {
proviteData.value.additionalAttachments = {
name: res.data.fileName,
keyName: res.data.name,
url: res.data.url
}
}
@@ -842,11 +855,13 @@ const getFileNamePath = async (val: any, pathName: any) => {
if (pathName == 'netInReport') {
netInReportList.value.push({
name: res.data.fileName,
keyName: res.data.name,
url: res.data.url
})
} else if (pathName == 'governReport') {
governReportList.value.push({
name: res.data.fileName,
keyName: res.data.name,
url: res.data.url
})
}
@@ -855,8 +870,10 @@ const getFileNamePath = async (val: any, pathName: any) => {
}
const getFileNamePaths = async (val: any, pathName: any) => {
let data = val.split(',')
for (let i = 0; i < data.length; i++) {
await getFileNameAndFilePath({ filePath: '/supervision/' + data[i] }).then(res => {
res.data.keyName = res.data.name
res.data.name = res.data.fileName
form.value[pathName].push(res.data)
})