Merge pull request #2940 from jumpserver/pr@dev@fix_perms

fix: 修复授权规则创建账号模版弹窗取消按钮不生效问题
This commit is contained in:
老广
2023-03-17 15:29:11 +08:00
committed by GitHub

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)