fix: 修复授权规则创建账号模版弹窗取消按钮不生效问题

This commit is contained in:
Bai 2023-03-17 14:55:22 +08:00
parent f12707d958
commit ce6ca288b7

View File

@ -36,6 +36,7 @@
:title="$tc('accounts.AccountTemplate')"
:visible.sync="showAccountTemplateDialog"
@confirm="handleAccountTemplateConfirm"
@cancel="handleAccountTemplateCancel"
>
<ListTable ref="templateTable" v-bind="accountTemplateTable" />
</Dialog>
@ -179,6 +180,9 @@ export default {
this.choicesSelected = choicesSelected
this.specAccountsInput = specAccountsInput
},
handleAccountTemplateCancel() {
this.showAccountTemplateDialog = false
},
handleAccountTemplateConfirm() {
this.specAccountsTemplate = this.$refs.templateTable.selectedRows
const added = this.specAccountsTemplate.map(i => i.username)