Commit 94d1f70f authored by 黄奎's avatar 黄奎

页面修改

parent 72e89725
...@@ -33,6 +33,11 @@ namespace Edu.Model.ViewModel.User ...@@ -33,6 +33,11 @@ namespace Edu.Model.ViewModel.User
/// </summary> /// </summary>
public int IsCompany { get; set; } public int IsCompany { get; set; }
/// <summary>
/// 数据类型(1-部门,2-员工)
/// </summary>
public int DataType { get; set; }
/// <summary> /// <summary>
/// 下级部门列表 /// 下级部门列表
......
...@@ -176,9 +176,9 @@ namespace Edu.Module.User ...@@ -176,9 +176,9 @@ namespace Edu.Module.User
ParentId = fItem.ParentId, ParentId = fItem.ParentId,
ChildList = new List<DepartmentTree_ViewModel>(), ChildList = new List<DepartmentTree_ViewModel>(),
School_Id = fItem.School_Id, School_Id = fItem.School_Id,
IsCompany = fItem.IsCompany IsCompany = fItem.IsCompany,
DataType=1,
}; };
#region 添加员工信息 #region 添加员工信息
if (isQueryEmployee) if (isQueryEmployee)
{ {
...@@ -193,18 +193,17 @@ namespace Edu.Module.User ...@@ -193,18 +193,17 @@ namespace Edu.Module.User
DeptName = eItem.EmployeeName, DeptName = eItem.EmployeeName,
ParentId = 0, ParentId = 0,
ChildList = new List<DepartmentTree_ViewModel>(), ChildList = new List<DepartmentTree_ViewModel>(),
School_Id = eItem.School_Id School_Id = eItem.School_Id,
DataType = 2,
}); });
} }
} }
} }
#endregion #endregion
tModel.ChildList = GetDeptTreeList(fItem.DeptId, deptList, empList: empList); tModel.ChildList = GetDeptTreeList(fItem.DeptId, deptList, empList: empList);
list.Add(tModel); list.Add(tModel);
} }
} }
} }
return list; return list;
} }
...@@ -228,7 +227,8 @@ namespace Edu.Module.User ...@@ -228,7 +227,8 @@ namespace Edu.Module.User
ParentId = item.ParentId, ParentId = item.ParentId,
ChildList = new List<DepartmentTree_ViewModel>(), ChildList = new List<DepartmentTree_ViewModel>(),
School_Id=item.School_Id, School_Id=item.School_Id,
IsCompany = item.IsCompany IsCompany = item.IsCompany,
DataType = 1,
}; };
#region 添加员工信息 #region 添加员工信息
if (empList != null && empList.Count > 0) if (empList != null && empList.Count > 0)
...@@ -244,13 +244,13 @@ namespace Edu.Module.User ...@@ -244,13 +244,13 @@ namespace Edu.Module.User
DeptName = eItem.EmployeeName, DeptName = eItem.EmployeeName,
ParentId = 0, ParentId = 0,
School_Id=eItem.School_Id, School_Id=eItem.School_Id,
ChildList = new List<DepartmentTree_ViewModel>() ChildList = new List<DepartmentTree_ViewModel>(),
DataType = 2,
}); });
} }
} }
} }
#endregion #endregion
model.ChildList = GetDeptTreeList(item.DeptId, sourceList); model.ChildList = GetDeptTreeList(item.DeptId, sourceList);
treeList.Add(model); treeList.Add(model);
} }
......
...@@ -1104,7 +1104,8 @@ namespace Edu.WebApi.Controllers.User ...@@ -1104,7 +1104,8 @@ namespace Edu.WebApi.Controllers.User
{ {
var query = new RB_Department_ViewModel() var query = new RB_Department_ViewModel()
{ {
Group_Id = base.ParmJObj.GetInt("Group_Id"), Group_Id = base.UserInfo.Group_Id,
School_Id=base.ParmJObj.GetInt("School_Id")
}; };
var list = departmentModule.GetDepartmentTreeModule(query, isQueryEmployee: true); var list = departmentModule.GetDepartmentTreeModule(query, isQueryEmployee: true);
return ApiResult.Success(data: list); return ApiResult.Success(data: list);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment