fixed: Fixed the issue that the create account window did not close after creating an account in the account list

This commit is contained in:
zhaojisen
2024-06-14 10:55:56 +08:00
parent 793ced1758
commit 8db03bf315
2 changed files with 13 additions and 4 deletions

View File

@@ -36,6 +36,7 @@
v-if="showResultDialog"
:result="createAccountResults"
:visible.sync="showResultDialog"
@close-all="closeAll"
/>
<AccountBulkUpdateDialog
v-if="updateSelectedDialogSetting.visible"
@@ -481,15 +482,23 @@ export default {
this.$refs.ListTable.reloadTable()
},
showBulkCreateResult(results) {
this.showResultDialog = false
this.createAccountResults = results
setTimeout(() => {
this.showResultDialog = true
}, 100)
this.createAccountResults = results
}, 350)
},
handleAccountBulkUpdate() {
this.updateSelectedDialogSetting.visible = false
this.$refs.ListTable.reloadTable()
},
closeAll() {
setTimeout(() => {
this.showResultDialog = false
}, 350)
setTimeout(() => {
this.showAddDialog = false
}, 800)
}
}
}

View File

@@ -91,7 +91,7 @@ export default {
},
methods: {
closeDialog() {
this.$emit('update:visible', false)
this.$emit('close-all')
}
}
}