mirror of
https://github.com/jumpserver/lina.git
synced 2025-07-06 11:47:34 +00:00
perf: 优化全局组织下禁止用户更新用户组
This commit is contained in:
parent
ff90e56763
commit
c155e5a59b
@ -10,6 +10,7 @@ import { GenericCreateUpdatePage } from '@/layout/components'
|
||||
import UserPassword from '@/components/UserPassword'
|
||||
import RoleCheckbox from '@/views/users/User/components/RoleCheckbox'
|
||||
import rules from '@/components/DataForm/rules'
|
||||
import { mapGetters } from 'vuex'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
@ -109,6 +110,14 @@ export default {
|
||||
}
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
...mapGetters(['currentOrgIsRoot'])
|
||||
},
|
||||
mounted() {
|
||||
if (this.currentOrgIsRoot) {
|
||||
this.fieldsMeta.groups.el.disabled = true
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
cleanFormValue(value) {
|
||||
const method = this.getMethod()
|
||||
|
Loading…
Reference in New Issue
Block a user