海南验收问题整改

This commit is contained in:
GGJ
2024-11-22 08:45:42 +08:00
parent 94ac7ee227
commit 7e315466d0
17 changed files with 710 additions and 589 deletions

View File

@@ -21,9 +21,10 @@
:style="`height: calc(${height.height} - 60px);`" />
<div :style="`height: calc(${height.height} - 60px);overflow: auto;`" v-else>
<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" :options="excelOptions"/>
<vue-office-excel v-if="url.includes('.xls') || url.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>
<iframe v-if="url.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')
" :src="url" />
@@ -59,7 +60,7 @@ const adminInfo = useAdminInfo()
defineOptions({
name: 'database/standard'
})
const excelOptions=ref({})
const excelOptions = ref({})
const monitoringPoint = useMonitoringPoint()
const height = mainHeight(20)
const size = ref(0)
@@ -77,19 +78,20 @@ onMounted(() => {
})
const handleNodeClick = (data: any, node: any) => {
console.log("🚀 ~ handleNodeClick ~ data:", data)
dotList.value = data
url.value = ''
flag.value = false
if (data?.url != null && data?.url != '') {
flag.value = true
setTimeout(() => {
url.value = `/api-docx/excelreport` + data.url
excelOptions.value = { xls: data.url.split('.')[1] == 'xls' ? true : false }
// getFileNameAndFilePath({ filePath: data.url }).then(res => {
// url.value = res.data.url
// })
},100)
setTimeout(() => {
url.value = `/api-docx/excelreport` + data.url
excelOptions.value = { xls: data.url.split('.')[1] == 'xls' ? true : false }
// getFileNameAndFilePath({ filePath: data.url }).then(res => {
// url.value = res.data.url
// })
}, 100)
}
}
// 删除
@@ -104,7 +106,9 @@ const deleteEven = () => {
type: 'success',
message: '删除成功!'
})
treeRef.value.loadData()
setTimeout(() => {
treeRef.value.loadData()
}, 100)
})
})
}