批量修改用户信息去除设置角色
This commit is contained in:
parent
65c3b2f3ad
commit
3c1eab9737
|
|
@ -335,7 +335,7 @@ const User: React.FC = () => {
|
|||
}}
|
||||
/>
|
||||
</div> : null}
|
||||
<div>
|
||||
{isCreateUser !== 'batch' ? <div>
|
||||
<span>角色:</span>
|
||||
<Select
|
||||
placeholder='请选择角色'
|
||||
|
|
@ -347,7 +347,7 @@ const User: React.FC = () => {
|
|||
RoleId: e
|
||||
});
|
||||
}} />;
|
||||
</div>
|
||||
</div> : null}
|
||||
{isCreateUser === 'add' ? <div>
|
||||
<span>密码:</span>
|
||||
<Input.Password
|
||||
|
|
@ -414,7 +414,7 @@ const User: React.FC = () => {
|
|||
if (!addUserFrom.Account && isCreateUser !== 'batch') {
|
||||
return message.error('请输入账号!')
|
||||
}
|
||||
if (!addUserFrom.RoleId) {
|
||||
if (!addUserFrom.RoleId && isCreateUser !== 'batch') {
|
||||
return message.error('请选择角色!')
|
||||
}
|
||||
if (!addUserFrom.Pwd && isCreateUser === 'add') {
|
||||
|
|
@ -458,8 +458,7 @@ const User: React.FC = () => {
|
|||
return {
|
||||
id: item,
|
||||
subject: addUserFrom.subject,
|
||||
year: addUserFrom.year,
|
||||
RoleId: addUserFrom.RoleId,
|
||||
year: addUserFrom.year
|
||||
}
|
||||
})
|
||||
await PutUserBth(param).then(res => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue