稳态合格率,畸变率表格调整

This commit is contained in:
sjl
2026-01-08 14:50:29 +08:00
parent 715cdb892f
commit 54517c0d5f
4 changed files with 39 additions and 24 deletions

View File

@@ -3,7 +3,7 @@
<el-drawer v-model="drawer" size="60%">
<div class="box mt20">
<el-upload :show-file-list="false" action="" :auto-upload="false" class="ml10" :on-change="choose"
v-if="information">
v-if="information" >
<el-button icon="el-icon-Top" type="primary">上传常见治理措施</el-button>
</el-upload>
<el-button icon="el-icon-Download" type="primary" class="ml10" @click="downloadTheReport">
@@ -15,16 +15,16 @@
<el-collapse-item title="国家电网有限公司企业标准" name="2">
<!-- <el-empty description="暂无数据" class="custom-empty iframe" /> -->
<div :style="`overflow: auto;`" class="iframe">
<vue-office-docx v-if="url.includes('.doc') || url.includes('.docx')" :src="url" />
<vue-office-excel v-if="url.includes('.xls') || url.includes('.xlsx')" :src="url"
<vue-office-docx v-if="urlKey.includes('.doc') || urlKey.includes('.docx')" :src="url" />
<vue-office-excel v-if="urlKey.includes('.xls') || urlKey.includes('.xlsx')" :src="url"
:options="excelOptions" />
<!-- <vue-office-pdf v-if="url.includes('.pdf')" :src="url" /> -->
<iframe v-if="url.includes('.pdf')" :src="url" style="width: 100%; height: 99%"></iframe>
<!-- <vue-office-pdf v-if="urlKey.includes('.pdf')" :src="url" /> -->
<iframe v-if="urlKey.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')
urlKey.includes('.png') ||
urlKey.includes('.jpg') ||
urlKey.includes('.gif') ||
urlKey.includes('.bmp')
" :src="url" />
</div>
</el-collapse-item>
@@ -45,6 +45,7 @@ import { useAdminInfo } from '@/stores/adminInfo'
import { ElMessage } from 'element-plus'
import { uploadFile, getFileNameAndFilePath, downloadFile } from '@/api/system-boot/file'
import { addStandardCase, queryStandardCase } from '@/api/supervision-boot/database/index'
import { previewFile } from '@/utils/fileDownLoad'
const adminInfo = useAdminInfo()
const drawer = ref(false)
const activeName = ref('2')
@@ -53,17 +54,14 @@ const url = ref('')
const excelOptions = ref({})
const information = adminInfo.roleCode.includes('information_info')
const VITE_FLAG = import.meta.env.VITE_NAME == 'jibei'
const open = (row: any) => {
// console.log('🚀 ~ open ~ row:', row)
// url.value = row
const urlKey=ref('')
const open = async (row: any) => {
drawer.value = true
if(VITE_FLAG){
url.value = `/api-docx/excelreport` + row
excelOptions.value = { xls: row.split('.')[1] == 'xls' ? true : false }
}else{
urlKey.value=row
const previewUrl = await previewFile(row);
url.value = previewUrl;
}
// getFileNameAndFilePath({ filePath: row }).then(res => {
// url.value = res.data.url
// })

View File

@@ -88,6 +88,7 @@ const handleNodeClick = (data: any, node: any) => {
if (data?.url != null && data?.url != '') {
flag.value = true
urlKey.value = data.url
console.log('urlKey.value',urlKey.value)
setTimeout(async () => {
if(VITE_FLAG){
url.value = `/api-docx/excelreport` + data.url