mirror of
https://github.com/jumpserver/lina.git
synced 2025-11-09 11:19:11 +00:00
Compare commits
6 Commits
pr@pam@per
...
v2.8.2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
eeb1b85d8a | ||
|
|
06535c8493 | ||
|
|
9487ec3f4c | ||
|
|
a5ac9f627a | ||
|
|
1f5869b4cc | ||
|
|
7902604952 |
@@ -19,7 +19,9 @@ export default {
|
|||||||
return {
|
return {
|
||||||
initial: {
|
initial: {
|
||||||
type: appTypeMeta.name,
|
type: appTypeMeta.name,
|
||||||
path: pathInitial
|
attrs: {
|
||||||
|
path: pathInitial
|
||||||
|
}
|
||||||
},
|
},
|
||||||
fields: [
|
fields: [
|
||||||
[this.$t('common.Basic'), ['name', 'type']],
|
[this.$t('common.Basic'), ['name', 'type']],
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ export default {
|
|||||||
},
|
},
|
||||||
fields: [
|
fields: [
|
||||||
[this.$t('common.Basic'), ['name', 'login_mode', 'username', 'username_same_with_user', 'priority', 'protocol']],
|
[this.$t('common.Basic'), ['name', 'login_mode', 'username', 'username_same_with_user', 'priority', 'protocol']],
|
||||||
[this.$t('assets.AutoPush'), ['auto_push']],
|
[this.$t('assets.AutoPush'), ['auto_push', 'system_groups']],
|
||||||
[this.$t('common.Auth'), ['update_password', 'password', 'ad_domain']],
|
[this.$t('common.Auth'), ['update_password', 'password', 'ad_domain']],
|
||||||
[this.$t('common.Other'), ['comment']]
|
[this.$t('common.Other'), ['comment']]
|
||||||
],
|
],
|
||||||
@@ -133,6 +133,11 @@ export default {
|
|||||||
}
|
}
|
||||||
return !form.update_password
|
return !form.update_password
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
system_groups: {
|
||||||
|
label: this.$t('assets.LinuxUserAffiliateGroup'),
|
||||||
|
hidden: (item) => ['ssh', 'rdp'].indexOf(item.protocol) === -1 || !item.auto_push || item.username_same_with_user,
|
||||||
|
helpText: this.$t('assets.GroupsHelpMessage')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
url: '/api/v1/assets/system-users/',
|
url: '/api/v1/assets/system-users/',
|
||||||
|
|||||||
@@ -115,7 +115,6 @@ export default {
|
|||||||
name: 'K8S',
|
name: 'K8S',
|
||||||
title: 'K8S',
|
title: 'K8S',
|
||||||
type: 'primary',
|
type: 'primary',
|
||||||
has: this.$store.getters.hasValidLicense,
|
|
||||||
group: this.$t('assets.OtherProtocol')
|
group: this.$t('assets.OtherProtocol')
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ import { GenericCreateUpdatePage } from '@/layout/components'
|
|||||||
import UserPassword from '@/components/UserPassword'
|
import UserPassword from '@/components/UserPassword'
|
||||||
import RoleCheckbox from '@/views/users/User/components/RoleCheckbox'
|
import RoleCheckbox from '@/views/users/User/components/RoleCheckbox'
|
||||||
import rules from '@/components/DataForm/rules'
|
import rules from '@/components/DataForm/rules'
|
||||||
|
import { mapGetters } from 'vuex'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
@@ -109,6 +110,14 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
computed: {
|
||||||
|
...mapGetters(['currentOrgIsRoot'])
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
if (this.currentOrgIsRoot) {
|
||||||
|
this.fieldsMeta.groups.el.disabled = true
|
||||||
|
}
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
cleanFormValue(value) {
|
cleanFormValue(value) {
|
||||||
const method = this.getMethod()
|
const method = this.getMethod()
|
||||||
|
|||||||
Reference in New Issue
Block a user