This commit is contained in:
sjl
2025-12-12 09:29:09 +08:00
parent b36f765d07
commit e87d05c587
4 changed files with 72 additions and 12 deletions

View File

@@ -52,12 +52,18 @@ const num = ref(0)
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
drawer.value = true
url.value = `/api-docx/excelreport` + row
excelOptions.value = { xls: row.split('.')[1] == 'xls' ? true : false }
if(VITE_FLAG){
url.value = `/api-docx/excelreport` + row
excelOptions.value = { xls: row.split('.')[1] == 'xls' ? true : false }
}else{
}
// getFileNameAndFilePath({ filePath: row }).then(res => {
// url.value = res.data.url
// })