田源
2023-11-10 f00e6f6f26d6dc6fc8f606de01f37ec643daa383
Source/UBCS-WEB/src/components/BatchImport/index.vue
@@ -140,7 +140,6 @@
      return this.currentTypeObj[this.type]["tipList"];
    },
    downloadTemplateApi() {
      console.log(this.currentTypeObj[this.type], "this.type");
      return this.currentTypeObj[this.type]["downloadTemplateFun"];
    },
    action() {
@@ -253,7 +252,6 @@
        });
    },
    onSuccess(res) {
      console.log('res',res)
      if (Object.keys(res.data).length === 0) {
        this.$message.success(this.title + "导入成功!");
        this.dialogVisible = false;
@@ -263,7 +261,6 @@
        const fileName = res.data.filePath.split("/").pop();
        this.$message.error("请下载错误信息文件进行查看!");
        downloadErrorFile({ uuid: res.data.fileOid }).then((res2) => {
          console.log('res2',res2)
          this.$utilFunc.downloadFileByBlob(res2.data, fileName);
        });
      }
@@ -292,12 +289,13 @@
      }
    },
    onError(err) {
      console.log(err, "err");
      this.pageLoading.close();
      console.log('onError')
    },
    uploadChange(file) {
      if (file.status === "success" || file.status === "error") {
        this.pageLoading.close();
        console.log('uploadChange')
      }
    },
  },