cfel-base-components 2.5.12 → 2.5.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -86,22 +86,7 @@ export default function RoleInfo({
86
86
  dataIndex: 'account',
87
87
  key: 'account'
88
88
  },
89
- {
90
- title: '工号',
91
- dataIndex: 'jobNumber',
92
- key: 'jobNumber'
93
- },
94
- {
95
- title: '手机号',
96
- dataIndex: 'mobile',
97
- key: 'mobile'
98
- },
99
- {
100
- title: '邮箱',
101
- dataIndex: 'email',
102
- key: 'email',
103
- copyable: true
104
- },
89
+
105
90
  {
106
91
  title: '是否主账号',
107
92
  dataIndex: 'isAdmin',
@@ -136,20 +121,22 @@ export default function RoleInfo({
136
121
  fixed: 'right',
137
122
  render: (rowdata: any) => (
138
123
  <Space>
124
+ {rowdata?.isAdmin && roleInfo?.roleCode === 'admin' ? null : (
139
125
  <a
140
- onClick={() => {
141
- Modal.confirm({
142
- title: '确认解绑吗?',
143
- content: '',
144
- onOk: () => {
145
- roleUnboundAccountsFunc(rowdata.id)
146
- }
147
- })
148
- }}
149
- >
150
- 解绑
151
- </a>
152
- </Space>
126
+ onClick={() => {
127
+ Modal.confirm({
128
+ title: '确认解绑吗?',
129
+ content: '',
130
+ onOk: () => {
131
+ roleUnboundAccountsFunc(rowdata.id)
132
+ }
133
+ })
134
+ }}
135
+ >
136
+ 解绑
137
+ </a>
138
+ )}
139
+ </Space>
153
140
  )
154
141
  }
155
142
  ]