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 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()
|
||||||
|
Loading…
Reference in New Issue
Block a user