|
|
@ -72,7 +72,6 @@ export default { |
|
|
|
} else { |
|
|
|
const uploadData = new FormData() |
|
|
|
uploadData.append('upload', this.excle) |
|
|
|
console.log(this.first) |
|
|
|
formalImportFile(uploadData, this.currentVersionId, this.first).then(res => { |
|
|
|
this.uploadLoading = false |
|
|
|
if (res.code === 200) { |
|
|
@ -83,22 +82,9 @@ export default { |
|
|
|
type: 'success' |
|
|
|
}) |
|
|
|
this.$emit('editCallBack', res.code) |
|
|
|
} else { |
|
|
|
this.$message({ |
|
|
|
showClose: true, |
|
|
|
duration: 2000, |
|
|
|
message: res.msg, |
|
|
|
type: 'error' |
|
|
|
}) |
|
|
|
} |
|
|
|
}).catch((res) => { |
|
|
|
this.uploadLoading = false |
|
|
|
this.$message({ |
|
|
|
showClose: true, |
|
|
|
duration: 2000, |
|
|
|
message: res.msg, |
|
|
|
type: 'error' |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
}, |
|
|
|