电能质量异常管理,谐波测试计划管理bug修改
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
<el-icon class="elView" v-if="detailData?.problemName">
|
||||
<View @click="openFile(detailData?.problemName)" />
|
||||
</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>
|
||||
</template>
|
||||
<el-descriptions-item :span="2" label="整改意见">
|
||||
@@ -30,7 +30,7 @@
|
||||
<el-icon class="elView" v-if="detailData?.reportName">
|
||||
<View @click="openFile(detailData?.reportName)" />
|
||||
</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>
|
||||
</div>
|
||||
@@ -41,6 +41,7 @@ import { useRoute } from 'vue-router'
|
||||
import { propTypes } from '@/utils/propTypes'
|
||||
import { getById } from '@/api/supervision-boot/leaflet'
|
||||
import { getFileNameAndFilePath } from '@/api/system-boot/file'
|
||||
import {download} from '@/utils/fileDownLoad'
|
||||
import { Link, View } from '@element-plus/icons-vue'
|
||||
|
||||
defineOptions({ name: 'technology/detail' })
|
||||
@@ -88,12 +89,14 @@ const getFileData = async () => {
|
||||
//如果有问题附件
|
||||
if (detailData.value.problemPath) {
|
||||
await getFileNameAndFilePath({ filePath: detailData.value.problemPath }).then(res => {
|
||||
detailData.value.keyName = res.data.name
|
||||
detailData.value.problemPath = res.data.url
|
||||
detailData.value.problemName = res.data.fileName
|
||||
})
|
||||
}
|
||||
|
||||
await getFileNameAndFilePath({ filePath: detailData.value.reportPath }).then(res => {
|
||||
detailData.value.keyName = res.data.name
|
||||
detailData.value.reportPath = res.data.url
|
||||
detailData.value.reportName = res.data.fileName
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user