Commit 6882468f by 李伟康

v4.22.1需求

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