feat: add roleIds and postIds to user submission model in user-operate-drawer

This commit is contained in:
AN 2025-05-15 22:19:08 +08:00
parent 473a8cd6b7
commit 8490de21be

View File

@ -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;