fixed: Online synchronous import

This commit is contained in:
zhaojisen
2024-07-03 15:06:07 +08:00
parent a976948388
commit 95d1e23cf8
2 changed files with 12 additions and 0 deletions

View File

@@ -92,6 +92,10 @@ export default {
disableImportBtn: {
type: Boolean,
default: false
},
origin: {
type: String,
default: ''
}
},
data() {
@@ -419,6 +423,13 @@ export default {
}
}
this.importTaskStatus = 'done'
// 在不影响其他组件使用本组件的基础上,对云同步中导入按钮的变化
if (this.origin === 'cloudSync') {
this.tableConfig.totalData = this.pendingData
this.importTaskStatus = 'pending'
}
if (this.failedCount > 0) {
this.$message.error(this.$tc('HasImportErrorItemMsg') + '')
}

View File

@@ -10,6 +10,7 @@
<ImportTable
ref="importTable"
v-bind="settings"
origin="cloudSync"
@cancel="closeDialog"
@finish="showResult"
/>