| | |
| | | type="text" |
| | | size="small" |
| | | > |
| | | 附件 |
| | | 文件 |
| | | </el-button> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | this.pdftitle = item.name; |
| | | let name = item.name.split("."); |
| | | if (name[1] == "pdf") { |
| | | this.$confirm("当前文件暂不支持预览是否下载", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning" |
| | | }) |
| | | .then(() => { |
| | | window.location.href = item.url; |
| | | }) |
| | | .catch(() => { |
| | | this.$message({ |
| | | type: "info", |
| | | message: "已取消" |
| | | }); |
| | | }); |
| | | this.$modal.msgWarning("当前文件暂不支持预览"); |
| | | this.previewpdf = false; |
| | | this.hintitle = "当前文件暂不支持预览"; |
| | | } else if (name[1] == "jpg" || "png") { |