mirror of
https://github.com/jumpserver/lina.git
synced 2025-07-19 09:39:04 +00:00
fix: 修复授权规则创建账号模版弹窗取消按钮不生效问题
This commit is contained in:
parent
f12707d958
commit
ce6ca288b7
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user