Commit 2f2745ec by 王志慧

fixed

1 parent 23af8b8e
......@@ -668,6 +668,7 @@ export default {
},
//提现导入
handleImport() {
this.clearFile()
this.isImport = true
},
clearFile() {
......@@ -703,28 +704,29 @@ export default {
this.importForm.isLoading = 1
this.$apis.withdraw.uploadXlsx({ file: this.importForm.fileUrl }).then(res => {
if (res.code == 0) {
this.importForm.isLoading = 2
if (res.data.importStatue == 0) {
this.importForm.successCount = res.data.successCount
this.importForm.isSuccess = 1 //处理成功
this.importForm.batchNo = res.data.batchNo
if (this.isImport) {
if (res.code == 0) {
this.importForm.isLoading = 2
if (res.data.importStatue == 0) {
this.importForm.successCount = res.data.successCount
this.importForm.isSuccess = 1 //处理成功
this.importForm.batchNo = res.data.batchNo
} else {
this.importForm.errorUrl = res.data.errorUrl
this.importForm.isSuccess = 2 //处理失败
}
} else {
this.importForm.errorUrl = res.data.errorUrl
this.importForm.isSuccess = 2 //处理失败
this.importForm.isLoading = 0
this.$message({
message: res.message,
type: 'error'
})
}
} else {
this.importForm.isLoading = 0
this.$message({
message: res.message,
type: 'error'
})
}
})
},
cancelImport() {
this.isImport = false
this.clearFile()
},
//获取复选table数据
selectionTable(val) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!