|
@@ -15,7 +15,7 @@
|
|
|
</a-col>
|
|
|
<a-col :span="24">
|
|
|
<a-form-model-item label="是否为系统管理员" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="role">
|
|
|
- <a-switch v-model="model.isSystem" checked-children="是" un-checked-children="否" @change="roleChange"/>
|
|
|
+ <a-switch v-model="model.isSystem" checked-children="是" un-checked-children="否" @change="roleChange" :disabled="model.isSsoAdmin"/>
|
|
|
</a-form-model-item>
|
|
|
</a-col>
|
|
|
<a-col :span="24">
|
|
@@ -57,6 +57,7 @@
|
|
|
|
|
|
import { httpAction, getAction } from '@/api/manage'
|
|
|
import { validateDuplicateValue } from '@/utils/util'
|
|
|
+ import cookie from 'js-cookie'
|
|
|
|
|
|
export default {
|
|
|
name: 'InterlockUserForm',
|
|
@@ -127,6 +128,10 @@
|
|
|
formDisabled(){
|
|
|
return this.disabled
|
|
|
},
|
|
|
+ isSsoManage(){
|
|
|
+ return cookie.get('SSORole') === 'globalAdmin'
|
|
|
+ // return this.$store.getters.userInfo.role === '0'
|
|
|
+ },
|
|
|
},
|
|
|
created () {
|
|
|
//备份model原始值
|