Commit f3eedff6 authored by 黄奎's avatar 黄奎

页面修改

parent 9d2a514f
...@@ -121,5 +121,10 @@ namespace Edu.Model.CacheModel ...@@ -121,5 +121,10 @@ namespace Edu.Model.CacheModel
/// 上传配置 /// 上传配置
/// </summary> /// </summary>
public object UploadConfig { get; set; } public object UploadConfig { get; set; }
/// <summary>
/// 留学就业审核对象
/// </summary>
public object StudyAbroadObj { get; set; }
} }
} }
\ No newline at end of file
...@@ -62,5 +62,28 @@ namespace Edu.Module.Public ...@@ -62,5 +62,28 @@ namespace Edu.Module.Public
return result; return result;
} }
#endregion #endregion
#region 留学就业审核配置
/// <summary>
/// 获取留学就业审核配置
/// </summary>
/// <returns></returns>
public List<object> GetStudyAbroadListModule()
{
List<object> list = new List<object>();
list.Add(new
{
Id = Common.Config.StudyAbroadDirectorId,
Name = "部门主管审核"
});
list.Add(new
{
Id = Common.Config.StudyAbroadManagerId,
Name = "部门负责人审核"
});
return list;
}
#endregion
} }
} }
...@@ -233,7 +233,7 @@ namespace Edu.Module.StudyAbroad ...@@ -233,7 +233,7 @@ namespace Edu.Module.StudyAbroad
{ {
{ nameof(RB_StudyAbroad_ViewModel.SaleState),SaleState}, { nameof(RB_StudyAbroad_ViewModel.SaleState),SaleState},
{ nameof(RB_StudyAbroad_ViewModel.DirectorAuditTime),null}, { nameof(RB_StudyAbroad_ViewModel.DirectorAuditTime),null},
{ nameof(RB_StudyAbroad_ViewModel.DirectorId),0}, { nameof(RB_StudyAbroad_ViewModel.DirectorId),Common.Config.StudyAbroadDirectorId},
{ nameof(RB_StudyAbroad_ViewModel.DirectorOpinion),""}, { nameof(RB_StudyAbroad_ViewModel.DirectorOpinion),""},
{ nameof(RB_StudyAbroad_ViewModel.DirectorStatus),0}, { nameof(RB_StudyAbroad_ViewModel.DirectorStatus),0},
}; };
...@@ -266,7 +266,7 @@ namespace Edu.Module.StudyAbroad ...@@ -266,7 +266,7 @@ namespace Edu.Module.StudyAbroad
{ {
fileds.Add(nameof(RB_StudyAbroad_ViewModel.ManagerId), 0); fileds.Add(nameof(RB_StudyAbroad_ViewModel.ManagerId), 0);
fileds.Add(nameof(RB_StudyAbroad_ViewModel.ManagerOpinion), ""); fileds.Add(nameof(RB_StudyAbroad_ViewModel.ManagerOpinion), "");
fileds.Add(nameof(RB_StudyAbroad_ViewModel.ManagerStatus), 0); fileds.Add(nameof(RB_StudyAbroad_ViewModel.ManagerStatus), Common.Config.StudyAbroadManagerId);
fileds.Add(nameof(RB_StudyAbroad_ViewModel.ManagerAuditTime), null); fileds.Add(nameof(RB_StudyAbroad_ViewModel.ManagerAuditTime), null);
} }
bool flag = studyAbroadRepository.Update(fileds, new WhereHelper(nameof(RB_StudyAbroad_ViewModel.Id), model.Id)); bool flag = studyAbroadRepository.Update(fileds, new WhereHelper(nameof(RB_StudyAbroad_ViewModel.Id), model.Id));
......
...@@ -54,11 +54,11 @@ WHERE 1=1 ...@@ -54,11 +54,11 @@ WHERE 1=1
} }
if (query.AuditType == 1) if (query.AuditType == 1)
{ {
builder.AppendFormat(" AND A.SaleState=2 AND A.DirectorStatus=0 "); builder.AppendFormat(" AND A.SaleState=2 AND A.DirectorStatus=0 AND A.DirectorId={0} ",Common.Config.StudyAbroadDirectorId);
} }
else if (query.AuditType == 2) else if (query.AuditType == 2)
{ {
builder.AppendFormat(" AND A.SaleState=2 AND A.DirectorId>0 AND A.DirectorStatus=1 AND A.ManagerStatus=0 "); builder.AppendFormat(" AND A.SaleState=2 AND A.DirectorId>0 AND A.DirectorStatus=1 AND A.ManagerStatus=0 AND A.ManagerId={0} ",Common.Config.StudyAbroadManagerId);
} }
if (query.SaleState > 0) if (query.SaleState > 0)
{ {
......
...@@ -457,27 +457,6 @@ namespace Edu.WebApi.Controllers.StudyAbroad ...@@ -457,27 +457,6 @@ namespace Edu.WebApi.Controllers.StudyAbroad
return flag ? ApiResult.Success() : ApiResult.Failed(); return flag ? ApiResult.Success() : ApiResult.Failed();
} }
/// <summary>
/// 获取留学就业审核人信息
/// </summary>
/// <returns></returns>
[HttpPost]
public ApiResult GetStudyAbroadAudit()
{
List<object> list = new List<object>();
list.Add(new
{
Id = Common.Config.StudyAbroadDirectorId,
Name = "部门主管审核"
});
list.Add(new
{
Id = Common.Config.StudyAbroadManagerId,
Name = "部门负责人审核"
});
return ApiResult.Success(data: list);
}
/// <summary> /// <summary>
/// 获取留学就业销售状态列表 /// 获取留学就业销售状态列表
/// </summary> /// </summary>
......
...@@ -112,6 +112,7 @@ namespace Edu.WebApi.Controllers.User ...@@ -112,6 +112,7 @@ namespace Edu.WebApi.Controllers.User
var actionList = menuModule.GetPostMenuFunctionListModule(model.Post_Id.ToString()); var actionList = menuModule.GetPostMenuFunctionListModule(model.Post_Id.ToString());
//上传配置 //上传配置
var uploadConfig = publicModule.GetFileStoreList(new Model.Public.RB_File_Store() { Group_Id = model.Group_Id, IsDefault = 1 })?.FirstOrDefault(); var uploadConfig = publicModule.GetFileStoreList(new Model.Public.RB_File_Store() { Group_Id = model.Group_Id, IsDefault = 1 })?.FirstOrDefault();
UserInfo obj = new UserInfo UserInfo obj = new UserInfo
{ {
Id = model.Id, Id = model.Id,
...@@ -144,7 +145,8 @@ namespace Edu.WebApi.Controllers.User ...@@ -144,7 +145,8 @@ namespace Edu.WebApi.Controllers.User
uploadConfig?.SecretKey, uploadConfig?.SecretKey,
uploadConfig?.SecretId, uploadConfig?.SecretId,
uploadConfig?.UploadDomain uploadConfig?.UploadDomain
} },
StudyAbroadObj=publicModule.GetStudyAbroadListModule()
}; };
UserReidsCache.UserInfoSet(Cache.CacheKey.User_Login_Key + model.Id, obj, Common.Config.JwtExpirTime); UserReidsCache.UserInfoSet(Cache.CacheKey.User_Login_Key + model.Id, obj, Common.Config.JwtExpirTime);
return ApiResult.Success(data: obj); return ApiResult.Success(data: obj);
...@@ -182,6 +184,7 @@ namespace Edu.WebApi.Controllers.User ...@@ -182,6 +184,7 @@ namespace Edu.WebApi.Controllers.User
//获取功能权限列表 //获取功能权限列表
var actionList = menuModule.GetPostMenuFunctionListModule(userInfo.PostId.ToString()); var actionList = menuModule.GetPostMenuFunctionListModule(userInfo.PostId.ToString());
userInfo.ActionMenuList = actionList?.Select(qitem => new { qitem.FunctionCode, qitem.FunctionName, qitem.MenuName, qitem.MenuUrl }); userInfo.ActionMenuList = actionList?.Select(qitem => new { qitem.FunctionCode, qitem.FunctionName, qitem.MenuName, qitem.MenuUrl });
userInfo.StudyAbroadObj = publicModule.GetStudyAbroadListModule();
//上传配置 //上传配置
var uploadConfig = publicModule.GetFileStoreList(new Model.Public.RB_File_Store() { Group_Id = userInfo.Group_Id, IsDefault = 1 })?.FirstOrDefault(); var uploadConfig = publicModule.GetFileStoreList(new Model.Public.RB_File_Store() { Group_Id = userInfo.Group_Id, IsDefault = 1 })?.FirstOrDefault();
userInfo.UploadConfig = new userInfo.UploadConfig = new
......
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