mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-20 10:46:35 +00:00
fixed: Online synchronous import
This commit is contained in:
@@ -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"
|
||||||
/>
|
/>
|
||||||
|
Reference in New Issue
Block a user