This commit is contained in:
OrangeM21
2020-08-18 11:52:18 +08:00
committed by 老广
parent d96bd76ca9
commit 820bb075a3
3 changed files with 14 additions and 6 deletions

View File

@@ -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()