mirror of
https://github.com/jumpserver/lina.git
synced 2025-07-19 01:27:14 +00:00
fix: 优化账号模版可以根据 protocols 过滤 secret_type 字段
This commit is contained in:
parent
5902475778
commit
4e89c8d53f
@ -66,6 +66,10 @@ export default {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
asset: {
|
||||
type: Object,
|
||||
default: () => {}
|
||||
},
|
||||
accounts: {
|
||||
type: Array,
|
||||
default: () => ([])
|
||||
@ -76,12 +80,13 @@ export default {
|
||||
}
|
||||
},
|
||||
data() {
|
||||
const protocols = this.asset.protocols.map(i => i.name).toString()
|
||||
return {
|
||||
isShowCreate: false,
|
||||
accountsSelected: [],
|
||||
tableConfig: {
|
||||
url: '/api/v1/accounts/account-templates/',
|
||||
columns: ['name', 'username', 'privileged'],
|
||||
url: `/api/v1/accounts/account-templates/?protocols=${protocols}`,
|
||||
columns: ['name', 'username', 'secret_type', 'privileged'],
|
||||
columnsMeta: {
|
||||
name: {
|
||||
formatterArgs: {
|
||||
|
@ -16,6 +16,7 @@
|
||||
<AccountTemplateDialog
|
||||
v-if="templateDialogVisible"
|
||||
:show-create="false"
|
||||
:asset="object"
|
||||
:visible.sync="templateDialogVisible"
|
||||
@onConfirm="onConfirm"
|
||||
/>
|
||||
|
Loading…
Reference in New Issue
Block a user