飞行员新增修改

This commit is contained in:
Double-_-Z 2025-08-18 10:55:40 +08:00
parent fc2dc2eca2
commit 34e2fa8cdb

View File

@ -330,9 +330,9 @@
}, },
// //
[CRUD.HOOK.afterValidateCU](crud) { [CRUD.HOOK.afterValidateCU](crud) {
const rolesIds = this.roles.find(item=>item.name === '飞行员').id; // const rolesIds = this.roles.find(item=>item.name === '').id;
crud.form.userType = 1; crud.form.userType = 1;
crud.form.roles = [{id:rolesIds}]; // crud.form.roles = [{id:rolesIds}];
return true; return true;
}, },
// //