电能质量异常管理,谐波测试计划管理bug修改
This commit is contained in:
@@ -1,11 +1,13 @@
|
|||||||
<template>
|
<template>
|
||||||
<div style="overflow: auto; height: 100vh">
|
<div style="overflow: auto; height: 100vh" v-if="flag">
|
||||||
<vue-office-docx v-if="url.includes('.doc') || url.includes('.docx')" :src="url" />
|
<vue-office-docx v-if="urlName.includes('.doc') || urlName.includes('.docx')" :src="url" />
|
||||||
<vue-office-excel v-if="url.includes('.xls') || url.includes('.xlsx')" :src="url" :options="excelOptions" />
|
<vue-office-excel v-if="urlName.includes('.xls') || urlName.includes('.xlsx')" :src="url" :options="excelOptions" />
|
||||||
<!-- <vue-office-pdf v-if="url.includes('.pdf')" :src="url" /> -->
|
<!-- <vue-office-pdf v-if="urlName.includes('.pdf')" :src="url" /> -->
|
||||||
<iframe v-if="url.includes('.pdf')" :src="url" style="width: 100%; height: 99%"></iframe>
|
<iframe v-if="urlName.includes('.pdf')" :src="url" style="width: 100%; height: 99%"></iframe>
|
||||||
<img v-if="url.includes('.png') || url.includes('.jpg') || url.includes('.gif') || url.includes('.bmp')"
|
<img
|
||||||
:src="url" />
|
v-if="urlName.includes('.png') || urlName.includes('.jpg') || urlName.includes('.gif') || urlName.includes('.bmp')"
|
||||||
|
:src="url"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
@@ -24,17 +26,50 @@ const VITE_FLAG = import.meta.env.VITE_NAME == 'jibei'
|
|||||||
// const url = 'http://192.168.1.22:9009/excelreport' + currentRoute.value.href?.split('?')[1]
|
// const url = 'http://192.168.1.22:9009/excelreport' + currentRoute.value.href?.split('?')[1]
|
||||||
const url = ref('')
|
const url = ref('')
|
||||||
const excelOptions = ref({})
|
const excelOptions = ref({})
|
||||||
if(VITE_FLAG){
|
const urlName = ref('')
|
||||||
url.value = '/api-docx/excelreport' + currentRoute.value?.href?.split('?')[1]
|
const flag = ref(false)
|
||||||
excelOptions.value = ref({
|
const init = () => {
|
||||||
xls: currentRoute.value.href?.split('?')[1].split('.')[1] == 'xls' ? true : false
|
flag.value = false
|
||||||
|
let urls = currentRoute.value?.href?.split('?')[1]
|
||||||
|
urlName.value = urls
|
||||||
|
downloadFile({ filePath: urls }).then((res: any) => {
|
||||||
|
let blob = new Blob([res], {
|
||||||
|
type: urls.includes('.pdf')
|
||||||
|
? 'application/pdf'
|
||||||
|
: urls.includes('.zip')
|
||||||
|
? 'application/zip'
|
||||||
|
: urls.includes('.doc')
|
||||||
|
? 'application/msword'
|
||||||
|
: urls.includes('.docx')
|
||||||
|
? 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'
|
||||||
|
: urls.includes('.xls')
|
||||||
|
? 'application/vnd.ms-excel'
|
||||||
|
: urls.includes('.xlsx')
|
||||||
|
? 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
|
||||||
|
: urls.includes('.png')
|
||||||
|
? 'image/png'
|
||||||
|
: urls.includes('.jpeg')
|
||||||
|
? 'image/jpeg'
|
||||||
|
: urls.includes('.jpg')
|
||||||
|
? 'image/jpg'
|
||||||
|
: ''
|
||||||
|
})
|
||||||
|
url.value = window.URL.createObjectURL(blob)
|
||||||
|
flag.value = true
|
||||||
})
|
})
|
||||||
}else{
|
|
||||||
//下载
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
// if(VITE_FLAG){
|
||||||
|
// url.value = '/api-docx/excelreport' + currentRoute.value?.href?.split('?')[1]
|
||||||
|
// excelOptions.value = ref({
|
||||||
|
// xls: currentRoute.value.href?.split('?')[1].split('.')[1] == 'xls' ? true : false
|
||||||
|
// })
|
||||||
|
// }else{
|
||||||
|
// //下载
|
||||||
|
|
||||||
|
// }
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
|
init()
|
||||||
console.log()
|
console.log()
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -231,6 +231,16 @@ const setDatePicker = (list: any) => {
|
|||||||
const onResetForm = () => {
|
const onResetForm = () => {
|
||||||
//时间重置成默认值
|
//时间重置成默认值
|
||||||
datePickerRef.value?.setTheDate(3)
|
datePickerRef.value?.setTheDate(3)
|
||||||
|
|
||||||
|
if (props.datePicker && timeAll.value) {
|
||||||
|
tableStore.table.params.searchBeginTime = datePickerRef.value.timeValue[0]
|
||||||
|
tableStore.table.params.searchEndTime = datePickerRef.value.timeValue[1]
|
||||||
|
tableStore.table.params.startTime = datePickerRef.value.timeValue[0]
|
||||||
|
tableStore.table.params.endTime = datePickerRef.value.timeValue[1]
|
||||||
|
tableStore.table.params.timeFlag = datePickerRef.value.timeFlag
|
||||||
|
tableStore.table.params.interval = datePickerRef.value.interval
|
||||||
|
}
|
||||||
|
|
||||||
tableStore.onTableAction('reset', {})
|
tableStore.onTableAction('reset', {})
|
||||||
}
|
}
|
||||||
const setTheDate = (val: any) => {
|
const setTheDate = (val: any) => {
|
||||||
@@ -238,7 +248,7 @@ const setTheDate = (val: any) => {
|
|||||||
}
|
}
|
||||||
// 导出
|
// 导出
|
||||||
const onExport = () => {
|
const onExport = () => {
|
||||||
console.log('导出')
|
|
||||||
tableStore.onTableAction('export', { showAllFlag: true })
|
tableStore.onTableAction('export', { showAllFlag: true })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -268,3 +268,8 @@
|
|||||||
.el-drawer__body {
|
.el-drawer__body {
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.aLoad{
|
||||||
|
color: var(--el-color-primary);
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
35
src/utils/fileDownLoad.ts
Normal file
35
src/utils/fileDownLoad.ts
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
import { downloadFile } from '@/api/system-boot/file'
|
||||||
|
// 下载文件
|
||||||
|
export const download = (urls: string) => {
|
||||||
|
downloadFile({ filePath: urls }).then((res: any) => {
|
||||||
|
let blob = new Blob([res], {
|
||||||
|
type: urls.includes('.pdf')
|
||||||
|
? 'application/pdf'
|
||||||
|
: urls.includes('.zip')
|
||||||
|
? 'application/zip'
|
||||||
|
: urls.includes('.doc')
|
||||||
|
? 'application/msword'
|
||||||
|
: urls.includes('.docx')
|
||||||
|
? 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'
|
||||||
|
: urls.includes('.xls')
|
||||||
|
? 'application/vnd.ms-excel'
|
||||||
|
: urls.includes('.xlsx')
|
||||||
|
? 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
|
||||||
|
: urls.includes('.png')
|
||||||
|
? 'image/png'
|
||||||
|
: urls.includes('.jpeg')
|
||||||
|
? 'image/jpeg'
|
||||||
|
: urls.includes('.jpg')
|
||||||
|
? 'image/jpg'
|
||||||
|
: ''
|
||||||
|
})
|
||||||
|
const url = window.URL.createObjectURL(blob)
|
||||||
|
const link = document.createElement('a')
|
||||||
|
let name=urls.split('/')[2].split('.')[0]
|
||||||
|
link.href = url
|
||||||
|
link.download = name
|
||||||
|
document.body.appendChild(link)
|
||||||
|
link.click()
|
||||||
|
link.remove()
|
||||||
|
})
|
||||||
|
}
|
||||||
@@ -130,6 +130,7 @@ export default class TableStore {
|
|||||||
* @param data 携带数据
|
* @param data 携带数据
|
||||||
*/
|
*/
|
||||||
onTableAction = (event: string, data: anyObj) => {
|
onTableAction = (event: string, data: anyObj) => {
|
||||||
|
|
||||||
const actionFun = new Map([
|
const actionFun = new Map([
|
||||||
[
|
[
|
||||||
'search',
|
'search',
|
||||||
@@ -202,6 +203,7 @@ export default class TableStore {
|
|||||||
'export',
|
'export',
|
||||||
() => {
|
() => {
|
||||||
// this.index()
|
// this.index()
|
||||||
|
console.log('export')
|
||||||
let params = { ...this.table.params, pageNum: 1, pageSize: this.table.total }
|
let params = { ...this.table.params, pageNum: 1, pageSize: this.table.total }
|
||||||
createAxios(
|
createAxios(
|
||||||
Object.assign(
|
Object.assign(
|
||||||
@@ -213,6 +215,7 @@ export default class TableStore {
|
|||||||
)
|
)
|
||||||
).then(res => {
|
).then(res => {
|
||||||
this.table.allData = filtration(res.data.records || res.data)
|
this.table.allData = filtration(res.data.records || res.data)
|
||||||
|
console.log('11111',this.table.allData)
|
||||||
this.table.exportProcessingData && this.table.exportProcessingData()
|
this.table.exportProcessingData && this.table.exportProcessingData()
|
||||||
this.table.allFlag = data.showAllFlag || true
|
this.table.allFlag = data.showAllFlag || true
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -119,7 +119,7 @@ const tableStore = new TableStore({
|
|||||||
filename: '在线监测',
|
filename: '在线监测',
|
||||||
// isWebPaging:true,
|
// isWebPaging:true,
|
||||||
column: [
|
column: [
|
||||||
{ title: '', type: 'checkbox', width: 40 },
|
{ type: 'checkbox', width: 40 },
|
||||||
{
|
{
|
||||||
title: '序号',
|
title: '序号',
|
||||||
|
|
||||||
@@ -334,7 +334,7 @@ tableStore.table.params.dataType = '1'
|
|||||||
tableStore.table.params.deptId = dictData.state.area[0].id
|
tableStore.table.params.deptId = dictData.state.area[0].id
|
||||||
provide('tableStore', tableStore)
|
provide('tableStore', tableStore)
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
// TableHeaderRef.value.setDatePicker([{label: '月', value: 3}])
|
TableHeaderRef.value.setDatePicker([{label: '月', value: 3}])
|
||||||
|
|
||||||
tableStore.index()
|
tableStore.index()
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
<el-icon class="elView" v-if="item?.fileName">
|
<el-icon class="elView" v-if="item?.fileName">
|
||||||
<View @click="openFile(item?.fileName)" />
|
<View @click="openFile(item?.fileName)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<a :href="item.url">
|
<a class="aLoad" @click="download(item.keyName)">
|
||||||
{{ item.fileName }}
|
{{ item.fileName }}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
@@ -61,6 +61,9 @@ import { getFileNameAndFilePath } from '@/api/system-boot/file'
|
|||||||
import { defaultAttribute } from '@/components/table/defaultAttribute'
|
import { defaultAttribute } from '@/components/table/defaultAttribute'
|
||||||
import { useDictData } from '@/stores/dictData'
|
import { useDictData } from '@/stores/dictData'
|
||||||
import { Link, View } from '@element-plus/icons-vue'
|
import { Link, View } from '@element-plus/icons-vue'
|
||||||
|
import{ download} from '@/utils/fileDownLoad'
|
||||||
|
import { util } from 'echarts'
|
||||||
|
import { it } from 'node:test'
|
||||||
const { query } = useRoute() // 查询参数
|
const { query } = useRoute() // 查询参数
|
||||||
const openFile = (name: any) => {
|
const openFile = (name: any) => {
|
||||||
window.open(window.location.origin + '/#/previewFile?/supervision/' + name)
|
window.open(window.location.origin + '/#/previewFile?/supervision/' + name)
|
||||||
@@ -86,6 +89,7 @@ const getInfo = async () => {
|
|||||||
|
|
||||||
arr.slice(0, -1).forEach((item: any) => {
|
arr.slice(0, -1).forEach((item: any) => {
|
||||||
getFileNameAndFilePath({ filePath: item }).then((res: any) => {
|
getFileNameAndFilePath({ filePath: item }).then((res: any) => {
|
||||||
|
res.data.keyName = res.data.name
|
||||||
aList.value.push(res.data)
|
aList.value.push(res.data)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -59,27 +59,27 @@
|
|||||||
<el-icon class="elView" v-if="detailData?.supervisionReportName">
|
<el-icon class="elView" v-if="detailData?.supervisionReportName">
|
||||||
<View @click="openFile(detailData?.supervisionReportName)" />
|
<View @click="openFile(detailData?.supervisionReportName)" />
|
||||||
</el-icon>
|
</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>
|
||||||
<el-descriptions-item :span="2" label="测试报告">
|
<el-descriptions-item :span="2" label="测试报告">
|
||||||
<el-icon class="elView" v-if="detailData?.testReportName">
|
<el-icon class="elView" v-if="detailData?.testReportName">
|
||||||
<View @click="openFile(detailData?.testReportName)" />
|
<View @click="openFile(detailData?.testReportName)" />
|
||||||
</el-icon>
|
</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>
|
||||||
<el-descriptions-item :span="2" label="其他报告">
|
<el-descriptions-item :span="2" label="其他报告">
|
||||||
<div v-for="item in detailData.otherReports">
|
<div v-for="item in detailData.otherReports">
|
||||||
<el-icon class="elView">
|
<el-icon class="elView">
|
||||||
<View @click="openFile(item.fileName)" />
|
<View @click="openFile(item.fileName)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<a :href="item.url" target="_blank">{{ item.fileName }}</a>
|
<a class="aLoad" @click="download(item.keyName)" target="_blank">{{ item.fileName }}</a>
|
||||||
</div>
|
</div>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item :span="2" label="处理成效报告" v-if="props.flag">
|
<el-descriptions-item :span="2" label="处理成效报告" v-if="props.flag">
|
||||||
<el-icon class="elView " v-if="detailData?.reportName">
|
<el-icon class="elView " v-if="detailData?.reportName">
|
||||||
<View @click="openFile(detailData?.reportName)" />
|
<View @click="openFile(detailData?.reportName)" />
|
||||||
</el-icon>
|
</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>
|
||||||
<!-- <el-descriptions-item label="流程状态" >
|
<!-- <el-descriptions-item label="流程状态" >
|
||||||
<el-tag :type="getDeviceStatusType(detailData?.status)">
|
<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 { getTestById } from '@/api/supervision-boot/survey/test'
|
||||||
import { getFileNameAndFilePath } from '@/api/system-boot/file'
|
import { getFileNameAndFilePath } from '@/api/system-boot/file'
|
||||||
import { Link, View } from '@element-plus/icons-vue'
|
import { Link, View } from '@element-plus/icons-vue'
|
||||||
|
import {download} from '@/utils/fileDownLoad'
|
||||||
const openFile = (name: any) => {
|
const openFile = (name: any) => {
|
||||||
window.open(window.location.origin + '/#/previewFile?/supervision/' + name)
|
window.open(window.location.origin + '/#/previewFile?/supervision/' + name)
|
||||||
}
|
}
|
||||||
@@ -128,6 +129,7 @@ const getInfo = async () => {
|
|||||||
const getFileData = async () => {
|
const getFileData = async () => {
|
||||||
detailData.value.otherReports = []
|
detailData.value.otherReports = []
|
||||||
await getFileNameAndFilePath({ filePath: detailData.value.testReport }).then(res => {
|
await getFileNameAndFilePath({ filePath: detailData.value.testReport }).then(res => {
|
||||||
|
detailData.value.keyName = res.data.name
|
||||||
detailData.value.testReport = res.data.url
|
detailData.value.testReport = res.data.url
|
||||||
detailData.value.testReportName = res.data.fileName
|
detailData.value.testReportName = res.data.fileName
|
||||||
})
|
})
|
||||||
@@ -137,17 +139,20 @@ const getFileData = async () => {
|
|||||||
await getFileNameAndFilePath({
|
await getFileNameAndFilePath({
|
||||||
filePath: '/supervision/' + detailData.value.otherReport.split(',')[i]
|
filePath: '/supervision/' + detailData.value.otherReport.split(',')[i]
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
|
res.data.keyName = res.data.name
|
||||||
detailData.value.otherReports.push(res.data)
|
detailData.value.otherReports.push(res.data)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
await getFileNameAndFilePath({ filePath: detailData.value.supervisionReport }).then(res => {
|
await getFileNameAndFilePath({ filePath: detailData.value.supervisionReport }).then(res => {
|
||||||
|
detailData.value.keyName = res.data.name
|
||||||
detailData.value.supervisionReport = res.data.url
|
detailData.value.supervisionReport = res.data.url
|
||||||
detailData.value.supervisionReportName = res.data.fileName
|
detailData.value.supervisionReportName = res.data.fileName
|
||||||
})
|
})
|
||||||
if (props.flag) {
|
if (props.flag) {
|
||||||
getFileNameAndFilePath({ filePath: detailData.value.reportPath }).then(res => {
|
getFileNameAndFilePath({ filePath: detailData.value.reportPath }).then(res => {
|
||||||
|
detailData.value.keyName = res.data.name
|
||||||
detailData.value.reportPath = res.data.url
|
detailData.value.reportPath = res.data.url
|
||||||
detailData.value.reportName = res.data.fileName
|
detailData.value.reportName = res.data.fileName
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -177,12 +177,12 @@
|
|||||||
})?.name
|
})?.name
|
||||||
}}
|
}}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="可研报告">
|
<el-descriptions-item label="可研报告11">
|
||||||
<span v-if="detailData.userType == 0 || detailData.userType == 1">
|
<span v-if="detailData.userType == 0 || detailData.userType == 1">
|
||||||
<el-icon class="elView" v-if="proviteData?.feasibilityReport.name">
|
<el-icon class="elView" v-if="proviteData?.feasibilityReport.name">
|
||||||
<View @click="openFile(proviteData.feasibilityReport.key)" />
|
<View @click="openFile(proviteData.feasibilityReport.key)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<a target="_blank" :href="proviteData.feasibilityReport.url">
|
<a target="_blank" class="aLoad" @click="download(proviteData.feasibilityReport.keyName)">
|
||||||
{{ proviteData.feasibilityReport.name }}
|
{{ proviteData.feasibilityReport.name }}
|
||||||
</a>
|
</a>
|
||||||
</span>
|
</span>
|
||||||
@@ -197,7 +197,7 @@
|
|||||||
<el-icon class="elView" v-if="proviteData?.feasibilityReport.name">
|
<el-icon class="elView" v-if="proviteData?.feasibilityReport.name">
|
||||||
<View @click="openFile(proviteData.feasibilityReport.key)" />
|
<View @click="openFile(proviteData.feasibilityReport.key)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<a target="_blank" :href="proviteData.feasibilityReport.url">
|
<a target="_blank" class="aLoad" @click="download(proviteData.feasibilityReport.keyName)">
|
||||||
{{ proviteData.feasibilityReport.name }}
|
{{ proviteData.feasibilityReport.name }}
|
||||||
</a>
|
</a>
|
||||||
</span>
|
</span>
|
||||||
@@ -205,7 +205,7 @@
|
|||||||
<el-icon class="elView" v-if="proviteData?.feasibilityReport.name">
|
<el-icon class="elView" v-if="proviteData?.feasibilityReport.name">
|
||||||
<View @click="openFile(proviteData.feasibilityReport.key)" />
|
<View @click="openFile(proviteData.feasibilityReport.key)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<a target="_blank" :href="proviteData.feasibilityReport.url">
|
<a target="_blank" class="aLoad" @click="download(proviteData.feasibilityReport.keyName)">
|
||||||
{{ proviteData.feasibilityReport.name }}
|
{{ proviteData.feasibilityReport.name }}
|
||||||
</a>
|
</a>
|
||||||
</span>
|
</span>
|
||||||
@@ -214,7 +214,7 @@
|
|||||||
<el-icon class="elView" v-if="proviteData?.preliminaryDesignDescription.name">
|
<el-icon class="elView" v-if="proviteData?.preliminaryDesignDescription.name">
|
||||||
<View @click="openFile(proviteData?.preliminaryDesignDescription.key)" />
|
<View @click="openFile(proviteData?.preliminaryDesignDescription.key)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<a target="_blank" :href="proviteData?.preliminaryDesignDescription.url">
|
<a target="_blank" class="aLoad" @click="download(proviteData.preliminaryDesignDescription.keyName)">
|
||||||
{{ proviteData?.preliminaryDesignDescription.name }}
|
{{ proviteData?.preliminaryDesignDescription.name }}
|
||||||
</a>
|
</a>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
@@ -222,7 +222,7 @@
|
|||||||
<el-icon class="elView" v-if="proviteData?.predictionEvaluationReport.name">
|
<el-icon class="elView" v-if="proviteData?.predictionEvaluationReport.name">
|
||||||
<View @click="openFile(proviteData?.predictionEvaluationReport.key)" />
|
<View @click="openFile(proviteData?.predictionEvaluationReport.key)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<a target="_blank" :href="proviteData?.predictionEvaluationReport.url">
|
<a target="_blank" class="aLoad" @click="download(proviteData.predictionEvaluationReport.keyName)">
|
||||||
{{ proviteData?.predictionEvaluationReport.name }}
|
{{ proviteData?.predictionEvaluationReport.name }}
|
||||||
</a>
|
</a>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
@@ -230,7 +230,7 @@
|
|||||||
<el-icon class="elView" v-if="proviteData?.predictionEvaluationReviewOpinions.name">
|
<el-icon class="elView" v-if="proviteData?.predictionEvaluationReviewOpinions.name">
|
||||||
<View @click="openFile(proviteData?.predictionEvaluationReviewOpinions.key)" />
|
<View @click="openFile(proviteData?.predictionEvaluationReviewOpinions.key)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<a target="_blank" :href="proviteData?.predictionEvaluationReviewOpinions.url">
|
<a target="_blank" class="aLoad" @click="download(proviteData.predictionEvaluationReviewOpinions.keyName)">
|
||||||
{{ proviteData?.predictionEvaluationReviewOpinions.name }}
|
{{ proviteData?.predictionEvaluationReviewOpinions.name }}
|
||||||
</a>
|
</a>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
@@ -241,7 +241,7 @@
|
|||||||
<el-icon class="elView" v-if="proviteData?.substationMainWiringDiagram.name">
|
<el-icon class="elView" v-if="proviteData?.substationMainWiringDiagram.name">
|
||||||
<View @click="openFile(proviteData?.substationMainWiringDiagram.key)" />
|
<View @click="openFile(proviteData?.substationMainWiringDiagram.key)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<a target="_blank" :href="proviteData?.substationMainWiringDiagram.url">
|
<a target="_blank" class="aLoad" @click="download(proviteData.substationMainWiringDiagram.keyName)">
|
||||||
{{ proviteData?.substationMainWiringDiagram.name }}
|
{{ proviteData?.substationMainWiringDiagram.name }}
|
||||||
</a>
|
</a>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
@@ -249,7 +249,7 @@
|
|||||||
<el-icon class="elView" v-if="proviteData?.sensitiveDevices.name">
|
<el-icon class="elView" v-if="proviteData?.sensitiveDevices.name">
|
||||||
<View @click="openFile(proviteData?.sensitiveDevices.key)" />
|
<View @click="openFile(proviteData?.sensitiveDevices.key)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<a target="_blank" :href="proviteData?.sensitiveDevices.url">
|
<a target="_blank" class="aLoad" @click="download(proviteData.sensitiveDevices.keyName)">
|
||||||
{{ proviteData?.sensitiveDevices.name }}
|
{{ proviteData?.sensitiveDevices.name }}
|
||||||
</a>
|
</a>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
@@ -257,7 +257,7 @@
|
|||||||
<el-icon class="elView" v-if="proviteData?.antiInterferenceReport.name">
|
<el-icon class="elView" v-if="proviteData?.antiInterferenceReport.name">
|
||||||
<View @click="openFile(proviteData?.antiInterferenceReport.key)" />
|
<View @click="openFile(proviteData?.antiInterferenceReport.key)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<a target="_blank" :href="proviteData?.antiInterferenceReport.url">
|
<a target="_blank" class="aLoad" @click="download(proviteData.antiInterferenceReport.keyName)">
|
||||||
{{ proviteData?.antiInterferenceReport.name }}
|
{{ proviteData?.antiInterferenceReport.name }}
|
||||||
</a>
|
</a>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
@@ -265,7 +265,7 @@
|
|||||||
<el-icon class="elView" v-if="proviteData?.powerQualityReport.name">
|
<el-icon class="elView" v-if="proviteData?.powerQualityReport.name">
|
||||||
<View @click="openFile(proviteData?.powerQualityReport.key)" />
|
<View @click="openFile(proviteData?.powerQualityReport.key)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<a target="_blank" :href="proviteData?.powerQualityReport.url">
|
<a target="_blank" class="aLoad" @click="download(proviteData.powerQualityReport.keyName)">
|
||||||
{{ proviteData?.powerQualityReport.name }}
|
{{ proviteData?.powerQualityReport.name }}
|
||||||
</a>
|
</a>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
@@ -274,7 +274,7 @@
|
|||||||
<el-icon class="elView" v-if="item.name">
|
<el-icon class="elView" v-if="item.name">
|
||||||
<View @click="openFile(item.key)" />
|
<View @click="openFile(item.key)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<a target="_blank" :href="item.url">
|
<a target="_blank" class="aLoad" @click="download(item.keyName)">
|
||||||
{{ item.name }}
|
{{ item.name }}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
@@ -284,7 +284,7 @@
|
|||||||
<el-icon class="elView" v-if="proviteData?.additionalAttachments.name">
|
<el-icon class="elView" v-if="proviteData?.additionalAttachments.name">
|
||||||
<View @click="openFile(proviteData?.additionalAttachments.key)" />
|
<View @click="openFile(proviteData?.additionalAttachments.key)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<a target="_blank" :href="proviteData?.additionalAttachments.url">
|
<a target="_blank" class="aLoad" @click="download(proviteData.additionalAttachments.keyName)">
|
||||||
{{ proviteData?.additionalAttachments.name }}
|
{{ proviteData?.additionalAttachments.name }}
|
||||||
</a>
|
</a>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
@@ -307,7 +307,7 @@
|
|||||||
<el-icon class="elView" v-if="proviteData?.otherReport.name">
|
<el-icon class="elView" v-if="proviteData?.otherReport.name">
|
||||||
<View @click="openFile(proviteData?.otherReport.key)" />
|
<View @click="openFile(proviteData?.otherReport.key)" />
|
||||||
</el-icon>
|
</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-item>
|
||||||
</el-descriptions>
|
</el-descriptions>
|
||||||
</div>
|
</div>
|
||||||
@@ -321,8 +321,9 @@ import { getUserReportById } from '@/api/supervision-boot/userReport/form'
|
|||||||
import { getDictTreeById } from '@/api/system-boot/dictTree'
|
import { getDictTreeById } from '@/api/system-boot/dictTree'
|
||||||
import { useDictData } from '@/stores/dictData'
|
import { useDictData } from '@/stores/dictData'
|
||||||
import {getFileNameAndFilePath } from '@/api/system-boot/file'
|
import {getFileNameAndFilePath } from '@/api/system-boot/file'
|
||||||
import { Link, View } from '@element-plus/icons-vue'
|
import { Key, Link, View } from '@element-plus/icons-vue'
|
||||||
import { userReportGoNetById } from '@/api/supervision-boot/interfere'
|
import { userReportGoNetById } from '@/api/supervision-boot/interfere'
|
||||||
|
import {download} from '@/utils/fileDownLoad'
|
||||||
// import el-descriptions-item from './components/detailsItem.vue'
|
// import el-descriptions-item from './components/detailsItem.vue'
|
||||||
defineOptions({ name: 'BpmUserReportDetail' })
|
defineOptions({ name: 'BpmUserReportDetail' })
|
||||||
const openFile = (name: any) => {
|
const openFile = (name: any) => {
|
||||||
@@ -494,6 +495,7 @@ const getProviteData = async () => {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//根据文件名请求
|
//根据文件名请求
|
||||||
const getFileNamePath = async (val: any, pathName: any) => {
|
const getFileNamePath = async (val: any, pathName: any) => {
|
||||||
await getFileNameAndFilePath({ filePath: val }).then(res => {
|
await getFileNameAndFilePath({ filePath: val }).then(res => {
|
||||||
@@ -503,6 +505,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
|
|||||||
proviteData.value.feasibilityReport = {
|
proviteData.value.feasibilityReport = {
|
||||||
name: res.data.fileName,
|
name: res.data.fileName,
|
||||||
key: val,
|
key: val,
|
||||||
|
keyName: res.data.name,
|
||||||
url: res.data.url
|
url: res.data.url
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -511,6 +514,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
|
|||||||
proviteData.value.preliminaryDesignDescription = {
|
proviteData.value.preliminaryDesignDescription = {
|
||||||
name: res.data.fileName,
|
name: res.data.fileName,
|
||||||
key: val,
|
key: val,
|
||||||
|
keyName: res.data.name,
|
||||||
url: res.data.url
|
url: res.data.url
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -519,6 +523,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
|
|||||||
proviteData.value.predictionEvaluationReport = {
|
proviteData.value.predictionEvaluationReport = {
|
||||||
name: res.data.fileName,
|
name: res.data.fileName,
|
||||||
key: val,
|
key: val,
|
||||||
|
KeyName: res.data.name,
|
||||||
url: res.data.url
|
url: res.data.url
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -530,6 +535,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
|
|||||||
proviteData.value.predictionEvaluationReviewOpinions = {
|
proviteData.value.predictionEvaluationReviewOpinions = {
|
||||||
name: res.data.fileName,
|
name: res.data.fileName,
|
||||||
key: val,
|
key: val,
|
||||||
|
KeyName: res.data.name,
|
||||||
url: res.data.url
|
url: res.data.url
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -538,6 +544,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
|
|||||||
proviteData.value.substationMainWiringDiagram = {
|
proviteData.value.substationMainWiringDiagram = {
|
||||||
name: res.data.fileName,
|
name: res.data.fileName,
|
||||||
key: val,
|
key: val,
|
||||||
|
KeyName: res.data.name,
|
||||||
url: res.data.url
|
url: res.data.url
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -546,6 +553,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
|
|||||||
proviteData.value.sensitiveDevices = {
|
proviteData.value.sensitiveDevices = {
|
||||||
name: res.data.fileName,
|
name: res.data.fileName,
|
||||||
key: val,
|
key: val,
|
||||||
|
KeyName: res.data.name,
|
||||||
url: res.data.url
|
url: res.data.url
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -554,6 +562,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
|
|||||||
proviteData.value.antiInterferenceReport = {
|
proviteData.value.antiInterferenceReport = {
|
||||||
name: res.data.fileName,
|
name: res.data.fileName,
|
||||||
key: val,
|
key: val,
|
||||||
|
KeyName: res.data.name,
|
||||||
url: res.data.url
|
url: res.data.url
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -562,6 +571,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
|
|||||||
proviteData.value.powerQualityReport = {
|
proviteData.value.powerQualityReport = {
|
||||||
name: res.data.fileName,
|
name: res.data.fileName,
|
||||||
key: val,
|
key: val,
|
||||||
|
KeyName: res.data.name,
|
||||||
url: res.data.url
|
url: res.data.url
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -570,6 +580,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
|
|||||||
proviteData.value.additionalAttachments = {
|
proviteData.value.additionalAttachments = {
|
||||||
name: res.data.fileName,
|
name: res.data.fileName,
|
||||||
key: val,
|
key: val,
|
||||||
|
KeyName: res.data.name,
|
||||||
url: res.data.url
|
url: res.data.url
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -579,12 +590,14 @@ const getFileNamePath = async (val: any, pathName: any) => {
|
|||||||
proviteData.value.otherReport = {
|
proviteData.value.otherReport = {
|
||||||
name: res.data.fileName,
|
name: res.data.fileName,
|
||||||
key: val,
|
key: val,
|
||||||
|
KeyName: res.data.name,
|
||||||
url: res.data.url
|
url: res.data.url
|
||||||
}
|
}
|
||||||
} else if (pathName == 'netInReport') {
|
} else if (pathName == 'netInReport') {
|
||||||
netInReportList.value.push({
|
netInReportList.value.push({
|
||||||
name: res.data.fileName,
|
name: res.data.fileName,
|
||||||
key: val,
|
key: val,
|
||||||
|
KeyName: res.data.name,
|
||||||
url: res.data.url
|
url: res.data.url
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -192,7 +192,7 @@
|
|||||||
<el-icon class="elView" v-if="proviteData?.feasibilityReport?.name">
|
<el-icon class="elView" v-if="proviteData?.feasibilityReport?.name">
|
||||||
<View @click="openFile(proviteData?.feasibilityReport?.name)" />
|
<View @click="openFile(proviteData?.feasibilityReport?.name)" />
|
||||||
</el-icon>
|
</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 }}
|
{{ proviteData.feasibilityReport?.name }}
|
||||||
</a>
|
</a>
|
||||||
</span>
|
</span>
|
||||||
@@ -205,7 +205,7 @@
|
|||||||
<el-icon class="elView" v-if="proviteData?.feasibilityReport?.name">
|
<el-icon class="elView" v-if="proviteData?.feasibilityReport?.name">
|
||||||
<View @click="openFile(proviteData?.feasibilityReport?.name)" />
|
<View @click="openFile(proviteData?.feasibilityReport?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<a target="_blank" :href="proviteData.feasibilityReport?.url">
|
<a target="_blank" class="aLoad" @click="download(proviteData.feasibilityReport.keyName)">
|
||||||
{{ proviteData.feasibilityReport?.name }}
|
{{ proviteData.feasibilityReport?.name }}
|
||||||
</a>
|
</a>
|
||||||
</span>
|
</span>
|
||||||
@@ -213,7 +213,7 @@
|
|||||||
<el-icon class="elView" v-if="proviteData?.feasibilityReport?.name">
|
<el-icon class="elView" v-if="proviteData?.feasibilityReport?.name">
|
||||||
<View @click="openFile(proviteData?.feasibilityReport?.name)" />
|
<View @click="openFile(proviteData?.feasibilityReport?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<a target="_blank" :href="proviteData.feasibilityReport?.url">
|
<a target="_blank" class="aLoad" @click="download(proviteData.feasibilityReport.keyName)">
|
||||||
{{ proviteData.feasibilityReport?.name }}
|
{{ proviteData.feasibilityReport?.name }}
|
||||||
</a>
|
</a>
|
||||||
</span>
|
</span>
|
||||||
@@ -223,7 +223,7 @@
|
|||||||
<View @click="openFile(proviteData?.preliminaryDesignDescription?.name)" />
|
<View @click="openFile(proviteData?.preliminaryDesignDescription?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
|
|
||||||
<a target="_blank" :href="proviteData?.preliminaryDesignDescription?.url">
|
<a target="_blank" class="aLoad" @click="download(proviteData.preliminaryDesignDescription.keyName)">
|
||||||
{{ proviteData?.preliminaryDesignDescription?.name }}
|
{{ proviteData?.preliminaryDesignDescription?.name }}
|
||||||
</a>
|
</a>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
@@ -231,7 +231,7 @@
|
|||||||
<el-icon class="elView" v-if="proviteData?.predictionEvaluationReport?.name">
|
<el-icon class="elView" v-if="proviteData?.predictionEvaluationReport?.name">
|
||||||
<View @click="openFile(proviteData?.predictionEvaluationReport?.name)" />
|
<View @click="openFile(proviteData?.predictionEvaluationReport?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<a target="_blank" :href="proviteData?.predictionEvaluationReport?.url">
|
<a target="_blank" class="aLoad" @click="download(proviteData.predictionEvaluationReport.keyName)">
|
||||||
{{ proviteData?.predictionEvaluationReport?.name }}
|
{{ proviteData?.predictionEvaluationReport?.name }}
|
||||||
</a>
|
</a>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
@@ -239,7 +239,7 @@
|
|||||||
<el-icon class="elView" v-if="proviteData?.predictionEvaluationReviewOpinions?.name">
|
<el-icon class="elView" v-if="proviteData?.predictionEvaluationReviewOpinions?.name">
|
||||||
<View @click="openFile(proviteData?.predictionEvaluationReviewOpinions?.name)" />
|
<View @click="openFile(proviteData?.predictionEvaluationReviewOpinions?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<a target="_blank" :href="proviteData?.predictionEvaluationReviewOpinions?.url">
|
<a target="_blank" class="aLoad" @click="download(proviteData.predictionEvaluationReviewOpinions.keyName)">
|
||||||
{{ proviteData?.predictionEvaluationReviewOpinions?.name }}
|
{{ proviteData?.predictionEvaluationReviewOpinions?.name }}
|
||||||
</a>
|
</a>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
@@ -247,7 +247,7 @@
|
|||||||
<el-icon class="elView" v-if="proviteData?.substationMainWiringDiagram?.name">
|
<el-icon class="elView" v-if="proviteData?.substationMainWiringDiagram?.name">
|
||||||
<View @click="openFile(proviteData?.substationMainWiringDiagram?.name)" />
|
<View @click="openFile(proviteData?.substationMainWiringDiagram?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<a target="_blank" :href="proviteData?.substationMainWiringDiagram?.url">
|
<a target="_blank" class="aLoad" @click="download(proviteData.substationMainWiringDiagram.keyName)">
|
||||||
{{ proviteData?.substationMainWiringDiagram?.name }}
|
{{ proviteData?.substationMainWiringDiagram?.name }}
|
||||||
</a>
|
</a>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
@@ -255,7 +255,7 @@
|
|||||||
<el-icon class="elView" v-if="proviteData?.sensitiveDevices?.name">
|
<el-icon class="elView" v-if="proviteData?.sensitiveDevices?.name">
|
||||||
<View @click="openFile(proviteData?.sensitiveDevices?.name)" />
|
<View @click="openFile(proviteData?.sensitiveDevices?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<a target="_blank" :href="proviteData?.sensitiveDevices?.url">
|
<a target="_blank" class="aLoad" @click="download(proviteData.sensitiveDevices.keyName)">
|
||||||
{{ proviteData?.sensitiveDevices?.name }}
|
{{ proviteData?.sensitiveDevices?.name }}
|
||||||
</a>
|
</a>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
@@ -263,7 +263,7 @@
|
|||||||
<el-icon class="elView" v-if="proviteData?.antiInterferenceReport?.name">
|
<el-icon class="elView" v-if="proviteData?.antiInterferenceReport?.name">
|
||||||
<View @click="openFile(proviteData?.antiInterferenceReport?.name)" />
|
<View @click="openFile(proviteData?.antiInterferenceReport?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<a target="_blank" :href="proviteData?.antiInterferenceReport?.url">
|
<a target="_blank" class="aLoad" @click="download(proviteData.antiInterferenceReport.keyName)">
|
||||||
{{ proviteData?.antiInterferenceReport?.name }}
|
{{ proviteData?.antiInterferenceReport?.name }}
|
||||||
</a>
|
</a>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
@@ -271,7 +271,7 @@
|
|||||||
<el-icon class="elView" v-if="proviteData?.powerQualityReport?.name">
|
<el-icon class="elView" v-if="proviteData?.powerQualityReport?.name">
|
||||||
<View @click="openFile(proviteData?.powerQualityReport?.name)" />
|
<View @click="openFile(proviteData?.powerQualityReport?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<a target="_blank" :href="proviteData?.powerQualityReport?.url">
|
<a target="_blank" class="aLoad" @click="download(proviteData.powerQualityReport.keyName)">
|
||||||
{{ proviteData?.powerQualityReport?.name }}
|
{{ proviteData?.powerQualityReport?.name }}
|
||||||
</a>
|
</a>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
@@ -280,7 +280,7 @@
|
|||||||
<el-icon class="elView" v-if="proviteData?.additionalAttachments?.name">
|
<el-icon class="elView" v-if="proviteData?.additionalAttachments?.name">
|
||||||
<View @click="openFile(proviteData?.additionalAttachments?.name)" />
|
<View @click="openFile(proviteData?.additionalAttachments?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<a target="_blank" :href="proviteData?.additionalAttachments?.url">
|
<a target="_blank" class="aLoad" @click="download(proviteData.additionalAttachments.keyName)">
|
||||||
{{ proviteData?.additionalAttachments?.name }}
|
{{ proviteData?.additionalAttachments?.name }}
|
||||||
</a>
|
</a>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
@@ -530,7 +530,7 @@
|
|||||||
<el-icon class="elView" v-if="proviteData1?.feasibilityReport?.name">
|
<el-icon class="elView" v-if="proviteData1?.feasibilityReport?.name">
|
||||||
<View @click="openFile(proviteData1?.feasibilityReport?.name)" />
|
<View @click="openFile(proviteData1?.feasibilityReport?.name)" />
|
||||||
</el-icon>
|
</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 }}
|
{{ proviteData1.feasibilityReport?.name }}
|
||||||
</a>
|
</a>
|
||||||
</span>
|
</span>
|
||||||
@@ -543,7 +543,7 @@
|
|||||||
<el-icon class="elView" v-if="proviteData1?.feasibilityReport?.name">
|
<el-icon class="elView" v-if="proviteData1?.feasibilityReport?.name">
|
||||||
<View @click="openFile(proviteData1?.feasibilityReport?.name)" />
|
<View @click="openFile(proviteData1?.feasibilityReport?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<a target="_blank" :href="proviteData1.feasibilityReport?.url">
|
<a target="_blank" class="aLoad" @click="download(proviteData.feasibilityReport.keyName)">
|
||||||
{{ proviteData1.feasibilityReport?.name }}
|
{{ proviteData1.feasibilityReport?.name }}
|
||||||
</a>
|
</a>
|
||||||
</span>
|
</span>
|
||||||
@@ -553,7 +553,7 @@
|
|||||||
<el-icon class="elView" v-if="proviteData1?.feasibilityReport?.name">
|
<el-icon class="elView" v-if="proviteData1?.feasibilityReport?.name">
|
||||||
<View @click="openFile(proviteData1?.feasibilityReport?.name)" />
|
<View @click="openFile(proviteData1?.feasibilityReport?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<a target="_blank" :href="proviteData1.feasibilityReport?.url">
|
<a target="_blank" class="aLoad" @click="download(proviteData.feasibilityReport.keyName)">
|
||||||
{{ proviteData1.feasibilityReport?.name }}
|
{{ proviteData1.feasibilityReport?.name }}
|
||||||
</a>
|
</a>
|
||||||
</span>
|
</span>
|
||||||
@@ -565,7 +565,7 @@
|
|||||||
<View @click="openFile(proviteData1?.preliminaryDesignDescription?.name)" />
|
<View @click="openFile(proviteData1?.preliminaryDesignDescription?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
|
|
||||||
<a target="_blank" :href="proviteData1?.preliminaryDesignDescription?.url">
|
<a target="_blank" class="aLoad" @click="download(proviteData.preliminaryDesignDescription.keyName)">
|
||||||
{{ proviteData1?.preliminaryDesignDescription?.name }}
|
{{ proviteData1?.preliminaryDesignDescription?.name }}
|
||||||
</a>
|
</a>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
@@ -575,7 +575,7 @@
|
|||||||
<el-icon class="elView" v-if="proviteData1?.predictionEvaluationReport?.name">
|
<el-icon class="elView" v-if="proviteData1?.predictionEvaluationReport?.name">
|
||||||
<View @click="openFile(proviteData1?.predictionEvaluationReport?.name)" />
|
<View @click="openFile(proviteData1?.predictionEvaluationReport?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<a target="_blank" :href="proviteData1?.predictionEvaluationReport?.url">
|
<a target="_blank" class="aLoad" @click="download(proviteData.predictionEvaluationReport.keyName)">
|
||||||
{{ proviteData1?.predictionEvaluationReport?.name }}
|
{{ proviteData1?.predictionEvaluationReport?.name }}
|
||||||
</a>
|
</a>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
@@ -585,7 +585,7 @@
|
|||||||
<el-icon class="elView" v-if="proviteData1?.predictionEvaluationReviewOpinions?.name">
|
<el-icon class="elView" v-if="proviteData1?.predictionEvaluationReviewOpinions?.name">
|
||||||
<View @click="openFile(proviteData1?.predictionEvaluationReviewOpinions?.name)" />
|
<View @click="openFile(proviteData1?.predictionEvaluationReviewOpinions?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<a target="_blank" :href="proviteData1?.predictionEvaluationReviewOpinions?.url">
|
<a target="_blank" class="aLoad" @click="download(proviteData.predictionEvaluationReviewOpinions.keyName)">
|
||||||
{{ proviteData1?.predictionEvaluationReviewOpinions?.name }}
|
{{ proviteData1?.predictionEvaluationReviewOpinions?.name }}
|
||||||
</a>
|
</a>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
@@ -595,7 +595,7 @@
|
|||||||
<el-icon class="elView" v-if="proviteData1?.substationMainWiringDiagram?.name">
|
<el-icon class="elView" v-if="proviteData1?.substationMainWiringDiagram?.name">
|
||||||
<View @click="openFile(proviteData1?.substationMainWiringDiagram?.name)" />
|
<View @click="openFile(proviteData1?.substationMainWiringDiagram?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<a target="_blank" :href="proviteData1?.substationMainWiringDiagram?.url">
|
<a target="_blank" class="aLoad" @click="download(proviteData.substationMainWiringDiagram.keyName)">
|
||||||
{{ proviteData1?.substationMainWiringDiagram?.name }}
|
{{ proviteData1?.substationMainWiringDiagram?.name }}
|
||||||
</a>
|
</a>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
@@ -605,7 +605,7 @@
|
|||||||
<el-icon class="elView" v-if="proviteData1?.sensitiveDevices?.name">
|
<el-icon class="elView" v-if="proviteData1?.sensitiveDevices?.name">
|
||||||
<View @click="openFile(proviteData1?.sensitiveDevices?.name)" />
|
<View @click="openFile(proviteData1?.sensitiveDevices?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<a target="_blank" :href="proviteData1?.sensitiveDevices?.url">
|
<a target="_blank" class="aLoad" @click="download(proviteData.sensitiveDevices.keyName)">
|
||||||
{{ proviteData1?.sensitiveDevices?.name }}
|
{{ proviteData1?.sensitiveDevices?.name }}
|
||||||
</a>
|
</a>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
@@ -615,7 +615,7 @@
|
|||||||
<el-icon class="elView" v-if="proviteData1?.antiInterferenceReport?.name">
|
<el-icon class="elView" v-if="proviteData1?.antiInterferenceReport?.name">
|
||||||
<View @click="openFile(proviteData1?.antiInterferenceReport?.name)" />
|
<View @click="openFile(proviteData1?.antiInterferenceReport?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<a target="_blank" :href="proviteData1?.antiInterferenceReport?.url">
|
<a target="_blank" class="aLoad" @click="download(proviteData.antiInterferenceReport.keyName)">
|
||||||
{{ proviteData1?.antiInterferenceReport?.name }}
|
{{ proviteData1?.antiInterferenceReport?.name }}
|
||||||
</a>
|
</a>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
@@ -625,7 +625,7 @@
|
|||||||
<el-icon class="elView" v-if="proviteData1?.powerQualityReport?.name">
|
<el-icon class="elView" v-if="proviteData1?.powerQualityReport?.name">
|
||||||
<View @click="openFile(proviteData1?.powerQualityReport?.name)" />
|
<View @click="openFile(proviteData1?.powerQualityReport?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<a target="_blank" :href="proviteData1?.powerQualityReport?.url">
|
<a target="_blank" class="aLoad" @click="download(proviteData.powerQualityReport.keyName)">
|
||||||
{{ proviteData1?.powerQualityReport?.name }}
|
{{ proviteData1?.powerQualityReport?.name }}
|
||||||
</a>
|
</a>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
@@ -636,7 +636,7 @@
|
|||||||
<el-icon class="elView" v-if="proviteData1?.additionalAttachments?.name">
|
<el-icon class="elView" v-if="proviteData1?.additionalAttachments?.name">
|
||||||
<View @click="openFile(proviteData1?.additionalAttachments?.name)" />
|
<View @click="openFile(proviteData1?.additionalAttachments?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<a target="_blank" :href="proviteData1?.additionalAttachments?.url">
|
<a target="_blank" class="aLoad" @click="download(proviteData.additionalAttachments.keyName)">
|
||||||
{{ proviteData1?.additionalAttachments?.name }}
|
{{ proviteData1?.additionalAttachments?.name }}
|
||||||
</a>
|
</a>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
@@ -655,6 +655,7 @@ import { useDictData } from '@/stores/dictData'
|
|||||||
import { getFileNameAndFilePath } from '@/api/system-boot/file'
|
import { getFileNameAndFilePath } from '@/api/system-boot/file'
|
||||||
import { Link, View } from '@element-plus/icons-vue'
|
import { Link, View } from '@element-plus/icons-vue'
|
||||||
import PreviewFile from '@/components/PreviewFile/index.vue'
|
import PreviewFile from '@/components/PreviewFile/index.vue'
|
||||||
|
import { download} from '@/utils/fileDownLoad'
|
||||||
defineOptions({ name: 'BpmUserReportDetail' })
|
defineOptions({ name: 'BpmUserReportDetail' })
|
||||||
|
|
||||||
const { query } = useRoute() // 查询参数
|
const { query } = useRoute() // 查询参数
|
||||||
@@ -959,6 +960,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
|
|||||||
if (pathName == 'feasibilityReport' && proviteData.value.feasibilityReport) {
|
if (pathName == 'feasibilityReport' && proviteData.value.feasibilityReport) {
|
||||||
proviteData.value.feasibilityReport = {
|
proviteData.value.feasibilityReport = {
|
||||||
name: res.data.fileName,
|
name: res.data.fileName,
|
||||||
|
keyName: res.data.name,
|
||||||
url: res.data.url
|
url: res.data.url
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -966,6 +968,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
|
|||||||
else if (pathName == 'preliminaryDesignDescription' && proviteData.value.preliminaryDesignDescription) {
|
else if (pathName == 'preliminaryDesignDescription' && proviteData.value.preliminaryDesignDescription) {
|
||||||
proviteData.value.preliminaryDesignDescription = {
|
proviteData.value.preliminaryDesignDescription = {
|
||||||
name: res.data.fileName,
|
name: res.data.fileName,
|
||||||
|
keyName: res.data.name,
|
||||||
url: res.data.url
|
url: res.data.url
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -973,6 +976,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
|
|||||||
else if (pathName == 'predictionEvaluationReport' && proviteData.value.predictionEvaluationReport) {
|
else if (pathName == 'predictionEvaluationReport' && proviteData.value.predictionEvaluationReport) {
|
||||||
proviteData.value.predictionEvaluationReport = {
|
proviteData.value.predictionEvaluationReport = {
|
||||||
name: res.data.fileName,
|
name: res.data.fileName,
|
||||||
|
keyName: res.data.name,
|
||||||
url: res.data.url
|
url: res.data.url
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -983,6 +987,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
|
|||||||
) {
|
) {
|
||||||
proviteData.value.predictionEvaluationReviewOpinions = {
|
proviteData.value.predictionEvaluationReviewOpinions = {
|
||||||
name: res.data.fileName,
|
name: res.data.fileName,
|
||||||
|
keyName: res.data.name,
|
||||||
url: res.data.url
|
url: res.data.url
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -990,6 +995,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
|
|||||||
else if (pathName == 'substationMainWiringDiagram' && proviteData.value.substationMainWiringDiagram) {
|
else if (pathName == 'substationMainWiringDiagram' && proviteData.value.substationMainWiringDiagram) {
|
||||||
proviteData.value.substationMainWiringDiagram = {
|
proviteData.value.substationMainWiringDiagram = {
|
||||||
name: res.data.fileName,
|
name: res.data.fileName,
|
||||||
|
keyName: res.data.name,
|
||||||
url: res.data.url
|
url: res.data.url
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -997,6 +1003,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
|
|||||||
else if (pathName == 'sensitiveDevices' && proviteData.value.sensitiveDevices) {
|
else if (pathName == 'sensitiveDevices' && proviteData.value.sensitiveDevices) {
|
||||||
proviteData.value.sensitiveDevices = {
|
proviteData.value.sensitiveDevices = {
|
||||||
name: res.data.fileName,
|
name: res.data.fileName,
|
||||||
|
keyName: res.data.name,
|
||||||
url: res.data.url
|
url: res.data.url
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1004,6 +1011,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
|
|||||||
else if (pathName == 'antiInterferenceReport' && proviteData.value.antiInterferenceReport) {
|
else if (pathName == 'antiInterferenceReport' && proviteData.value.antiInterferenceReport) {
|
||||||
proviteData.value.antiInterferenceReport = {
|
proviteData.value.antiInterferenceReport = {
|
||||||
name: res.data.fileName,
|
name: res.data.fileName,
|
||||||
|
keyName: res.data.name,
|
||||||
url: res.data.url
|
url: res.data.url
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1011,6 +1019,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
|
|||||||
else if (pathName == 'powerQualityReport' && proviteData.value.powerQualityReport) {
|
else if (pathName == 'powerQualityReport' && proviteData.value.powerQualityReport) {
|
||||||
proviteData.value.powerQualityReport = {
|
proviteData.value.powerQualityReport = {
|
||||||
name: res.data.fileName,
|
name: res.data.fileName,
|
||||||
|
keyName: res.data.name,
|
||||||
url: res.data.url
|
url: res.data.url
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1018,6 +1027,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
|
|||||||
else if (pathName == 'additionalAttachments' && proviteData.value.additionalAttachments) {
|
else if (pathName == 'additionalAttachments' && proviteData.value.additionalAttachments) {
|
||||||
proviteData.value.additionalAttachments = {
|
proviteData.value.additionalAttachments = {
|
||||||
name: res.data.fileName,
|
name: res.data.fileName,
|
||||||
|
keyName: res.data.name,
|
||||||
url: res.data.url
|
url: res.data.url
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1032,6 +1042,7 @@ const getFileNamePath1 = async (val: any, pathName: any) => {
|
|||||||
if (pathName == 'feasibilityReport' && proviteData1.value.feasibilityReport) {
|
if (pathName == 'feasibilityReport' && proviteData1.value.feasibilityReport) {
|
||||||
proviteData1.value.feasibilityReport = {
|
proviteData1.value.feasibilityReport = {
|
||||||
name: res.data.fileName,
|
name: res.data.fileName,
|
||||||
|
keyName: res.data.name,
|
||||||
url: res.data.url
|
url: res.data.url
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1039,6 +1050,7 @@ const getFileNamePath1 = async (val: any, pathName: any) => {
|
|||||||
else if (pathName == 'preliminaryDesignDescription' && proviteData1.value.preliminaryDesignDescription) {
|
else if (pathName == 'preliminaryDesignDescription' && proviteData1.value.preliminaryDesignDescription) {
|
||||||
proviteData1.value.preliminaryDesignDescription = {
|
proviteData1.value.preliminaryDesignDescription = {
|
||||||
name: res.data.fileName,
|
name: res.data.fileName,
|
||||||
|
keyName: res.data.name,
|
||||||
url: res.data.url
|
url: res.data.url
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1046,6 +1058,7 @@ const getFileNamePath1 = async (val: any, pathName: any) => {
|
|||||||
else if (pathName == 'predictionEvaluationReport' && proviteData1.value.predictionEvaluationReport) {
|
else if (pathName == 'predictionEvaluationReport' && proviteData1.value.predictionEvaluationReport) {
|
||||||
proviteData1.value.predictionEvaluationReport = {
|
proviteData1.value.predictionEvaluationReport = {
|
||||||
name: res.data.fileName,
|
name: res.data.fileName,
|
||||||
|
keyName: res.data.name,
|
||||||
url: res.data.url
|
url: res.data.url
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1056,6 +1069,7 @@ const getFileNamePath1 = async (val: any, pathName: any) => {
|
|||||||
) {
|
) {
|
||||||
proviteData1.value.predictionEvaluationReviewOpinions = {
|
proviteData1.value.predictionEvaluationReviewOpinions = {
|
||||||
name: res.data.fileName,
|
name: res.data.fileName,
|
||||||
|
keyName: res.data.name,
|
||||||
url: res.data.url
|
url: res.data.url
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1063,6 +1077,7 @@ const getFileNamePath1 = async (val: any, pathName: any) => {
|
|||||||
else if (pathName == 'substationMainWiringDiagram' && proviteData1.value.substationMainWiringDiagram) {
|
else if (pathName == 'substationMainWiringDiagram' && proviteData1.value.substationMainWiringDiagram) {
|
||||||
proviteData1.value.substationMainWiringDiagram = {
|
proviteData1.value.substationMainWiringDiagram = {
|
||||||
name: res.data.fileName,
|
name: res.data.fileName,
|
||||||
|
keyName: res.data.name,
|
||||||
url: res.data.url
|
url: res.data.url
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1070,6 +1085,7 @@ const getFileNamePath1 = async (val: any, pathName: any) => {
|
|||||||
else if (pathName == 'sensitiveDevices' && proviteData1.value.sensitiveDevices) {
|
else if (pathName == 'sensitiveDevices' && proviteData1.value.sensitiveDevices) {
|
||||||
proviteData1.value.sensitiveDevices = {
|
proviteData1.value.sensitiveDevices = {
|
||||||
name: res.data.fileName,
|
name: res.data.fileName,
|
||||||
|
keyName: res.data.name,
|
||||||
url: res.data.url
|
url: res.data.url
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1077,6 +1093,7 @@ const getFileNamePath1 = async (val: any, pathName: any) => {
|
|||||||
else if (pathName == 'antiInterferenceReport' && proviteData1.value.antiInterferenceReport) {
|
else if (pathName == 'antiInterferenceReport' && proviteData1.value.antiInterferenceReport) {
|
||||||
proviteData1.value.antiInterferenceReport = {
|
proviteData1.value.antiInterferenceReport = {
|
||||||
name: res.data.fileName,
|
name: res.data.fileName,
|
||||||
|
keyName: res.data.name,
|
||||||
url: res.data.url
|
url: res.data.url
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1084,6 +1101,7 @@ const getFileNamePath1 = async (val: any, pathName: any) => {
|
|||||||
else if (pathName == 'powerQualityReport' && proviteData1.value.powerQualityReport) {
|
else if (pathName == 'powerQualityReport' && proviteData1.value.powerQualityReport) {
|
||||||
proviteData1.value.powerQualityReport = {
|
proviteData1.value.powerQualityReport = {
|
||||||
name: res.data.fileName,
|
name: res.data.fileName,
|
||||||
|
keyName: res.data.name,
|
||||||
url: res.data.url
|
url: res.data.url
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1091,6 +1109,7 @@ const getFileNamePath1 = async (val: any, pathName: any) => {
|
|||||||
else if (pathName == 'additionalAttachments' && proviteData1.value.additionalAttachments) {
|
else if (pathName == 'additionalAttachments' && proviteData1.value.additionalAttachments) {
|
||||||
proviteData1.value.additionalAttachments = {
|
proviteData1.value.additionalAttachments = {
|
||||||
name: res.data.fileName,
|
name: res.data.fileName,
|
||||||
|
keyName: res.data.name,
|
||||||
url: res.data.url
|
url: res.data.url
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -237,7 +237,7 @@
|
|||||||
<el-icon class="elView" v-if="proviteData?.feasibilityReport?.name">
|
<el-icon class="elView" v-if="proviteData?.feasibilityReport?.name">
|
||||||
<View @click="openFile(proviteData?.feasibilityReport?.name)" />
|
<View @click="openFile(proviteData?.feasibilityReport?.name)" />
|
||||||
</el-icon>
|
</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 }}
|
{{ proviteData?.feasibilityReport?.name }}
|
||||||
</a>
|
</a>
|
||||||
</span>
|
</span>
|
||||||
@@ -252,7 +252,7 @@
|
|||||||
<el-icon class="elView" v-if="proviteData?.feasibilityReport?.name">
|
<el-icon class="elView" v-if="proviteData?.feasibilityReport?.name">
|
||||||
<View @click="openFile(proviteData?.feasibilityReport?.name)" />
|
<View @click="openFile(proviteData?.feasibilityReport?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<a target="_blank" :href="proviteData?.feasibilityReport?.url">
|
<a target="_blank" class="aLoad" @click="download(proviteData.feasibilityReport.keyName)">
|
||||||
{{ proviteData?.feasibilityReport?.name }}
|
{{ proviteData?.feasibilityReport?.name }}
|
||||||
</a>
|
</a>
|
||||||
</span>
|
</span>
|
||||||
@@ -260,7 +260,7 @@
|
|||||||
<el-icon class="elView" v-if="proviteData?.feasibilityReport?.name">
|
<el-icon class="elView" v-if="proviteData?.feasibilityReport?.name">
|
||||||
<View @click="openFile(proviteData?.feasibilityReport?.name)" />
|
<View @click="openFile(proviteData?.feasibilityReport?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<a target="_blank" :href="proviteData?.feasibilityReport?.url">
|
<a target="_blank" class="aLoad" @click="download(proviteData.feasibilityReport.keyName)">
|
||||||
{{ proviteData?.feasibilityReport?.name }}
|
{{ proviteData?.feasibilityReport?.name }}
|
||||||
</a>
|
</a>
|
||||||
</span>
|
</span>
|
||||||
@@ -270,7 +270,7 @@
|
|||||||
<View @click="openFile(proviteData?.preliminaryDesignDescription?.name)" />
|
<View @click="openFile(proviteData?.preliminaryDesignDescription?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
|
|
||||||
<a target="_blank" :href="proviteData?.preliminaryDesignDescription?.url">
|
<a target="_blank" class="aLoad" @click="download(proviteData.preliminaryDesignDescription.keyName)">
|
||||||
{{ proviteData?.preliminaryDesignDescription?.name }}
|
{{ proviteData?.preliminaryDesignDescription?.name }}
|
||||||
</a>
|
</a>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
@@ -278,7 +278,7 @@
|
|||||||
<el-icon class="elView" v-if="proviteData?.predictionEvaluationReport?.name">
|
<el-icon class="elView" v-if="proviteData?.predictionEvaluationReport?.name">
|
||||||
<View @click="openFile(proviteData?.predictionEvaluationReport?.name)" />
|
<View @click="openFile(proviteData?.predictionEvaluationReport?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<a target="_blank" :href="proviteData?.predictionEvaluationReport?.url">
|
<a target="_blank" class="aLoad" @click="download(proviteData.predictionEvaluationReport.keyName)">
|
||||||
{{ proviteData?.predictionEvaluationReport?.name }}
|
{{ proviteData?.predictionEvaluationReport?.name }}
|
||||||
</a>
|
</a>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
@@ -286,7 +286,7 @@
|
|||||||
<el-icon class="elView" v-if="proviteData?.predictionEvaluationReviewOpinions?.name">
|
<el-icon class="elView" v-if="proviteData?.predictionEvaluationReviewOpinions?.name">
|
||||||
<View @click="openFile(proviteData?.predictionEvaluationReviewOpinions?.name)" />
|
<View @click="openFile(proviteData?.predictionEvaluationReviewOpinions?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<a target="_blank" :href="proviteData?.predictionEvaluationReviewOpinions?.url">
|
<a target="_blank" class="aLoad" @click="download(proviteData.predictionEvaluationReviewOpinions.keyName)">
|
||||||
{{ proviteData?.predictionEvaluationReviewOpinions?.name }}
|
{{ proviteData?.predictionEvaluationReviewOpinions?.name }}
|
||||||
</a>
|
</a>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
@@ -297,7 +297,7 @@
|
|||||||
<el-icon class="elView" v-if="proviteData?.substationMainWiringDiagram?.name">
|
<el-icon class="elView" v-if="proviteData?.substationMainWiringDiagram?.name">
|
||||||
<View @click="openFile(proviteData?.substationMainWiringDiagram?.name)" />
|
<View @click="openFile(proviteData?.substationMainWiringDiagram?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<a target="_blank" :href="proviteData?.substationMainWiringDiagram?.url">
|
<a target="_blank" class="aLoad" @click="download(proviteData.substationMainWiringDiagram.keyName)">
|
||||||
{{ proviteData?.substationMainWiringDiagram?.name }}
|
{{ proviteData?.substationMainWiringDiagram?.name }}
|
||||||
</a>
|
</a>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
@@ -305,7 +305,7 @@
|
|||||||
<el-icon class="elView" v-if="proviteData?.sensitiveDevices?.name">
|
<el-icon class="elView" v-if="proviteData?.sensitiveDevices?.name">
|
||||||
<View @click="openFile(proviteData?.sensitiveDevices?.name)" />
|
<View @click="openFile(proviteData?.sensitiveDevices?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<a target="_blank" :href="proviteData?.sensitiveDevices?.url">
|
<a target="_blank" class="aLoad" @click="download(proviteData.sensitiveDevices.keyName)">
|
||||||
{{ proviteData?.sensitiveDevices?.name }}
|
{{ proviteData?.sensitiveDevices?.name }}
|
||||||
</a>
|
</a>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
@@ -313,7 +313,7 @@
|
|||||||
<el-icon class="elView" v-if="proviteData?.antiInterferenceReport?.name">
|
<el-icon class="elView" v-if="proviteData?.antiInterferenceReport?.name">
|
||||||
<View @click="openFile(proviteData?.antiInterferenceReport?.name)" />
|
<View @click="openFile(proviteData?.antiInterferenceReport?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<a target="_blank" :href="proviteData?.antiInterferenceReport?.url">
|
<a target="_blank" class="aLoad" @click="download(proviteData.antiInterferenceReport.keyName)">
|
||||||
{{ proviteData?.antiInterferenceReport?.name }}
|
{{ proviteData?.antiInterferenceReport?.name }}
|
||||||
</a>
|
</a>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
@@ -321,7 +321,7 @@
|
|||||||
<el-icon class="elView" v-if="proviteData?.powerQualityReport?.name">
|
<el-icon class="elView" v-if="proviteData?.powerQualityReport?.name">
|
||||||
<View @click="openFile(proviteData?.powerQualityReport?.name)" />
|
<View @click="openFile(proviteData?.powerQualityReport?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<a target="_blank" :href="proviteData?.powerQualityReport?.url">
|
<a target="_blank" class="aLoad" @click="download(proviteData.powerQualityReport.keyName)">
|
||||||
{{ proviteData?.powerQualityReport?.name }}
|
{{ proviteData?.powerQualityReport?.name }}
|
||||||
</a>
|
</a>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
@@ -332,7 +332,7 @@
|
|||||||
<el-icon class="elView" v-if="proviteData?.additionalAttachments?.name">
|
<el-icon class="elView" v-if="proviteData?.additionalAttachments?.name">
|
||||||
<View @click="openFile(proviteData?.additionalAttachments?.name)" />
|
<View @click="openFile(proviteData?.additionalAttachments?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<a target="_blank" :href="proviteData?.additionalAttachments?.url">
|
<a target="_blank" class="aLoad" @click="download(proviteData.additionalAttachments.keyName)" >
|
||||||
{{ proviteData?.additionalAttachments?.name }}
|
{{ proviteData?.additionalAttachments?.name }}
|
||||||
</a>
|
</a>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
@@ -342,7 +342,7 @@
|
|||||||
<el-icon class="elView" v-if="item.name">
|
<el-icon class="elView" v-if="item.name">
|
||||||
<View @click="openFile(item.name)" />
|
<View @click="openFile(item.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<a target="_blank" :href="item.url">
|
<a target="_blank" class="aLoad" @click="download(item.keyName)">
|
||||||
{{ item.name }}
|
{{ item.name }}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
@@ -352,7 +352,7 @@
|
|||||||
<el-icon class="elView" v-if="item.name">
|
<el-icon class="elView" v-if="item.name">
|
||||||
<View @click="openFile(item.name)" />
|
<View @click="openFile(item.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<a target="_blank" :href="item.url">
|
<a target="_blank" class="aLoad" @click="download(item.keyName)" >
|
||||||
{{ item.name }}
|
{{ item.name }}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
@@ -361,7 +361,7 @@
|
|||||||
<el-icon class="elView" v-if="form.informationSecurityTestReport[0]?.name">
|
<el-icon class="elView" v-if="form.informationSecurityTestReport[0]?.name">
|
||||||
<View @click="openFile(form.informationSecurityTestReport[0]?.name)" />
|
<View @click="openFile(form.informationSecurityTestReport[0]?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<a target="_blank" :href="form.informationSecurityTestReport[0]?.url">
|
<a target="_blank" class="aLoad" @click="download(proviteData.predictionEvaluationReviewOpinions.keyName)" >
|
||||||
{{ form.informationSecurityTestReport[0]?.name }}
|
{{ form.informationSecurityTestReport[0]?.name }}
|
||||||
</a>
|
</a>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
@@ -370,7 +370,7 @@
|
|||||||
<el-icon class="elView" v-if="item.name">
|
<el-icon class="elView" v-if="item.name">
|
||||||
<View @click="openFile(item.name)" />
|
<View @click="openFile(item.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<a target="_blank" :href="item.url">
|
<a target="_blank" class="aLoad" @click="download(item.keyName)" >
|
||||||
{{ item.name }}
|
{{ item.name }}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
@@ -380,7 +380,7 @@
|
|||||||
<el-icon class="elView" v-if="item.name">
|
<el-icon class="elView" v-if="item.name">
|
||||||
<View @click="openFile(item.name)" />
|
<View @click="openFile(item.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<a target="_blank" :href="item.url">
|
<a target="_blank" class="aLoad" @click="download(item.keyName)">
|
||||||
{{ item.name }}
|
{{ item.name }}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
@@ -390,7 +390,7 @@
|
|||||||
<el-icon class="elView" v-if="form.acceptanceInspectionReportSingle[0]?.name">
|
<el-icon class="elView" v-if="form.acceptanceInspectionReportSingle[0]?.name">
|
||||||
<View @click="openFile(form.acceptanceInspectionReportSingle[0]?.name)" />
|
<View @click="openFile(form.acceptanceInspectionReportSingle[0]?.name)" />
|
||||||
</el-icon>
|
</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 }}
|
{{ form.acceptanceInspectionReportSingle[0]?.name }}
|
||||||
</a>
|
</a>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
@@ -399,7 +399,7 @@
|
|||||||
<el-icon class="elView" v-if="form.acceptanceInspectionReport[0]?.name">
|
<el-icon class="elView" v-if="form.acceptanceInspectionReport[0]?.name">
|
||||||
<View @click="openFile(form.acceptanceInspectionReport[0]?.name)" />
|
<View @click="openFile(form.acceptanceInspectionReport[0]?.name)" />
|
||||||
</el-icon>
|
</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 }}
|
{{ form.acceptanceInspectionReport[0]?.name }}
|
||||||
</a>
|
</a>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
@@ -407,7 +407,7 @@
|
|||||||
<el-icon class="elView" v-if="form.typeExperimentReport[0]?.name">
|
<el-icon class="elView" v-if="form.typeExperimentReport[0]?.name">
|
||||||
<View @click="openFile(form.typeExperimentReport[0]?.name)" />
|
<View @click="openFile(form.typeExperimentReport[0]?.name)" />
|
||||||
</el-icon>
|
</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 }}
|
{{ form.typeExperimentReport[0]?.name }}
|
||||||
</a>
|
</a>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
@@ -416,7 +416,7 @@
|
|||||||
<el-icon class="elView" v-if="form.factoryInspectionReport[0]?.name">
|
<el-icon class="elView" v-if="form.factoryInspectionReport[0]?.name">
|
||||||
<View @click="openFile(form.factoryInspectionReport[0]?.name)" />
|
<View @click="openFile(form.factoryInspectionReport[0]?.name)" />
|
||||||
</el-icon>
|
</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 }}
|
{{ form.factoryInspectionReport[0]?.name }}
|
||||||
</a>
|
</a>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
@@ -424,7 +424,7 @@
|
|||||||
<el-icon class="elView" v-if="form.performanceTestReport[0]?.name">
|
<el-icon class="elView" v-if="form.performanceTestReport[0]?.name">
|
||||||
<View @click="openFile(form.performanceTestReport[0]?.name)" />
|
<View @click="openFile(form.performanceTestReport[0]?.name)" />
|
||||||
</el-icon>
|
</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 }}
|
{{ form.performanceTestReport[0]?.name }}
|
||||||
</a>
|
</a>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
@@ -432,7 +432,7 @@
|
|||||||
<el-icon class="elView" v-if="form.mainWiringDiagram[0]?.name">
|
<el-icon class="elView" v-if="form.mainWiringDiagram[0]?.name">
|
||||||
<View @click="openFile(form.mainWiringDiagram[0]?.name)" />
|
<View @click="openFile(form.mainWiringDiagram[0]?.name)" />
|
||||||
</el-icon>
|
</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 }}
|
{{ form.mainWiringDiagram[0]?.name }}
|
||||||
</a>
|
</a>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
@@ -440,7 +440,7 @@
|
|||||||
<el-icon class="elView" v-if="form.runTheReport[0]?.name">
|
<el-icon class="elView" v-if="form.runTheReport[0]?.name">
|
||||||
<View @click="openFile(form.runTheReport[0]?.name)" />
|
<View @click="openFile(form.runTheReport[0]?.name)" />
|
||||||
</el-icon>
|
</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 }}
|
{{ form.runTheReport[0]?.name }}
|
||||||
</a>
|
</a>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
@@ -460,6 +460,7 @@ import { Link, View } from '@element-plus/icons-vue'
|
|||||||
import PreviewFile from '@/components/PreviewFile/index.vue'
|
import PreviewFile from '@/components/PreviewFile/index.vue'
|
||||||
import { getByDeptDevLine } from '@/api/supervision-boot/interfere/index'
|
import { getByDeptDevLine } from '@/api/supervision-boot/interfere/index'
|
||||||
import { addOrUpdateFile, getFileById } from '@/api/supervision-boot/interfere/index'
|
import { addOrUpdateFile, getFileById } from '@/api/supervision-boot/interfere/index'
|
||||||
|
import {download} from '@/utils/fileDownLoad'
|
||||||
defineOptions({ name: 'BpmUserReportDetail' })
|
defineOptions({ name: 'BpmUserReportDetail' })
|
||||||
|
|
||||||
const { query } = useRoute() // 查询参数
|
const { query } = useRoute() // 查询参数
|
||||||
@@ -579,6 +580,8 @@ const getInfo = async () => {
|
|||||||
} finally {
|
} finally {
|
||||||
detailLoading.value = false
|
detailLoading.value = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.log(form.value)
|
||||||
if (props.openType == 'sourcesOfInterference') {
|
if (props.openType == 'sourcesOfInterference') {
|
||||||
queryFiles()
|
queryFiles()
|
||||||
}
|
}
|
||||||
@@ -776,13 +779,16 @@ const getFileNamePath = async (val: any, pathName: any) => {
|
|||||||
if (pathName == 'feasibilityReport' && proviteData.value.feasibilityReport) {
|
if (pathName == 'feasibilityReport' && proviteData.value.feasibilityReport) {
|
||||||
proviteData.value.feasibilityReport = {
|
proviteData.value.feasibilityReport = {
|
||||||
name: res.data.fileName,
|
name: res.data.fileName,
|
||||||
|
keyName: res.data.name,
|
||||||
url: res.data.url
|
url: res.data.url
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
//项目初步设计说明书
|
//项目初步设计说明书
|
||||||
else if (pathName == 'preliminaryDesignDescription' && proviteData.value.preliminaryDesignDescription) {
|
else if (pathName == 'preliminaryDesignDescription' && proviteData.value.preliminaryDesignDescription) {
|
||||||
proviteData.value.preliminaryDesignDescription = {
|
proviteData.value.preliminaryDesignDescription = {
|
||||||
name: res.data.fileName,
|
name: res.data.fileName,
|
||||||
|
keyName: res.data.name,
|
||||||
url: res.data.url
|
url: res.data.url
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -790,6 +796,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
|
|||||||
else if (pathName == 'predictionEvaluationReport' && proviteData.value.predictionEvaluationReport) {
|
else if (pathName == 'predictionEvaluationReport' && proviteData.value.predictionEvaluationReport) {
|
||||||
proviteData.value.predictionEvaluationReport = {
|
proviteData.value.predictionEvaluationReport = {
|
||||||
name: res.data.fileName,
|
name: res.data.fileName,
|
||||||
|
keyName: res.data.name,
|
||||||
url: res.data.url
|
url: res.data.url
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -800,6 +807,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
|
|||||||
) {
|
) {
|
||||||
proviteData.value.predictionEvaluationReviewOpinions = {
|
proviteData.value.predictionEvaluationReviewOpinions = {
|
||||||
name: res.data.fileName,
|
name: res.data.fileName,
|
||||||
|
keyName: res.data.name,
|
||||||
url: res.data.url
|
url: res.data.url
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -807,6 +815,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
|
|||||||
else if (pathName == 'substationMainWiringDiagram' && proviteData.value.substationMainWiringDiagram) {
|
else if (pathName == 'substationMainWiringDiagram' && proviteData.value.substationMainWiringDiagram) {
|
||||||
proviteData.value.substationMainWiringDiagram = {
|
proviteData.value.substationMainWiringDiagram = {
|
||||||
name: res.data.fileName,
|
name: res.data.fileName,
|
||||||
|
keyName: res.data.name,
|
||||||
url: res.data.url
|
url: res.data.url
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -814,6 +823,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
|
|||||||
else if (pathName == 'sensitiveDevices' && proviteData.value.sensitiveDevices) {
|
else if (pathName == 'sensitiveDevices' && proviteData.value.sensitiveDevices) {
|
||||||
proviteData.value.sensitiveDevices = {
|
proviteData.value.sensitiveDevices = {
|
||||||
name: res.data.fileName,
|
name: res.data.fileName,
|
||||||
|
keyName: res.data.name,
|
||||||
url: res.data.url
|
url: res.data.url
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -821,6 +831,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
|
|||||||
else if (pathName == 'antiInterferenceReport' && proviteData.value.antiInterferenceReport) {
|
else if (pathName == 'antiInterferenceReport' && proviteData.value.antiInterferenceReport) {
|
||||||
proviteData.value.antiInterferenceReport = {
|
proviteData.value.antiInterferenceReport = {
|
||||||
name: res.data.fileName,
|
name: res.data.fileName,
|
||||||
|
keyName: res.data.name,
|
||||||
url: res.data.url
|
url: res.data.url
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -828,6 +839,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
|
|||||||
else if (pathName == 'powerQualityReport' && proviteData.value.powerQualityReport) {
|
else if (pathName == 'powerQualityReport' && proviteData.value.powerQualityReport) {
|
||||||
proviteData.value.powerQualityReport = {
|
proviteData.value.powerQualityReport = {
|
||||||
name: res.data.fileName,
|
name: res.data.fileName,
|
||||||
|
keyName: res.data.name,
|
||||||
url: res.data.url
|
url: res.data.url
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -835,6 +847,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
|
|||||||
else if (pathName == 'additionalAttachments' && proviteData.value.additionalAttachments) {
|
else if (pathName == 'additionalAttachments' && proviteData.value.additionalAttachments) {
|
||||||
proviteData.value.additionalAttachments = {
|
proviteData.value.additionalAttachments = {
|
||||||
name: res.data.fileName,
|
name: res.data.fileName,
|
||||||
|
keyName: res.data.name,
|
||||||
url: res.data.url
|
url: res.data.url
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -842,11 +855,13 @@ const getFileNamePath = async (val: any, pathName: any) => {
|
|||||||
if (pathName == 'netInReport') {
|
if (pathName == 'netInReport') {
|
||||||
netInReportList.value.push({
|
netInReportList.value.push({
|
||||||
name: res.data.fileName,
|
name: res.data.fileName,
|
||||||
|
keyName: res.data.name,
|
||||||
url: res.data.url
|
url: res.data.url
|
||||||
})
|
})
|
||||||
} else if (pathName == 'governReport') {
|
} else if (pathName == 'governReport') {
|
||||||
governReportList.value.push({
|
governReportList.value.push({
|
||||||
name: res.data.fileName,
|
name: res.data.fileName,
|
||||||
|
keyName: res.data.name,
|
||||||
url: res.data.url
|
url: res.data.url
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@@ -855,8 +870,10 @@ const getFileNamePath = async (val: any, pathName: any) => {
|
|||||||
}
|
}
|
||||||
const getFileNamePaths = async (val: any, pathName: any) => {
|
const getFileNamePaths = async (val: any, pathName: any) => {
|
||||||
let data = val.split(',')
|
let data = val.split(',')
|
||||||
|
|
||||||
for (let i = 0; i < data.length; i++) {
|
for (let i = 0; i < data.length; i++) {
|
||||||
await getFileNameAndFilePath({ filePath: '/supervision/' + data[i] }).then(res => {
|
await getFileNameAndFilePath({ filePath: '/supervision/' + data[i] }).then(res => {
|
||||||
|
res.data.keyName = res.data.name
|
||||||
res.data.name = res.data.fileName
|
res.data.name = res.data.fileName
|
||||||
form.value[pathName].push(res.data)
|
form.value[pathName].push(res.data)
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -107,7 +107,7 @@
|
|||||||
<el-icon class="elView" v-if="detailData?.factoryInspectionReport.name">
|
<el-icon class="elView" v-if="detailData?.factoryInspectionReport.name">
|
||||||
<View @click="openFile(detailData?.factoryInspectionReport.name)" />
|
<View @click="openFile(detailData?.factoryInspectionReport.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<a :href="detailData?.factoryInspectionReport.url">
|
<a class="aLoad" @click="download(detailData?.factoryInspectionReport.keyName)">
|
||||||
{{ detailData?.factoryInspectionReport.name }}
|
{{ detailData?.factoryInspectionReport.name }}
|
||||||
</a>
|
</a>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
@@ -115,7 +115,7 @@
|
|||||||
<el-icon class="elView" v-if="detailData?.informationSecurityTestReport.name">
|
<el-icon class="elView" v-if="detailData?.informationSecurityTestReport.name">
|
||||||
<View @click="openFile(detailData?.informationSecurityTestReport.name)" />
|
<View @click="openFile(detailData?.informationSecurityTestReport.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<a :href="detailData?.informationSecurityTestReport.url">
|
<a class="aLoad" @click="download(detailData?.informationSecurityTestReport.keyName)">
|
||||||
{{ detailData?.informationSecurityTestReport.name }}
|
{{ detailData?.informationSecurityTestReport.name }}
|
||||||
</a>
|
</a>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
@@ -123,25 +123,25 @@
|
|||||||
<el-icon class="elView" v-if="detailData?.otherAttachments.name">
|
<el-icon class="elView" v-if="detailData?.otherAttachments.name">
|
||||||
<View @click="openFile(detailData?.otherAttachments.name)" />
|
<View @click="openFile(detailData?.otherAttachments.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<a :href="detailData?.otherAttachments.url">{{ detailData?.otherAttachments.name }}</a>
|
<a class="aLoad" @click="download(detailData?.otherAttachments.keyName)">{{ detailData?.otherAttachments.name }}</a>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="告预警单材料" v-if="detailData?.performanceTestReport">
|
<el-descriptions-item label="告预警单材料" v-if="detailData?.performanceTestReport">
|
||||||
<el-icon class="elView" v-if="detailData?.performanceTestReport.name">
|
<el-icon class="elView" v-if="detailData?.performanceTestReport.name">
|
||||||
<View @click="openFile(detailData?.performanceTestReport.name)" />
|
<View @click="openFile(detailData?.performanceTestReport.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<a :href="detailData?.performanceTestReport.url">{{ detailData?.performanceTestReport.name }}</a>
|
<a class="aLoad" @click="download(detailData?.performanceTestReport.keyName)">{{ detailData?.performanceTestReport.name }}</a>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="告预警单反馈材料" v-if="detailData?.typeExperimentReport">
|
<el-descriptions-item label="告预警单反馈材料" v-if="detailData?.typeExperimentReport">
|
||||||
<el-icon class="elView" v-if="detailData?.typeExperimentReport.name">
|
<el-icon class="elView" v-if="detailData?.typeExperimentReport.name">
|
||||||
<View @click="openFile(detailData?.typeExperimentReport.name)" />
|
<View @click="openFile(detailData?.typeExperimentReport.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<a :href="detailData?.typeExperimentReport.url">{{ detailData?.typeExperimentReport.name }}</a>
|
<a class="aLoad" @click="download(detailData?.typeExperimentReport.keyName)">{{ detailData?.typeExperimentReport.name }}</a>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="评估报告" v-if="detailData?.performanceTestReport">
|
<el-descriptions-item label="评估报告" v-if="detailData?.performanceTestReport">
|
||||||
<el-icon class="elView" v-if="detailData?.performanceTestReport.name">
|
<el-icon class="elView" v-if="detailData?.performanceTestReport.name">
|
||||||
<View @click="openFile(detailData?.performanceTestReport.name)" />
|
<View @click="openFile(detailData?.performanceTestReport.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<a :href="detailData?.performanceTestReport.url">{{ detailData?.performanceTestReport.name }}</a>
|
<a class="aLoad" @click="download(detailData?.performanceTestReport.keyName)">{{ detailData?.performanceTestReport.name }}</a>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
</el-descriptions>
|
</el-descriptions>
|
||||||
</template>
|
</template>
|
||||||
@@ -155,6 +155,7 @@ import { getFileNameAndFilePath } from '@/api/system-boot/file'
|
|||||||
import { getUserByDeptId, getPlanDetailsById } from '@/api/supervision-boot/plan/index'
|
import { getUserByDeptId, getPlanDetailsById } from '@/api/supervision-boot/plan/index'
|
||||||
import { Link, View } from '@element-plus/icons-vue'
|
import { Link, View } from '@element-plus/icons-vue'
|
||||||
import { useAdminInfo } from '@/stores/adminInfo'
|
import { useAdminInfo } from '@/stores/adminInfo'
|
||||||
|
import {download} from '@/utils/fileDownload'
|
||||||
defineOptions({ name: 'BpmUserReportDetail' })
|
defineOptions({ name: 'BpmUserReportDetail' })
|
||||||
const { query } = useRoute() // 查询参数
|
const { query } = useRoute() // 查询参数
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
@@ -243,6 +244,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
|
|||||||
if (pathName == 'acceptanceInspectionReport' && detailData.value.acceptanceInspectionReport) {
|
if (pathName == 'acceptanceInspectionReport' && detailData.value.acceptanceInspectionReport) {
|
||||||
detailData.value.acceptanceInspectionReport = {
|
detailData.value.acceptanceInspectionReport = {
|
||||||
name: res.data.fileName,
|
name: res.data.fileName,
|
||||||
|
keyName:res.data.name,
|
||||||
url: res.data.url
|
url: res.data.url
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -253,6 +255,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
|
|||||||
) {
|
) {
|
||||||
detailData.value.acceptanceInspectionReportSingle = {
|
detailData.value.acceptanceInspectionReportSingle = {
|
||||||
name: res.data.fileName,
|
name: res.data.fileName,
|
||||||
|
keyName:res.data.name,
|
||||||
url: res.data.url
|
url: res.data.url
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -260,6 +263,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
|
|||||||
else if (pathName == 'factoryInspectionReport' && detailData.value.factoryInspectionReport) {
|
else if (pathName == 'factoryInspectionReport' && detailData.value.factoryInspectionReport) {
|
||||||
detailData.value.factoryInspectionReport = {
|
detailData.value.factoryInspectionReport = {
|
||||||
name: res.data.fileName,
|
name: res.data.fileName,
|
||||||
|
keyName:res.data.name,
|
||||||
url: res.data.url
|
url: res.data.url
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -267,6 +271,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
|
|||||||
else if (pathName == 'informationSecurityTestReport' && detailData.value.informationSecurityTestReport) {
|
else if (pathName == 'informationSecurityTestReport' && detailData.value.informationSecurityTestReport) {
|
||||||
detailData.value.informationSecurityTestReport = {
|
detailData.value.informationSecurityTestReport = {
|
||||||
name: res.data.fileName,
|
name: res.data.fileName,
|
||||||
|
keyName:res.data.name,
|
||||||
url: res.data.url
|
url: res.data.url
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -274,6 +279,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
|
|||||||
else if (pathName == 'lineFilePath' && detailData.value.lineFilePath) {
|
else if (pathName == 'lineFilePath' && detailData.value.lineFilePath) {
|
||||||
detailData.value.lineFilePath = {
|
detailData.value.lineFilePath = {
|
||||||
name: res.data.fileName,
|
name: res.data.fileName,
|
||||||
|
keyName:res.data.name,
|
||||||
url: res.data.url
|
url: res.data.url
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -281,6 +287,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
|
|||||||
else if (pathName == 'otherAttachments' && detailData.value.otherAttachments) {
|
else if (pathName == 'otherAttachments' && detailData.value.otherAttachments) {
|
||||||
detailData.value.otherAttachments = {
|
detailData.value.otherAttachments = {
|
||||||
name: res.data.fileName,
|
name: res.data.fileName,
|
||||||
|
keyName:res.data.name,
|
||||||
url: res.data.url
|
url: res.data.url
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
<el-icon class="elView" v-if="detailData?.problemName">
|
<el-icon class="elView" v-if="detailData?.problemName">
|
||||||
<View @click="openFile(detailData?.problemName)" />
|
<View @click="openFile(detailData?.problemName)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<a :href="detailData.problemPath" target="_blank">{{ detailData.problemName }}</a>
|
<a class="aLoad" @click="download(detailData.keyName)" target="_blank">{{ detailData.problemName }}</a>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
</template>
|
</template>
|
||||||
<el-descriptions-item :span="2" label="整改意见">
|
<el-descriptions-item :span="2" label="整改意见">
|
||||||
@@ -30,7 +30,7 @@
|
|||||||
<el-icon class="elView" v-if="detailData?.reportName">
|
<el-icon class="elView" v-if="detailData?.reportName">
|
||||||
<View @click="openFile(detailData?.reportName)" />
|
<View @click="openFile(detailData?.reportName)" />
|
||||||
</el-icon>
|
</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>
|
||||||
</el-descriptions>
|
</el-descriptions>
|
||||||
</div>
|
</div>
|
||||||
@@ -41,6 +41,7 @@ import { useRoute } from 'vue-router'
|
|||||||
import { propTypes } from '@/utils/propTypes'
|
import { propTypes } from '@/utils/propTypes'
|
||||||
import { getById } from '@/api/supervision-boot/leaflet'
|
import { getById } from '@/api/supervision-boot/leaflet'
|
||||||
import { getFileNameAndFilePath } from '@/api/system-boot/file'
|
import { getFileNameAndFilePath } from '@/api/system-boot/file'
|
||||||
|
import {download} from '@/utils/fileDownLoad'
|
||||||
import { Link, View } from '@element-plus/icons-vue'
|
import { Link, View } from '@element-plus/icons-vue'
|
||||||
|
|
||||||
defineOptions({ name: 'technology/detail' })
|
defineOptions({ name: 'technology/detail' })
|
||||||
@@ -88,12 +89,14 @@ const getFileData = async () => {
|
|||||||
//如果有问题附件
|
//如果有问题附件
|
||||||
if (detailData.value.problemPath) {
|
if (detailData.value.problemPath) {
|
||||||
await getFileNameAndFilePath({ filePath: detailData.value.problemPath }).then(res => {
|
await getFileNameAndFilePath({ filePath: detailData.value.problemPath }).then(res => {
|
||||||
|
detailData.value.keyName = res.data.name
|
||||||
detailData.value.problemPath = res.data.url
|
detailData.value.problemPath = res.data.url
|
||||||
detailData.value.problemName = res.data.fileName
|
detailData.value.problemName = res.data.fileName
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
await getFileNameAndFilePath({ filePath: detailData.value.reportPath }).then(res => {
|
await getFileNameAndFilePath({ filePath: detailData.value.reportPath }).then(res => {
|
||||||
|
detailData.value.keyName = res.data.name
|
||||||
detailData.value.reportPath = res.data.url
|
detailData.value.reportPath = res.data.url
|
||||||
detailData.value.reportName = res.data.fileName
|
detailData.value.reportName = res.data.fileName
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
<el-icon class="elView" v-if="supervisionReportDetail?.supervisionReportName">
|
<el-icon class="elView" v-if="supervisionReportDetail?.supervisionReportName">
|
||||||
<View @click="openFile(supervisionReportDetail?.supervisionReportName)" />
|
<View @click="openFile(supervisionReportDetail?.supervisionReportName)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<a :href="supervisionReportDetail.supervisionReportPath" target="_blank">
|
<a class="aLoad" @click="download(supervisionReportDetail.keyName)" target="_blank">
|
||||||
{{ supervisionReportDetail.supervisionReportName }}
|
{{ supervisionReportDetail.supervisionReportName }}
|
||||||
</a>
|
</a>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@@ -24,7 +24,7 @@
|
|||||||
<el-icon class="elView" v-if="problemDetail?.problemName">
|
<el-icon class="elView" v-if="problemDetail?.problemName">
|
||||||
<View @click="openFile(problemDetail?.problemName)" />
|
<View @click="openFile(problemDetail?.problemName)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<a :href="problemDetail.problemPath" target="_blank">{{ problemDetail.problemName }}</a>
|
<a class="aLoad" @click="download(supervisionReportDetail.keyName)" target="_blank">{{ problemDetail.problemName }}</a>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item label="采取的措施:" prop="takeStep">
|
<el-form-item label="采取的措施:" prop="takeStep">
|
||||||
@@ -58,6 +58,7 @@ import { ElMessage, genFileId, UploadProps, UploadRawFile } from 'element-plus'
|
|||||||
import TableStore from '@/utils/tableStore' // 若不是列表页面弹框可删除
|
import TableStore from '@/utils/tableStore' // 若不是列表页面弹框可删除
|
||||||
import { getFileNameAndFilePath, uploadFile } from '@/api/system-boot/file'
|
import { getFileNameAndFilePath, uploadFile } from '@/api/system-boot/file'
|
||||||
import { addFeedback, updateFeedback } from '@/api/supervision-boot/leaflet'
|
import { addFeedback, updateFeedback } from '@/api/supervision-boot/leaflet'
|
||||||
|
import {download} from '@/utils/fileDownload'
|
||||||
import { Link, View } from '@element-plus/icons-vue'
|
import { Link, View } from '@element-plus/icons-vue'
|
||||||
const openFile = (name: any) => {
|
const openFile = (name: any) => {
|
||||||
window.open(window.location.origin + '/#/previewFile?/supervision/' + name)
|
window.open(window.location.origin + '/#/previewFile?/supervision/' + name)
|
||||||
@@ -87,11 +88,13 @@ const showFile1 = ref(false)
|
|||||||
|
|
||||||
const problemDetail = reactive({
|
const problemDetail = reactive({
|
||||||
problemPath: '',
|
problemPath: '',
|
||||||
problemName: ''
|
problemName: '',
|
||||||
|
keyName: ''
|
||||||
})
|
})
|
||||||
const supervisionReportDetail = reactive({
|
const supervisionReportDetail = reactive({
|
||||||
supervisionReportPath: '',
|
supervisionReportPath: '',
|
||||||
supervisionReportName: ''
|
supervisionReportName: '',
|
||||||
|
keyName: ''
|
||||||
})
|
})
|
||||||
|
|
||||||
//处理成效报告
|
//处理成效报告
|
||||||
@@ -143,6 +146,7 @@ const open = async (
|
|||||||
if (problemPath) {
|
if (problemPath) {
|
||||||
let arrPath = problemPath.split(',')
|
let arrPath = problemPath.split(',')
|
||||||
await getFileNameAndFilePath({ filePath: arrPath[0] }).then(res => {
|
await getFileNameAndFilePath({ filePath: arrPath[0] }).then(res => {
|
||||||
|
problemDetail.keyName = res.data.name
|
||||||
problemDetail.problemPath = res.data.url
|
problemDetail.problemPath = res.data.url
|
||||||
problemDetail.problemName = res.data.fileName
|
problemDetail.problemName = res.data.fileName
|
||||||
})
|
})
|
||||||
@@ -154,6 +158,7 @@ const open = async (
|
|||||||
let arrPath = supervisionReport.split(',')
|
let arrPath = supervisionReport.split(',')
|
||||||
console.log('🚀 ~ arrPath:', arrPath)
|
console.log('🚀 ~ arrPath:', arrPath)
|
||||||
await getFileNameAndFilePath({ filePath: arrPath[0] }).then(res => {
|
await getFileNameAndFilePath({ filePath: arrPath[0] }).then(res => {
|
||||||
|
supervisionReportDetail.keyName = res.data.name
|
||||||
supervisionReportDetail.supervisionReportPath = res.data.url
|
supervisionReportDetail.supervisionReportPath = res.data.url
|
||||||
supervisionReportDetail.supervisionReportName = res.data.fileName
|
supervisionReportDetail.supervisionReportName = res.data.fileName
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -225,7 +225,7 @@
|
|||||||
<el-icon class="elView" v-if="proviteData?.feasibilityReport?.name">
|
<el-icon class="elView" v-if="proviteData?.feasibilityReport?.name">
|
||||||
<View @click="openFile(proviteData?.feasibilityReport?.name)" />
|
<View @click="openFile(proviteData?.feasibilityReport?.name)" />
|
||||||
</el-icon>
|
</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 }}
|
{{ proviteData.feasibilityReport?.name }}
|
||||||
</a>
|
</a>
|
||||||
</span>
|
</span>
|
||||||
@@ -240,7 +240,7 @@
|
|||||||
<el-icon class="elView" v-if="proviteData?.feasibilityReport?.name">
|
<el-icon class="elView" v-if="proviteData?.feasibilityReport?.name">
|
||||||
<View @click="openFile(proviteData?.feasibilityReport?.name)" />
|
<View @click="openFile(proviteData?.feasibilityReport?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<a target="_blank" :href="proviteData.feasibilityReport?.url">
|
<a target="_blank" class="aLoad" @click="download(proviteData.feasibilityReport?.keyName)">
|
||||||
{{ proviteData.feasibilityReport?.name }}
|
{{ proviteData.feasibilityReport?.name }}
|
||||||
</a>
|
</a>
|
||||||
</span>
|
</span>
|
||||||
@@ -248,7 +248,7 @@
|
|||||||
<el-icon class="elView" v-if="proviteData?.feasibilityReport?.name">
|
<el-icon class="elView" v-if="proviteData?.feasibilityReport?.name">
|
||||||
<View @click="openFile(proviteData?.feasibilityReport?.name)" />
|
<View @click="openFile(proviteData?.feasibilityReport?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<a target="_blank" :href="proviteData.feasibilityReport?.url">
|
<a target="_blank" class="aLoad" @click="download(proviteData.feasibilityReport?.keyName)">
|
||||||
{{ proviteData.feasibilityReport?.name }}
|
{{ proviteData.feasibilityReport?.name }}
|
||||||
</a>
|
</a>
|
||||||
</span>
|
</span>
|
||||||
@@ -258,7 +258,7 @@
|
|||||||
<View @click="openFile(proviteData?.preliminaryDesignDescription?.name)" />
|
<View @click="openFile(proviteData?.preliminaryDesignDescription?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
|
|
||||||
<a target="_blank" :href="proviteData?.preliminaryDesignDescription?.url">
|
<a target="_blank" class="aLoad" @click="download(proviteData?.preliminaryDesignDescription?.keyName)">
|
||||||
{{ proviteData?.preliminaryDesignDescription?.name }}
|
{{ proviteData?.preliminaryDesignDescription?.name }}
|
||||||
</a>
|
</a>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
@@ -266,7 +266,7 @@
|
|||||||
<el-icon class="elView" v-if="proviteData?.predictionEvaluationReport?.name">
|
<el-icon class="elView" v-if="proviteData?.predictionEvaluationReport?.name">
|
||||||
<View @click="openFile(proviteData?.predictionEvaluationReport?.name)" />
|
<View @click="openFile(proviteData?.predictionEvaluationReport?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<a target="_blank" :href="proviteData?.predictionEvaluationReport?.url">
|
<a target="_blank" class="aLoad" @click="download(proviteData?.predictionEvaluationReport?.keyName)">
|
||||||
{{ proviteData?.predictionEvaluationReport?.name }}
|
{{ proviteData?.predictionEvaluationReport?.name }}
|
||||||
</a>
|
</a>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
@@ -274,7 +274,7 @@
|
|||||||
<el-icon class="elView" v-if="proviteData?.predictionEvaluationReviewOpinions?.name">
|
<el-icon class="elView" v-if="proviteData?.predictionEvaluationReviewOpinions?.name">
|
||||||
<View @click="openFile(proviteData?.predictionEvaluationReviewOpinions?.name)" />
|
<View @click="openFile(proviteData?.predictionEvaluationReviewOpinions?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<a target="_blank" :href="proviteData?.predictionEvaluationReviewOpinions?.url">
|
<a target="_blank" class="aLoad" @click="download(proviteData?.predictionEvaluationReviewOpinions?.keyName)">
|
||||||
{{ proviteData?.predictionEvaluationReviewOpinions?.name }}
|
{{ proviteData?.predictionEvaluationReviewOpinions?.name }}
|
||||||
</a>
|
</a>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
@@ -285,7 +285,7 @@
|
|||||||
<el-icon class="elView" v-if="proviteData?.substationMainWiringDiagram?.name">
|
<el-icon class="elView" v-if="proviteData?.substationMainWiringDiagram?.name">
|
||||||
<View @click="openFile(proviteData?.substationMainWiringDiagram?.name)" />
|
<View @click="openFile(proviteData?.substationMainWiringDiagram?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<a target="_blank" :href="proviteData?.substationMainWiringDiagram?.url">
|
<a target="_blank" class="aLoad" @click="download(proviteData?.substationMainWiringDiagram?.keyName)">
|
||||||
{{ proviteData?.substationMainWiringDiagram?.name }}
|
{{ proviteData?.substationMainWiringDiagram?.name }}
|
||||||
</a>
|
</a>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
@@ -293,7 +293,7 @@
|
|||||||
<el-icon class="elView" v-if="proviteData?.sensitiveDevices?.name">
|
<el-icon class="elView" v-if="proviteData?.sensitiveDevices?.name">
|
||||||
<View @click="openFile(proviteData?.sensitiveDevices?.name)" />
|
<View @click="openFile(proviteData?.sensitiveDevices?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<a target="_blank" :href="proviteData?.sensitiveDevices?.url">
|
<a target="_blank" class="aLoad" @click="download(proviteData?.sensitiveDevices?.keyName)">
|
||||||
{{ proviteData?.sensitiveDevices?.name }}
|
{{ proviteData?.sensitiveDevices?.name }}
|
||||||
</a>
|
</a>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
@@ -301,7 +301,7 @@
|
|||||||
<el-icon class="elView" v-if="proviteData?.antiInterferenceReport?.name">
|
<el-icon class="elView" v-if="proviteData?.antiInterferenceReport?.name">
|
||||||
<View @click="openFile(proviteData?.antiInterferenceReport?.name)" />
|
<View @click="openFile(proviteData?.antiInterferenceReport?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<a target="_blank" :href="proviteData?.antiInterferenceReport?.url">
|
<a target="_blank" class="aLoad" @click="download(proviteData?.antiInterferenceReport?.keyName)">
|
||||||
{{ proviteData?.antiInterferenceReport?.name }}
|
{{ proviteData?.antiInterferenceReport?.name }}
|
||||||
</a>
|
</a>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
@@ -309,7 +309,7 @@
|
|||||||
<el-icon class="elView" v-if="proviteData?.powerQualityReport?.name">
|
<el-icon class="elView" v-if="proviteData?.powerQualityReport?.name">
|
||||||
<View @click="openFile(proviteData?.powerQualityReport?.name)" />
|
<View @click="openFile(proviteData?.powerQualityReport?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<a target="_blank" :href="proviteData?.powerQualityReport?.url">
|
<a target="_blank" class="aLoad" @click="download(proviteData?.powerQualityReport?.keyName)">
|
||||||
{{ proviteData?.powerQualityReport?.name }}
|
{{ proviteData?.powerQualityReport?.name }}
|
||||||
</a>
|
</a>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
@@ -320,7 +320,7 @@
|
|||||||
<el-icon class="elView" v-if="proviteData?.additionalAttachments?.name">
|
<el-icon class="elView" v-if="proviteData?.additionalAttachments?.name">
|
||||||
<View @click="openFile(proviteData?.additionalAttachments?.name)" />
|
<View @click="openFile(proviteData?.additionalAttachments?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<a target="_blank" :href="proviteData?.additionalAttachments?.url">
|
<a target="_blank" class="aLoad" @click="download(proviteData?.additionalAttachments?.keyName)">
|
||||||
{{ proviteData?.additionalAttachments?.name }}
|
{{ proviteData?.additionalAttachments?.name }}
|
||||||
</a>
|
</a>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
@@ -330,7 +330,7 @@
|
|||||||
<el-icon class="elView" v-if="item.name">
|
<el-icon class="elView" v-if="item.name">
|
||||||
<View @click="openFile(item.name)" />
|
<View @click="openFile(item.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<a target="_blank" :href="item.url">
|
<a target="_blank" class="aLoad" @click="download(item.keyName)">
|
||||||
{{ item.name }}
|
{{ item.name }}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
@@ -340,7 +340,7 @@
|
|||||||
<el-icon class="elView" v-if="item.name">
|
<el-icon class="elView" v-if="item.name">
|
||||||
<View @click="openFile(item.name)" />
|
<View @click="openFile(item.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<a target="_blank" :href="item.url">
|
<a target="_blank" class="aLoad" @click="download(item.keyName)">
|
||||||
{{ item.name }}
|
{{ item.name }}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
@@ -349,7 +349,7 @@
|
|||||||
<el-icon class="elView" v-if="form.informationSecurityTestReport[0]?.name">
|
<el-icon class="elView" v-if="form.informationSecurityTestReport[0]?.name">
|
||||||
<View @click="openFile(form.informationSecurityTestReport[0]?.name)" />
|
<View @click="openFile(form.informationSecurityTestReport[0]?.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<a target="_blank" :href="form.informationSecurityTestReport[0]?.url">
|
<a target="_blank" class="aLoad" @click="download(form.informationSecurityTestReport[0]?.keyName)">
|
||||||
{{ form.informationSecurityTestReport[0]?.name }}
|
{{ form.informationSecurityTestReport[0]?.name }}
|
||||||
</a>
|
</a>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
@@ -358,7 +358,7 @@
|
|||||||
<el-icon class="elView" v-if="item.name">
|
<el-icon class="elView" v-if="item.name">
|
||||||
<View @click="openFile(item.name)" />
|
<View @click="openFile(item.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<a target="_blank" :href="item.url">
|
<a target="_blank" class="aLoad" @click="download(item.keyName)">
|
||||||
{{ item.name }}
|
{{ item.name }}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
@@ -368,7 +368,7 @@
|
|||||||
<el-icon class="elView" v-if="item.name">
|
<el-icon class="elView" v-if="item.name">
|
||||||
<View @click="openFile(item.name)" />
|
<View @click="openFile(item.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<a target="_blank" :href="item.url">
|
<a target="_blank" class="aLoad" @click="download(item.keyName)">
|
||||||
{{ item.name }}
|
{{ item.name }}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
@@ -378,7 +378,7 @@
|
|||||||
<el-icon class="elView" v-if="form.acceptanceInspectionReportSingle[0]?.name">
|
<el-icon class="elView" v-if="form.acceptanceInspectionReportSingle[0]?.name">
|
||||||
<View @click="openFile(form.acceptanceInspectionReportSingle[0]?.name)" />
|
<View @click="openFile(form.acceptanceInspectionReportSingle[0]?.name)" />
|
||||||
</el-icon>
|
</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 }}
|
{{ form.acceptanceInspectionReportSingle[0]?.name }}
|
||||||
</a>
|
</a>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
@@ -387,7 +387,7 @@
|
|||||||
<el-icon class="elView" v-if="form.acceptanceInspectionReport[0]?.name">
|
<el-icon class="elView" v-if="form.acceptanceInspectionReport[0]?.name">
|
||||||
<View @click="openFile(form.acceptanceInspectionReport[0]?.name)" />
|
<View @click="openFile(form.acceptanceInspectionReport[0]?.name)" />
|
||||||
</el-icon>
|
</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 }}
|
{{ form.acceptanceInspectionReport[0]?.name }}
|
||||||
</a>
|
</a>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
@@ -395,7 +395,7 @@
|
|||||||
<el-icon class="elView" v-if="form.typeExperimentReport[0]?.name">
|
<el-icon class="elView" v-if="form.typeExperimentReport[0]?.name">
|
||||||
<View @click="openFile(form.typeExperimentReport[0]?.name)" />
|
<View @click="openFile(form.typeExperimentReport[0]?.name)" />
|
||||||
</el-icon>
|
</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 }}
|
{{ form.typeExperimentReport[0]?.name }}
|
||||||
</a>
|
</a>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
@@ -404,7 +404,7 @@
|
|||||||
<el-icon class="elView" v-if="form.factoryInspectionReport[0]?.name">
|
<el-icon class="elView" v-if="form.factoryInspectionReport[0]?.name">
|
||||||
<View @click="openFile(form.factoryInspectionReport[0]?.name)" />
|
<View @click="openFile(form.factoryInspectionReport[0]?.name)" />
|
||||||
</el-icon>
|
</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 }}
|
{{ form.factoryInspectionReport[0]?.name }}
|
||||||
</a>
|
</a>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
@@ -412,7 +412,7 @@
|
|||||||
<el-icon class="elView" v-if="form.performanceTestReport[0]?.name">
|
<el-icon class="elView" v-if="form.performanceTestReport[0]?.name">
|
||||||
<View @click="openFile(form.performanceTestReport[0]?.name)" />
|
<View @click="openFile(form.performanceTestReport[0]?.name)" />
|
||||||
</el-icon>
|
</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 }}
|
{{ form.performanceTestReport[0]?.name }}
|
||||||
</a>
|
</a>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
@@ -420,7 +420,7 @@
|
|||||||
<el-icon class="elView" v-if="form.mainWiringDiagram[0]?.name">
|
<el-icon class="elView" v-if="form.mainWiringDiagram[0]?.name">
|
||||||
<View @click="openFile(form.mainWiringDiagram[0]?.name)" />
|
<View @click="openFile(form.mainWiringDiagram[0]?.name)" />
|
||||||
</el-icon>
|
</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 }}
|
{{ form.mainWiringDiagram[0]?.name }}
|
||||||
</a>
|
</a>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
@@ -428,7 +428,7 @@
|
|||||||
<el-icon class="elView" v-if="form.runTheReport[0]?.name">
|
<el-icon class="elView" v-if="form.runTheReport[0]?.name">
|
||||||
<View @click="openFile(form.runTheReport[0]?.name)" />
|
<View @click="openFile(form.runTheReport[0]?.name)" />
|
||||||
</el-icon>
|
</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 }}
|
{{ form.runTheReport[0]?.name }}
|
||||||
</a>
|
</a>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
@@ -448,6 +448,7 @@ import { Link, View } from '@element-plus/icons-vue'
|
|||||||
import PreviewFile from '@/components/PreviewFile/index.vue'
|
import PreviewFile from '@/components/PreviewFile/index.vue'
|
||||||
import { getByDeptDevLine } from '@/api/supervision-boot/interfere/index'
|
import { getByDeptDevLine } from '@/api/supervision-boot/interfere/index'
|
||||||
import { addOrUpdateFile, getFileById } from '@/api/supervision-boot/interfere/index'
|
import { addOrUpdateFile, getFileById } from '@/api/supervision-boot/interfere/index'
|
||||||
|
import {download}from '@/utils/fileDownload'
|
||||||
defineOptions({ name: 'BpmUserReportDetail' })
|
defineOptions({ name: 'BpmUserReportDetail' })
|
||||||
|
|
||||||
const { query } = useRoute() // 查询参数
|
const { query } = useRoute() // 查询参数
|
||||||
@@ -738,6 +739,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
|
|||||||
if (pathName == 'feasibilityReport' && proviteData.value.feasibilityReport) {
|
if (pathName == 'feasibilityReport' && proviteData.value.feasibilityReport) {
|
||||||
proviteData.value.feasibilityReport = {
|
proviteData.value.feasibilityReport = {
|
||||||
name: res.data.fileName,
|
name: res.data.fileName,
|
||||||
|
keyName: res.data.name,
|
||||||
url: res.data.url
|
url: res.data.url
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -745,6 +747,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
|
|||||||
else if (pathName == 'preliminaryDesignDescription' && proviteData.value.preliminaryDesignDescription) {
|
else if (pathName == 'preliminaryDesignDescription' && proviteData.value.preliminaryDesignDescription) {
|
||||||
proviteData.value.preliminaryDesignDescription = {
|
proviteData.value.preliminaryDesignDescription = {
|
||||||
name: res.data.fileName,
|
name: res.data.fileName,
|
||||||
|
keyName: res.data.name,
|
||||||
url: res.data.url
|
url: res.data.url
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -752,6 +755,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
|
|||||||
else if (pathName == 'predictionEvaluationReport' && proviteData.value.predictionEvaluationReport) {
|
else if (pathName == 'predictionEvaluationReport' && proviteData.value.predictionEvaluationReport) {
|
||||||
proviteData.value.predictionEvaluationReport = {
|
proviteData.value.predictionEvaluationReport = {
|
||||||
name: res.data.fileName,
|
name: res.data.fileName,
|
||||||
|
keyName: res.data.name,
|
||||||
url: res.data.url
|
url: res.data.url
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -762,6 +766,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
|
|||||||
) {
|
) {
|
||||||
proviteData.value.predictionEvaluationReviewOpinions = {
|
proviteData.value.predictionEvaluationReviewOpinions = {
|
||||||
name: res.data.fileName,
|
name: res.data.fileName,
|
||||||
|
keyName: res.data.name,
|
||||||
url: res.data.url
|
url: res.data.url
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -769,6 +774,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
|
|||||||
else if (pathName == 'substationMainWiringDiagram' && proviteData.value.substationMainWiringDiagram) {
|
else if (pathName == 'substationMainWiringDiagram' && proviteData.value.substationMainWiringDiagram) {
|
||||||
proviteData.value.substationMainWiringDiagram = {
|
proviteData.value.substationMainWiringDiagram = {
|
||||||
name: res.data.fileName,
|
name: res.data.fileName,
|
||||||
|
keyName: res.data.name,
|
||||||
url: res.data.url
|
url: res.data.url
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -776,6 +782,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
|
|||||||
else if (pathName == 'sensitiveDevices' && proviteData.value.sensitiveDevices) {
|
else if (pathName == 'sensitiveDevices' && proviteData.value.sensitiveDevices) {
|
||||||
proviteData.value.sensitiveDevices = {
|
proviteData.value.sensitiveDevices = {
|
||||||
name: res.data.fileName,
|
name: res.data.fileName,
|
||||||
|
keyName: res.data.name,
|
||||||
url: res.data.url
|
url: res.data.url
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -783,6 +790,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
|
|||||||
else if (pathName == 'antiInterferenceReport' && proviteData.value.antiInterferenceReport) {
|
else if (pathName == 'antiInterferenceReport' && proviteData.value.antiInterferenceReport) {
|
||||||
proviteData.value.antiInterferenceReport = {
|
proviteData.value.antiInterferenceReport = {
|
||||||
name: res.data.fileName,
|
name: res.data.fileName,
|
||||||
|
keyName: res.data.name,
|
||||||
url: res.data.url
|
url: res.data.url
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -790,6 +798,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
|
|||||||
else if (pathName == 'powerQualityReport' && proviteData.value.powerQualityReport) {
|
else if (pathName == 'powerQualityReport' && proviteData.value.powerQualityReport) {
|
||||||
proviteData.value.powerQualityReport = {
|
proviteData.value.powerQualityReport = {
|
||||||
name: res.data.fileName,
|
name: res.data.fileName,
|
||||||
|
keyName: res.data.name,
|
||||||
url: res.data.url
|
url: res.data.url
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -797,6 +806,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
|
|||||||
else if (pathName == 'additionalAttachments' && proviteData.value.additionalAttachments) {
|
else if (pathName == 'additionalAttachments' && proviteData.value.additionalAttachments) {
|
||||||
proviteData.value.additionalAttachments = {
|
proviteData.value.additionalAttachments = {
|
||||||
name: res.data.fileName,
|
name: res.data.fileName,
|
||||||
|
keyName: res.data.name,
|
||||||
url: res.data.url
|
url: res.data.url
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -804,11 +814,13 @@ const getFileNamePath = async (val: any, pathName: any) => {
|
|||||||
if (pathName == 'netInReport') {
|
if (pathName == 'netInReport') {
|
||||||
netInReportList.value.push({
|
netInReportList.value.push({
|
||||||
name: res.data.fileName,
|
name: res.data.fileName,
|
||||||
|
keyName: res.data.name,
|
||||||
url: res.data.url
|
url: res.data.url
|
||||||
})
|
})
|
||||||
} else if (pathName == 'governReport') {
|
} else if (pathName == 'governReport') {
|
||||||
governReportList.value.push({
|
governReportList.value.push({
|
||||||
name: res.data.fileName,
|
name: res.data.fileName,
|
||||||
|
keyName: res.data.name,
|
||||||
url: res.data.url
|
url: res.data.url
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@@ -819,6 +831,7 @@ const getFileNamePaths = async (val: any, pathName: any) => {
|
|||||||
let data = val.split(',')
|
let data = val.split(',')
|
||||||
for (let i = 0; i < data.length; i++) {
|
for (let i = 0; i < data.length; i++) {
|
||||||
await getFileNameAndFilePath({ filePath: '/supervision/' + data[i] }).then(res => {
|
await getFileNameAndFilePath({ filePath: '/supervision/' + data[i] }).then(res => {
|
||||||
|
res.data.keyName = res.data.name
|
||||||
res.data.name = res.data.fileName
|
res.data.name = res.data.fileName
|
||||||
form.value[pathName].push(res.data)
|
form.value[pathName].push(res.data)
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -27,7 +27,7 @@
|
|||||||
<el-icon class="elView" v-if="detailData?.reportPaths?.fileName">
|
<el-icon class="elView" v-if="detailData?.reportPaths?.fileName">
|
||||||
<View @click="openFile(detailData?.reportPaths?.fileName)" />
|
<View @click="openFile(detailData?.reportPaths?.fileName)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<a :href="detailData.reportPaths?.url">
|
<a class="aLoad" @click="download(detailData.reportPaths?.keyName)">
|
||||||
{{ detailData.reportPaths?.fileName }}
|
{{ detailData.reportPaths?.fileName }}
|
||||||
</a>
|
</a>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
@@ -46,6 +46,7 @@ import { propTypes } from '@/utils/propTypes'
|
|||||||
import { getInfoById } from '@/api/supervision-boot/cycleDetection/index'
|
import { getInfoById } from '@/api/supervision-boot/cycleDetection/index'
|
||||||
import { getFileNameAndFilePath } from '@/api/system-boot/file'
|
import { getFileNameAndFilePath } from '@/api/system-boot/file'
|
||||||
import { useDictData } from '@/stores/dictData'
|
import { useDictData } from '@/stores/dictData'
|
||||||
|
import {download} from '@/utils/fileDownLoad'
|
||||||
import { Link, View } from '@element-plus/icons-vue'
|
import { Link, View } from '@element-plus/icons-vue'
|
||||||
const { query } = useRoute() // 查询参数
|
const { query } = useRoute() // 查询参数
|
||||||
const openFile = (name: any) => {
|
const openFile = (name: any) => {
|
||||||
@@ -69,6 +70,7 @@ const getInfo = async () => {
|
|||||||
detailData.value = res.data
|
detailData.value = res.data
|
||||||
})
|
})
|
||||||
await getFileNameAndFilePath({ filePath: detailData.value.checkFilePath }).then((res: any) => {
|
await getFileNameAndFilePath({ filePath: detailData.value.checkFilePath }).then((res: any) => {
|
||||||
|
detailData.value.keyName = res.data.name
|
||||||
detailData.value.reportPaths = res.data
|
detailData.value.reportPaths = res.data
|
||||||
})
|
})
|
||||||
} finally {
|
} finally {
|
||||||
|
|||||||
@@ -339,19 +339,19 @@ const numList = [
|
|||||||
const timeIntervalList = [
|
const timeIntervalList = [
|
||||||
{
|
{
|
||||||
id: 1,
|
id: 1,
|
||||||
name: '一分钟'
|
name: '1分钟'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 3,
|
id: 3,
|
||||||
name: '三分钟'
|
name: '3分钟'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 5,
|
id: 5,
|
||||||
name: '五分钟'
|
name: '5分钟'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 10,
|
id: 10,
|
||||||
name: '十分钟'
|
name: '10分钟'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
//获取登陆用户姓名和部门
|
//获取登陆用户姓名和部门
|
||||||
|
|||||||
@@ -116,7 +116,7 @@
|
|||||||
<el-icon class="elView" v-if="detailData?.mainWiringDiagram.name">
|
<el-icon class="elView" v-if="detailData?.mainWiringDiagram.name">
|
||||||
<View @click="openFile(detailData?.mainWiringDiagram.name)" />
|
<View @click="openFile(detailData?.mainWiringDiagram.name)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<a target="_blank" :href="detailData?.mainWiringDiagram.url">
|
<a target="_blank" class="aLoad" @click="download(detailData?.mainWiringDiagram.keyName)">
|
||||||
{{ detailData?.mainWiringDiagram.name }}
|
{{ detailData?.mainWiringDiagram.name }}
|
||||||
</a>
|
</a>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
@@ -130,6 +130,7 @@ import { propTypes } from '@/utils/propTypes'
|
|||||||
import { getTempLineDetailsById } from '@/api/supervision-boot/monitorpoint/index'
|
import { getTempLineDetailsById } from '@/api/supervision-boot/monitorpoint/index'
|
||||||
import { useDictData } from '@/stores/dictData'
|
import { useDictData } from '@/stores/dictData'
|
||||||
import { getFileNameAndFilePath } from '@/api/system-boot/file'
|
import { getFileNameAndFilePath } from '@/api/system-boot/file'
|
||||||
|
import {download} from '@/utils/fileDownLoad'
|
||||||
import { Link, View } from '@element-plus/icons-vue'
|
import { Link, View } from '@element-plus/icons-vue'
|
||||||
const openFile = (name: any) => {
|
const openFile = (name: any) => {
|
||||||
window.open(window.location.origin + '/#/previewFile?/supervision/' + name)
|
window.open(window.location.origin + '/#/previewFile?/supervision/' + name)
|
||||||
@@ -148,19 +149,19 @@ const queryId = query.id as unknown as string // 从 URL 传递过来的 id 编
|
|||||||
const timeIntervalList = [
|
const timeIntervalList = [
|
||||||
{
|
{
|
||||||
id: '1',
|
id: '1',
|
||||||
name: '一分钟'
|
name: '1分钟'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: '3',
|
id: '3',
|
||||||
name: '三分钟'
|
name: '3分钟'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: '5',
|
id: '5',
|
||||||
name: '五分钟'
|
name: '5分钟'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: '10',
|
id: '10',
|
||||||
name: '十分钟'
|
name: '10分钟'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
//用户状态数组
|
//用户状态数组
|
||||||
@@ -238,6 +239,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
|
|||||||
if (pathName == 'lineFilePath' && detailData.value.lineFilePath) {
|
if (pathName == 'lineFilePath' && detailData.value.lineFilePath) {
|
||||||
detailData.value.lineFilePath = {
|
detailData.value.lineFilePath = {
|
||||||
name: res.data.fileName,
|
name: res.data.fileName,
|
||||||
|
keyName: res.data.name,
|
||||||
url: res.data.url
|
url: res.data.url
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -245,6 +247,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
|
|||||||
else if (pathName == 'mainWiringDiagram' && detailData.value.mainWiringDiagram) {
|
else if (pathName == 'mainWiringDiagram' && detailData.value.mainWiringDiagram) {
|
||||||
detailData.value.mainWiringDiagram = {
|
detailData.value.mainWiringDiagram = {
|
||||||
name: res.data.fileName,
|
name: res.data.fileName,
|
||||||
|
keyName: res.data.name,
|
||||||
url: res.data.url
|
url: res.data.url
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -203,7 +203,7 @@
|
|||||||
</el-icon>
|
</el-icon>
|
||||||
<a
|
<a
|
||||||
target="_blank"
|
target="_blank"
|
||||||
:href="detailData?.informationSecurityTestReport?.url"
|
class="aLoad" @click="download(detailData?.informationSecurityTestReport.keyName)"
|
||||||
v-if="detailData?.informationSecurityTestReport?.name"
|
v-if="detailData?.informationSecurityTestReport?.name"
|
||||||
>
|
>
|
||||||
{{ detailData?.informationSecurityTestReport.name }}
|
{{ detailData?.informationSecurityTestReport.name }}
|
||||||
@@ -215,7 +215,7 @@
|
|||||||
</el-icon>
|
</el-icon>
|
||||||
<a
|
<a
|
||||||
target="_blank"
|
target="_blank"
|
||||||
:href="detailData?.acceptanceInspectionReportSingle?.url"
|
class="aLoad" @click="download(detailData?.acceptanceInspectionReportSingle.keyName)"
|
||||||
v-if="detailData?.acceptanceInspectionReportSingle?.name"
|
v-if="detailData?.acceptanceInspectionReportSingle?.name"
|
||||||
>
|
>
|
||||||
{{ detailData?.acceptanceInspectionReportSingle?.name }}
|
{{ detailData?.acceptanceInspectionReportSingle?.name }}
|
||||||
@@ -227,7 +227,7 @@
|
|||||||
</el-icon>
|
</el-icon>
|
||||||
<a
|
<a
|
||||||
target="_blank"
|
target="_blank"
|
||||||
:href="detailData?.acceptanceInspectionReport?.url"
|
class="aLoad" @click="download(detailData?.acceptanceInspectionReport.keyName)"
|
||||||
v-if="detailData?.acceptanceInspectionReport?.name"
|
v-if="detailData?.acceptanceInspectionReport?.name"
|
||||||
>
|
>
|
||||||
{{ detailData?.acceptanceInspectionReport?.name }}
|
{{ detailData?.acceptanceInspectionReport?.name }}
|
||||||
@@ -240,7 +240,7 @@
|
|||||||
<a
|
<a
|
||||||
target="_blank"
|
target="_blank"
|
||||||
v-if="detailData?.typeExperimentReport?.name"
|
v-if="detailData?.typeExperimentReport?.name"
|
||||||
:href="detailData?.typeExperimentReport?.url"
|
class="aLoad" @click="download(detailData?.typeExperimentReport.keyName)"
|
||||||
>
|
>
|
||||||
{{ detailData?.typeExperimentReport?.name }}
|
{{ detailData?.typeExperimentReport?.name }}
|
||||||
</a>
|
</a>
|
||||||
@@ -251,7 +251,7 @@
|
|||||||
</el-icon>
|
</el-icon>
|
||||||
<a
|
<a
|
||||||
target="_blank"
|
target="_blank"
|
||||||
:href="detailData?.factoryInspectionReport?.url"
|
class="aLoad" @click="download(detailData?.factoryInspectionReport.keyName)"
|
||||||
v-if="detailData?.factoryInspectionReport?.name"
|
v-if="detailData?.factoryInspectionReport?.name"
|
||||||
>
|
>
|
||||||
{{ detailData?.factoryInspectionReport?.name }}
|
{{ detailData?.factoryInspectionReport?.name }}
|
||||||
@@ -263,7 +263,7 @@
|
|||||||
</el-icon>
|
</el-icon>
|
||||||
<a
|
<a
|
||||||
target="_blank"
|
target="_blank"
|
||||||
:href="detailData?.performanceTestReport?.url"
|
class="aLoad" @click="download(detailData?.performanceTestReport.keyName)"
|
||||||
v-if="detailData?.performanceTestReport?.name"
|
v-if="detailData?.performanceTestReport?.name"
|
||||||
>
|
>
|
||||||
{{ detailData?.performanceTestReport?.name }}
|
{{ detailData?.performanceTestReport?.name }}
|
||||||
@@ -273,7 +273,7 @@
|
|||||||
<el-icon class="elView" v-if="detailData?.otherAttachments?.name">
|
<el-icon class="elView" v-if="detailData?.otherAttachments?.name">
|
||||||
<View @click="openFile(detailData?.otherAttachments?.name)" />
|
<View @click="openFile(detailData?.otherAttachments?.name)" />
|
||||||
</el-icon>
|
</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 }}
|
{{ detailData?.otherAttachments?.name }}
|
||||||
</a>
|
</a>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
@@ -290,6 +290,7 @@ import { useDictData } from '@/stores/dictData'
|
|||||||
import { getFileNameAndFilePath } from '@/api/system-boot/file'
|
import { getFileNameAndFilePath } from '@/api/system-boot/file'
|
||||||
import { Link, View } from '@element-plus/icons-vue'
|
import { Link, View } from '@element-plus/icons-vue'
|
||||||
import { nodeAllList } from '@/api/device-boot/Business'
|
import { nodeAllList } from '@/api/device-boot/Business'
|
||||||
|
import {download} from '@/utils/fileDownLoad'
|
||||||
defineOptions({ name: 'BpmUserReportDetail' })
|
defineOptions({ name: 'BpmUserReportDetail' })
|
||||||
const openFile = (name: any) => {
|
const openFile = (name: any) => {
|
||||||
window.open(window.location.origin + '/#/previewFile?/supervision/' + name)
|
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) {
|
if (pathName == 'informationSecurityTestReport' && detailData.value.informationSecurityTestReport) {
|
||||||
detailData.value.informationSecurityTestReport = {
|
detailData.value.informationSecurityTestReport = {
|
||||||
name: res.data.fileName,
|
name: res.data.fileName,
|
||||||
|
keyName: res.data.name,
|
||||||
url: res.data.url
|
url: res.data.url
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -471,6 +473,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
|
|||||||
) {
|
) {
|
||||||
detailData.value.acceptanceInspectionReportSingle = {
|
detailData.value.acceptanceInspectionReportSingle = {
|
||||||
name: res.data.fileName,
|
name: res.data.fileName,
|
||||||
|
keyName: res.data.name,
|
||||||
url: res.data.url
|
url: res.data.url
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -479,6 +482,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
|
|||||||
else if (pathName == 'acceptanceInspectionReport' && detailData.value.acceptanceInspectionReport) {
|
else if (pathName == 'acceptanceInspectionReport' && detailData.value.acceptanceInspectionReport) {
|
||||||
detailData.value.acceptanceInspectionReport = {
|
detailData.value.acceptanceInspectionReport = {
|
||||||
name: res.data.fileName,
|
name: res.data.fileName,
|
||||||
|
keyName: res.data.name,
|
||||||
url: res.data.url
|
url: res.data.url
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -486,6 +490,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
|
|||||||
else if (pathName == 'typeExperimentReport' && detailData.value.typeExperimentReport) {
|
else if (pathName == 'typeExperimentReport' && detailData.value.typeExperimentReport) {
|
||||||
detailData.value.typeExperimentReport = {
|
detailData.value.typeExperimentReport = {
|
||||||
name: res.data.fileName,
|
name: res.data.fileName,
|
||||||
|
keyName: res.data.name,
|
||||||
url: res.data.url
|
url: res.data.url
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -493,6 +498,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
|
|||||||
else if (pathName == 'factoryInspectionReport' && detailData.value.factoryInspectionReport) {
|
else if (pathName == 'factoryInspectionReport' && detailData.value.factoryInspectionReport) {
|
||||||
detailData.value.factoryInspectionReport = {
|
detailData.value.factoryInspectionReport = {
|
||||||
name: res.data.fileName,
|
name: res.data.fileName,
|
||||||
|
keyName: res.data.name,
|
||||||
url: res.data.url
|
url: res.data.url
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -507,6 +513,7 @@ const getFileNamePath = async (val: any, pathName: any) => {
|
|||||||
else if (pathName == 'otherAttachments' && detailData.value.otherAttachments) {
|
else if (pathName == 'otherAttachments' && detailData.value.otherAttachments) {
|
||||||
detailData.value.otherAttachments = {
|
detailData.value.otherAttachments = {
|
||||||
name: res.data.fileName,
|
name: res.data.fileName,
|
||||||
|
keyName: res.data.name,
|
||||||
url: res.data.url
|
url: res.data.url
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -29,7 +29,7 @@
|
|||||||
<el-icon class="elView" v-if="detailData?.reportName">
|
<el-icon class="elView" v-if="detailData?.reportName">
|
||||||
<View @click="openFile(detailData?.testRunReport)" />
|
<View @click="openFile(detailData?.testRunReport)" />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<a target="_blank" :href="detailData?.reportUrl">
|
<a target="_blank" class="aLoad" @click="download(detailData?.keyName)">
|
||||||
{{ detailData?.reportName }}
|
{{ detailData?.reportName }}
|
||||||
</a>
|
</a>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
@@ -44,6 +44,7 @@ import { Link, View } from '@element-plus/icons-vue'
|
|||||||
import { getMointorPointTempLinedebugDetail } from '@/api/supervision-boot/jointDebugList/index'
|
import { getMointorPointTempLinedebugDetail } from '@/api/supervision-boot/jointDebugList/index'
|
||||||
import { getRunTestById } from '@/api/supervision-boot/lineRunTest'
|
import { getRunTestById } from '@/api/supervision-boot/lineRunTest'
|
||||||
import { getFileNameAndFilePath } from '@/api/system-boot/file'
|
import { getFileNameAndFilePath } from '@/api/system-boot/file'
|
||||||
|
import {download} from '@/utils/fileDownLoad'
|
||||||
defineOptions({ name: 'BpmUserReportDetail' })
|
defineOptions({ name: 'BpmUserReportDetail' })
|
||||||
const { query } = useRoute() // 查询参数
|
const { query } = useRoute() // 查询参数
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
@@ -61,9 +62,10 @@ const getInfo = async () => {
|
|||||||
detailData.value = res.data
|
detailData.value = res.data
|
||||||
if (res.data.testRunReport.length > 0 && res.data.testRunReport != null) {
|
if (res.data.testRunReport.length > 0 && res.data.testRunReport != null) {
|
||||||
getFileNameAndFilePath({ filePath: res.data.testRunReport }).then(report => {
|
getFileNameAndFilePath({ filePath: res.data.testRunReport }).then(report => {
|
||||||
|
detailData.value.keyName = report.data.name
|
||||||
detailData.value.reportUrl = report.data.url
|
detailData.value.reportUrl = report.data.url
|
||||||
detailData.value.reportName = report.data.fileName
|
detailData.value.reportName = report.data.fileName
|
||||||
console.log('🚀 ~ getFileNameAndFilePath ~ detailData.value:', detailData.value)
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user