mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-12 03:51:57 +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: {
|
disableImportBtn: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false
|
default: false
|
||||||
|
},
|
||||||
|
origin: {
|
||||||
|
type: String,
|
||||||
|
default: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
@ -419,6 +423,13 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.importTaskStatus = 'done'
|
this.importTaskStatus = 'done'
|
||||||
|
|
||||||
|
// 在不影响其他组件使用本组件的基础上,对云同步中导入按钮的变化
|
||||||
|
if (this.origin === 'cloudSync') {
|
||||||
|
this.tableConfig.totalData = this.pendingData
|
||||||
|
this.importTaskStatus = 'pending'
|
||||||
|
}
|
||||||
|
|
||||||
if (this.failedCount > 0) {
|
if (this.failedCount > 0) {
|
||||||
this.$message.error(this.$tc('HasImportErrorItemMsg') + '')
|
this.$message.error(this.$tc('HasImportErrorItemMsg') + '')
|
||||||
}
|
}
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
<ImportTable
|
<ImportTable
|
||||||
ref="importTable"
|
ref="importTable"
|
||||||
v-bind="settings"
|
v-bind="settings"
|
||||||
|
origin="cloudSync"
|
||||||
@cancel="closeDialog"
|
@cancel="closeDialog"
|
||||||
@finish="showResult"
|
@finish="showResult"
|
||||||
/>
|
/>
|
||||||
|
Loading…
Reference in New Issue
Block a user