mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-02 07:27:01 +00:00
Merge pull request #4176 from jumpserver/pr@dev@fix_cloud_sync
fixed: Online synchronous import
This commit is contained in:
commit
c569d0c21c
@ -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') + '')
|
||||
}
|
||||
|
@ -10,6 +10,7 @@
|
||||
<ImportTable
|
||||
ref="importTable"
|
||||
v-bind="settings"
|
||||
origin="cloudSync"
|
||||
@cancel="closeDialog"
|
||||
@finish="showResult"
|
||||
/>
|
||||
|
Loading…
Reference in New Issue
Block a user