fujunling
2023-06-20 ff182ac475ea169057956ab182d38236d7ee87a1
Source/UBCS-WEB/src/components/BatchImport/index.vue
@@ -53,6 +53,7 @@
import {
  downloadHistoryImportTemplate,
  downloadErrorFile,
  importDataShow
} from "../../api/batchImport/index";
import { getToken } from "@/util/auth";
export default {
@@ -69,7 +70,7 @@
    },
    codeClassifyOid: {
      type: String,
      default: "535FC9B6-FE27-241F-5FCA-ED4DC17CF95B",
      default: "",
    },
    type: {
      type: String,
@@ -124,11 +125,11 @@
    downloadTemplateFun() {
      this.downloadLoading = true;
      downloadHistoryImportTemplate({
        codeClassifyOid: "535FC9B6-FE27-241F-5FCA-ED4DC17CF95B",
        codeClassifyOid: this.codeClassifyOid,
      })
        .then((res) => {
          this.downloadLoading = false;
          console.log(res);
          this.$utilFunc.downloadFileByBlob(res.data, "历史数据导入模板.xls");
        })
        .catch(() => {
          this.downloadLoading = false;