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

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

View File

@@ -15,7 +15,7 @@
<el-icon class="elView" v-if="supervisionReportDetail?.supervisionReportName">
<View @click="openFile(supervisionReportDetail?.supervisionReportName)" />
</el-icon>
<a :href="supervisionReportDetail.supervisionReportPath" target="_blank">
<a class="aLoad" @click="download(supervisionReportDetail.keyName)" target="_blank">
{{ supervisionReportDetail.supervisionReportName }}
</a>
</el-form-item>
@@ -24,7 +24,7 @@
<el-icon class="elView" v-if="problemDetail?.problemName">
<View @click="openFile(problemDetail?.problemName)" />
</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 label="采取的措施:" prop="takeStep">
@@ -58,6 +58,7 @@ import { ElMessage, genFileId, UploadProps, UploadRawFile } from 'element-plus'
import TableStore from '@/utils/tableStore' // 若不是列表页面弹框可删除
import { getFileNameAndFilePath, uploadFile } from '@/api/system-boot/file'
import { addFeedback, updateFeedback } from '@/api/supervision-boot/leaflet'
import {download} from '@/utils/fileDownload'
import { Link, View } from '@element-plus/icons-vue'
const openFile = (name: any) => {
window.open(window.location.origin + '/#/previewFile?/supervision/' + name)
@@ -87,11 +88,13 @@ const showFile1 = ref(false)
const problemDetail = reactive({
problemPath: '',
problemName: ''
problemName: '',
keyName: ''
})
const supervisionReportDetail = reactive({
supervisionReportPath: '',
supervisionReportName: ''
supervisionReportName: '',
keyName: ''
})
//处理成效报告
@@ -143,6 +146,7 @@ const open = async (
if (problemPath) {
let arrPath = problemPath.split(',')
await getFileNameAndFilePath({ filePath: arrPath[0] }).then(res => {
problemDetail.keyName = res.data.name
problemDetail.problemPath = res.data.url
problemDetail.problemName = res.data.fileName
})
@@ -154,6 +158,7 @@ const open = async (
let arrPath = supervisionReport.split(',')
console.log('🚀 ~ arrPath:', arrPath)
await getFileNameAndFilePath({ filePath: arrPath[0] }).then(res => {
supervisionReportDetail.keyName = res.data.name
supervisionReportDetail.supervisionReportPath = res.data.url
supervisionReportDetail.supervisionReportName = res.data.fileName
})