cfel-base-components 2.5.18 → 2.5.19
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.
package/package.json
CHANGED
|
@@ -57,10 +57,13 @@ export default function Account({ historyAction }: AccountProps) {
|
|
|
57
57
|
return (
|
|
58
58
|
<Space>
|
|
59
59
|
<span>{data?.name}</span>
|
|
60
|
-
|
|
60
|
+
{
|
|
61
|
+
!data.isAdmin && <FormOutlined
|
|
61
62
|
style={{ cursor: 'pointer', color: '#1677ff' }}
|
|
62
63
|
onClick={() => openEditName(data)}
|
|
63
64
|
/>
|
|
65
|
+
}
|
|
66
|
+
|
|
64
67
|
</Space>
|
|
65
68
|
)
|
|
66
69
|
}
|
|
@@ -106,7 +109,8 @@ export default function Account({ historyAction }: AccountProps) {
|
|
|
106
109
|
width: 150,
|
|
107
110
|
render: (rowdata: any) => (
|
|
108
111
|
<Space>
|
|
109
|
-
|
|
112
|
+
{
|
|
113
|
+
!rowdata.isAdmin && <a
|
|
110
114
|
onClick={() => {
|
|
111
115
|
setResetEditingData(rowdata)
|
|
112
116
|
setResetModalOpen(true)
|
|
@@ -114,6 +118,7 @@ export default function Account({ historyAction }: AccountProps) {
|
|
|
114
118
|
>
|
|
115
119
|
重置密码
|
|
116
120
|
</a>
|
|
121
|
+
}
|
|
117
122
|
<a
|
|
118
123
|
onClick={() => {
|
|
119
124
|
historyAction?.push({
|