Commit 6882468f by 李伟康

v4.22.1需求

1 parent fe9f1a54
......@@ -877,19 +877,22 @@ export default {
spinner: 'el-icon-loading loading-class',
background: 'rgba(255 255 255,.9)'
})
const {
successCount,
errorCount,
errorUrl
} = await this.$apis.seckillActivity.importCrowdFundingActivity({ file: fileUrl })
this.visibleImportDialog()
this.fileResponse = {
result: errorUrl ? false : true,
count: errorUrl ? errorCount : successCount,
errorUrl
const res = await this.$apis.seckillActivity.importCrowdFundingActivity({ file: fileUrl })
if (res) {
const {
successCount,
errorCount,
errorUrl
} = res
this.visibleImportDialog()
this.fileResponse = {
result: errorUrl ? false : true,
count: errorUrl ? errorCount : successCount,
errorUrl
}
this.afterImportVisible = true
this.handleSearch()
}
this.afterImportVisible = true
this.handleSearch()
loading.close()
}
else throw false
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!