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

页面修改

parent 72e89725
......@@ -33,6 +33,11 @@ namespace Edu.Model.ViewModel.User
/// </summary>
public int IsCompany { get; set; }
/// <summary>
/// 数据类型(1-部门,2-员工)
/// </summary>
public int DataType { get; set; }
/// <summary>
/// 下级部门列表
......
......@@ -176,9 +176,9 @@ namespace Edu.Module.User
ParentId = fItem.ParentId,
ChildList = new List<DepartmentTree_ViewModel>(),
School_Id = fItem.School_Id,
IsCompany = fItem.IsCompany
IsCompany = fItem.IsCompany,
DataType=1,
};
#region 添加员工信息
if (isQueryEmployee)
{
......@@ -193,18 +193,17 @@ namespace Edu.Module.User
DeptName = eItem.EmployeeName,
ParentId = 0,
ChildList = new List<DepartmentTree_ViewModel>(),
School_Id = eItem.School_Id
School_Id = eItem.School_Id,
DataType = 2,
});
}
}
}
#endregion
tModel.ChildList = GetDeptTreeList(fItem.DeptId, deptList, empList: empList);
list.Add(tModel);
}
}
}
return list;
}
......@@ -228,7 +227,8 @@ namespace Edu.Module.User
ParentId = item.ParentId,
ChildList = new List<DepartmentTree_ViewModel>(),
School_Id=item.School_Id,
IsCompany = item.IsCompany
IsCompany = item.IsCompany,
DataType = 1,
};
#region 添加员工信息
if (empList != null && empList.Count > 0)
......@@ -244,13 +244,13 @@ namespace Edu.Module.User
DeptName = eItem.EmployeeName,
ParentId = 0,
School_Id=eItem.School_Id,
ChildList = new List<DepartmentTree_ViewModel>()
ChildList = new List<DepartmentTree_ViewModel>(),
DataType = 2,
});
}
}
}
#endregion
model.ChildList = GetDeptTreeList(item.DeptId, sourceList);
treeList.Add(model);
}
......
......@@ -1104,7 +1104,8 @@ namespace Edu.WebApi.Controllers.User
{
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);
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