Commit 2f2745ec by 王志慧

fixed

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