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