| | |
| | | return this.currentTypeObj[this.type]["tipList"]; |
| | | }, |
| | | downloadTemplateApi() { |
| | | console.log(this.currentTypeObj[this.type], "this.type"); |
| | | return this.currentTypeObj[this.type]["downloadTemplateFun"]; |
| | | }, |
| | | action() { |
| | |
| | | }); |
| | | }, |
| | | onSuccess(res) { |
| | | console.log('res',res) |
| | | if (Object.keys(res.data).length === 0) { |
| | | this.$message.success(this.title + "导入成功!"); |
| | | this.dialogVisible = false; |
| | |
| | | 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); |
| | | }); |
| | | } |
| | |
| | | } |
| | | }, |
| | | 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') |
| | | } |
| | | }, |
| | | }, |