|
|
@ -162,7 +162,7 @@ export default { |
|
|
if (txt.includes(row.fileType.toLowerCase())){ |
|
|
if (txt.includes(row.fileType.toLowerCase())){ |
|
|
type = 'text/plain;charset=utf-8'; |
|
|
type = 'text/plain;charset=utf-8'; |
|
|
} |
|
|
} |
|
|
let office = ['doc', 'ppt', 'pptx']; |
|
|
|
|
|
|
|
|
let office = ['ppt', 'pptx']; |
|
|
if (office.includes(row.fileType.toLowerCase())){ |
|
|
if (office.includes(row.fileType.toLowerCase())){ |
|
|
this.$message.warning(`该文件格式暂不支持预览`) |
|
|
this.$message.warning(`该文件格式暂不支持预览`) |
|
|
return |
|
|
return |
|
|
@ -172,7 +172,8 @@ export default { |
|
|
if (excel.includes(row.fileType.toLowerCase())){ |
|
|
if (excel.includes(row.fileType.toLowerCase())){ |
|
|
type = 'excel'; |
|
|
type = 'excel'; |
|
|
} |
|
|
} |
|
|
let word = ['docx']; |
|
|
|
|
|
|
|
|
// doc 和 docx 均转 PDF 预览 |
|
|
|
|
|
let word = ['docx', 'doc']; |
|
|
if (word.includes(row.fileType.toLowerCase())){ |
|
|
if (word.includes(row.fileType.toLowerCase())){ |
|
|
type = 'word' |
|
|
type = 'word' |
|
|
} |
|
|
} |
|
|
|