feat: add roleIds and postIds to user submission model in user-operate-drawer
This commit is contained in:
parent
473a8cd6b7
commit
8490de21be
@ -108,7 +108,8 @@ function closeDrawer() {
|
||||
async function handleSubmit() {
|
||||
await validate();
|
||||
|
||||
const { userId, deptId, userName, nickName, email, phonenumber, sex, password, status, remark } = model;
|
||||
const { userId, deptId, userName, nickName, email, phonenumber, sex, password, status, roleIds, postIds, remark } =
|
||||
model;
|
||||
|
||||
// request
|
||||
if (props.operateType === 'add') {
|
||||
@ -121,6 +122,8 @@ async function handleSubmit() {
|
||||
sex,
|
||||
password,
|
||||
status,
|
||||
roleIds,
|
||||
postIds,
|
||||
remark
|
||||
});
|
||||
if (error) return;
|
||||
@ -137,6 +140,8 @@ async function handleSubmit() {
|
||||
sex,
|
||||
password,
|
||||
status,
|
||||
roleIds,
|
||||
postIds,
|
||||
remark
|
||||
});
|
||||
if (error) return;
|
||||
|
Loading…
Reference in New Issue
Block a user