| | |
| | | <template> |
| | | <div class="app-container"> |
| | | <el-form |
| | | class="opo-query-form" |
| | | :model="queryParams" |
| | | ref="queryForm" |
| | | :inline="true" |
| | |
| | | console.log(response.msg); |
| | | } |
| | | }, |
| | | // 下载文件 |
| | | // 预览/下载文件 |
| | | downFile(item) { |
| | | const ext = String(item.name || "") |
| | | .split(".") |
| | | .pop() |
| | | .toLowerCase(); |
| | | if (["pdf", "jpg", "jpeg", "png", "gif", "bmp", "webp"].includes(ext)) { |
| | | this.$previewFile([{ name: item.name, url: item.url }]); |
| | | return; |
| | | } |
| | | const url = process.env.VUE_APP_BASE_API + item.url; |
| | | var a = document.createElement("a"); |
| | | var event = new MouseEvent("click"); |