mirror of
https://github.com/jumpserver/lina.git
synced 2025-10-21 23:59:22 +00:00
update
This commit is contained in:
@@ -84,11 +84,12 @@ export default {
|
||||
org_role: {
|
||||
label: this.$t('users.OrgRole'),
|
||||
hidden: () => {
|
||||
return (!this.publicSettings.XPACK_LICENSE_IS_VALID) || this.currentOrgIsDefault
|
||||
return (!this.publicSettings.XPACK_LICENSE_IS_VALID)
|
||||
},
|
||||
el: {
|
||||
// disabled: () => this.currentOrgIsDefault
|
||||
}
|
||||
disabled: false
|
||||
},
|
||||
helpText: this.$t('users.HelpText.OrgRoleHelpText')
|
||||
},
|
||||
groups: {
|
||||
el: {
|
||||
@@ -108,6 +109,11 @@ export default {
|
||||
return this.currentOrg.id === 'DEFAULT' || this.currentOrg.id === ''
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
if (this.currentOrgIsDefault) {
|
||||
this.fieldsMeta.org_role.el.disabled = true
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
cleanFormValue(value) {
|
||||
const method = this.getMethod()
|
||||
|
Reference in New Issue
Block a user