mirror of
https://github.com/jumpserver/lina.git
synced 2025-07-21 02:29:05 +00:00
fix: 修复授权规则创建账号模版弹窗取消按钮不生效问题
This commit is contained in:
parent
f12707d958
commit
ce6ca288b7
@ -36,6 +36,7 @@
|
|||||||
:title="$tc('accounts.AccountTemplate')"
|
:title="$tc('accounts.AccountTemplate')"
|
||||||
:visible.sync="showAccountTemplateDialog"
|
:visible.sync="showAccountTemplateDialog"
|
||||||
@confirm="handleAccountTemplateConfirm"
|
@confirm="handleAccountTemplateConfirm"
|
||||||
|
@cancel="handleAccountTemplateCancel"
|
||||||
>
|
>
|
||||||
<ListTable ref="templateTable" v-bind="accountTemplateTable" />
|
<ListTable ref="templateTable" v-bind="accountTemplateTable" />
|
||||||
</Dialog>
|
</Dialog>
|
||||||
@ -179,6 +180,9 @@ export default {
|
|||||||
this.choicesSelected = choicesSelected
|
this.choicesSelected = choicesSelected
|
||||||
this.specAccountsInput = specAccountsInput
|
this.specAccountsInput = specAccountsInput
|
||||||
},
|
},
|
||||||
|
handleAccountTemplateCancel() {
|
||||||
|
this.showAccountTemplateDialog = false
|
||||||
|
},
|
||||||
handleAccountTemplateConfirm() {
|
handleAccountTemplateConfirm() {
|
||||||
this.specAccountsTemplate = this.$refs.templateTable.selectedRows
|
this.specAccountsTemplate = this.$refs.templateTable.selectedRows
|
||||||
const added = this.specAccountsTemplate.map(i => i.username)
|
const added = this.specAccountsTemplate.map(i => i.username)
|
||||||
|
Loading…
Reference in New Issue
Block a user