Commit bf4b2e2b by 王志慧

fixed

1 parent 09b2cc52
...@@ -688,6 +688,7 @@ export default { ...@@ -688,6 +688,7 @@ export default {
importForm: { isSuccess, fileName, isLoading }, importForm: { isSuccess, fileName, isLoading },
isImport isImport
} = this } = this
if (fileName == '' && isLoading == 0) { if (fileName == '' && isLoading == 0) {
this.$message({ this.$message({
message: '请先选择文件', message: '请先选择文件',
...@@ -695,18 +696,12 @@ export default { ...@@ -695,18 +696,12 @@ export default {
}) })
return return
} }
if (isImport && isSuccess == 2) { if (isLoading == 1) return //加载中禁止后续操作
if (isImport && isSuccess != 0) {
this.isImport = false this.isImport = false
this.clearFile() this.clearFile()
return return
} }
console.log(this.importForm)
if (isImport && isSuccess == 1) {
this.isImport = false
this.handleSaveImport()
this.clearFile()
return
}
this.importForm.isLoading = 1 this.importForm.isLoading = 1
this.$apis.withdraw.uploadXlsx({ file: this.importForm.fileUrl }).then(res => { this.$apis.withdraw.uploadXlsx({ file: this.importForm.fileUrl }).then(res => {
...@@ -717,6 +712,7 @@ export default { ...@@ -717,6 +712,7 @@ export default {
this.importForm.successCount = res.data.successCount this.importForm.successCount = res.data.successCount
this.importForm.isSuccess = 1 //处理成功 this.importForm.isSuccess = 1 //处理成功
this.importForm.batchNo = res.data.batchNo this.importForm.batchNo = res.data.batchNo
this.handleSaveImport()
} else { } else {
this.importForm.errorUrl = res.data.errorUrl this.importForm.errorUrl = res.data.errorUrl
this.importForm.isSuccess = 2 //处理失败 this.importForm.isSuccess = 2 //处理失败
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!