mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
feat: add roleIds and postIds to user submission model in user-operate-drawer
This commit is contained in:
@ -108,7 +108,8 @@ function closeDrawer() {
|
|||||||
async function handleSubmit() {
|
async function handleSubmit() {
|
||||||
await validate();
|
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
|
// request
|
||||||
if (props.operateType === 'add') {
|
if (props.operateType === 'add') {
|
||||||
@ -121,6 +122,8 @@ async function handleSubmit() {
|
|||||||
sex,
|
sex,
|
||||||
password,
|
password,
|
||||||
status,
|
status,
|
||||||
|
roleIds,
|
||||||
|
postIds,
|
||||||
remark
|
remark
|
||||||
});
|
});
|
||||||
if (error) return;
|
if (error) return;
|
||||||
@ -137,6 +140,8 @@ async function handleSubmit() {
|
|||||||
sex,
|
sex,
|
||||||
password,
|
password,
|
||||||
status,
|
status,
|
||||||
|
roleIds,
|
||||||
|
postIds,
|
||||||
remark
|
remark
|
||||||
});
|
});
|
||||||
if (error) return;
|
if (error) return;
|
||||||
|
Reference in New Issue
Block a user