cfel-base-components 2.5.10 → 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.
- package/demo/src/index.html +4 -3
- package/package.json +1 -1
- package/src/components/layout/index.tsx +14 -4
- package/src/components/layout/user-card/index.scss +31 -8
- package/src/components/layout/user-card/index.tsx +79 -91
- package/src/components/universal-pages/cpcAccount/AddModal/index.tsx +263 -124
- package/src/components/universal-pages/cpcAccount/ResetModal/index.tsx +232 -0
- package/src/components/universal-pages/cpcAccount/api.ts +31 -15
- package/src/components/universal-pages/cpcAccount/index.tsx +132 -97
- package/src/components/universal-pages/cpcAccountInfo/index.tsx +3 -1
- package/src/components/universal-pages/cpcRole/AddModal/index.tsx +1 -1
- package/src/components/universal-pages/cpcRole/index.tsx +101 -99
- package/src/components/universal-pages/cpcRoleInfo/index.tsx +16 -29
|
@@ -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 ? null : (
|
|
139
125
|
<a
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
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
|
]
|