cfel-base-components 2.5.9 → 2.5.11

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,24 +86,9 @@ export default function RoleInfo({
86
86
  dataIndex: 'account',
87
87
  key: 'account'
88
88
  },
89
+
89
90
  {
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
- },
105
- {
106
- title: '是否企业管理员',
91
+ title: '是否主账号',
107
92
  dataIndex: 'isAdmin',
108
93
  key: 'isAdmin',
109
94
  render: (cell: any) => {
@@ -136,20 +121,22 @@ export default function RoleInfo({
136
121
  fixed: 'right',
137
122
  render: (rowdata: any) => (
138
123
  <Space>
124
+ {rowdata?.isAdmin ? 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
  ]
@@ -53,7 +53,7 @@ export default function RoleInfo() {
53
53
  copyable: true,
54
54
  },
55
55
  {
56
- title: '是否企业管理员',
56
+ title: '是否主账号',
57
57
  dataIndex: 'isAdmin',
58
58
  key: 'isAdmin',
59
59
  render: (cell: any) => {