wangting
2023-07-28 de42c8e66e2303b46741fa66dc72f4b4183f8084
Source/UBCS-WEB/src/components/file/main.vue
@@ -65,6 +65,7 @@
import {mapGetters} from "vuex";
import {dateFormat} from "@/util/date";
import {validatenull} from "@/util/validate";
import func from "@/util/func";
export default {
  props: ["options","visible","ownbizOid"],
@@ -380,16 +381,24 @@
      let data=new FormData();
      if(row && row.oid){
        data.append('fileOids',row.oid)
        download(data)
        this.downloadFile(data);
      }else{
        if (this.selectionList.length === 0) {
          this.$message.warning("请选择至少一条数据");
          return;
        }
        data.append('fileOids',this.oids)
        download(data);
        this.downloadFile(data);
      }
    },
    downloadFile(data){
      download(data).then(res=>{
        // console.log(res);
        if(res){
          func.downloadFileByBlob(res);
        }
      });
    },
    rowDel(row) {
      this.$confirm("确定将选择文件删除?", {
        confirmButtonText: "确定",