重构用户表的user_type登录设备类型字段前台界面

This commit is contained in:
dataprince 2023-10-16 20:26:02 +08:00
parent 3354392524
commit bf3f62727f
2 changed files with 13 additions and 15 deletions

View File

@ -43,7 +43,6 @@ public class SysUser extends BaseEntity
private Long deptId;
/** 部门对象 */
//@RelationManyToOne(selfField = "deptId", targetField = "deptId")
private SysDept dept;
/** 用户账号 */
@ -53,7 +52,7 @@ public class SysUser extends BaseEntity
private String nickName;
/**
* 用户类型sys_user系统用户
* 用户登录设备类型sys_user系统用户app_user App用户
*/
private String userType;
@ -84,24 +83,13 @@ public class SysUser extends BaseEntity
/** 最后登录时间 */
private Date loginDate;
/** 角色对象 */
// @RelationManyToMany(
// selfField = "userId", targetField = "roleId",
// joinTable = "sys_user_role",
// joinSelfColumn = "user_id", joinTargetColumn = "role_id"
// )
private List<SysRole> roles;
/** 角色组 */
private Long[] roleIds;
// @RelationManyToMany(
// selfField = "userId", targetField = "postId",
// joinTable = "sys_user_post",
// joinSelfColumn = "user_id", joinTargetColumn = "post_id"
// )
private List<SysPost> postList;
/** 岗位组 */

View File

@ -293,12 +293,21 @@
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<el-col :span="12">
<el-form-item label="设备类型">
<el-select v-model="form.userType" placeholder="请选择">
<el-option label="PC端" value="sys_user"></el-option>
<el-option label="APP端" value="app_user"></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="备注">
<el-input v-model="form.remark" type="textarea" placeholder="请输入内容"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
<template #footer>
<div class="dialog-footer">
@ -574,6 +583,7 @@ function reset() {
email: undefined,
gender: undefined,
status: "0",
userType: "sys_user",
remark: undefined,
postIds: [],
roleIds: []