重构用户表的user_type登录设备类型字段前台界面
This commit is contained in:
parent
3354392524
commit
bf3f62727f
@ -43,7 +43,6 @@ public class SysUser extends BaseEntity
|
|||||||
private Long deptId;
|
private Long deptId;
|
||||||
|
|
||||||
/** 部门对象 */
|
/** 部门对象 */
|
||||||
//@RelationManyToOne(selfField = "deptId", targetField = "deptId")
|
|
||||||
private SysDept dept;
|
private SysDept dept;
|
||||||
|
|
||||||
/** 用户账号 */
|
/** 用户账号 */
|
||||||
@ -53,7 +52,7 @@ public class SysUser extends BaseEntity
|
|||||||
private String nickName;
|
private String nickName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 用户类型(sys_user系统用户)
|
* 用户登录设备类型(sys_user系统用户、app_user App用户)
|
||||||
*/
|
*/
|
||||||
private String userType;
|
private String userType;
|
||||||
|
|
||||||
@ -84,24 +83,13 @@ public class SysUser extends BaseEntity
|
|||||||
/** 最后登录时间 */
|
/** 最后登录时间 */
|
||||||
private Date loginDate;
|
private Date loginDate;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/** 角色对象 */
|
/** 角色对象 */
|
||||||
// @RelationManyToMany(
|
|
||||||
// selfField = "userId", targetField = "roleId",
|
|
||||||
// joinTable = "sys_user_role",
|
|
||||||
// joinSelfColumn = "user_id", joinTargetColumn = "role_id"
|
|
||||||
// )
|
|
||||||
private List<SysRole> roles;
|
private List<SysRole> roles;
|
||||||
|
|
||||||
/** 角色组 */
|
/** 角色组 */
|
||||||
private Long[] roleIds;
|
private Long[] roleIds;
|
||||||
|
|
||||||
// @RelationManyToMany(
|
|
||||||
// selfField = "userId", targetField = "postId",
|
|
||||||
// joinTable = "sys_user_post",
|
|
||||||
// joinSelfColumn = "user_id", joinTargetColumn = "post_id"
|
|
||||||
// )
|
|
||||||
private List<SysPost> postList;
|
private List<SysPost> postList;
|
||||||
|
|
||||||
/** 岗位组 */
|
/** 岗位组 */
|
||||||
|
@ -293,12 +293,21 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<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-form-item label="备注">
|
||||||
<el-input v-model="form.remark" type="textarea" placeholder="请输入内容"></el-input>
|
<el-input v-model="form.remark" type="textarea" placeholder="请输入内容"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
||||||
</el-form>
|
</el-form>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<div class="dialog-footer">
|
<div class="dialog-footer">
|
||||||
@ -574,6 +583,7 @@ function reset() {
|
|||||||
email: undefined,
|
email: undefined,
|
||||||
gender: undefined,
|
gender: undefined,
|
||||||
status: "0",
|
status: "0",
|
||||||
|
userType: "sys_user",
|
||||||
remark: undefined,
|
remark: undefined,
|
||||||
postIds: [],
|
postIds: [],
|
||||||
roleIds: []
|
roleIds: []
|
||||||
|
Loading…
Reference in New Issue
Block a user