| | |
| | | import {
|
| | | downloadHistoryImportTemplate,
|
| | | downloadErrorFile,
|
| | | importDataShow
|
| | | } from "../../api/batchImport/index";
|
| | | import { getToken } from "@/util/auth";
|
| | | export default {
|
| | |
| | | },
|
| | | codeClassifyOid: {
|
| | | type: String,
|
| | | default: "535FC9B6-FE27-241F-5FCA-ED4DC17CF95B",
|
| | | default: "",
|
| | | },
|
| | | type: {
|
| | | type: String,
|
| | |
| | | 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;
|