|
@@ -95,7 +95,7 @@ namespace OASystem.API.OAMethodLib
|
|
|
if (depId < 1) return false;
|
|
|
if (postId < 1) return false;
|
|
|
if (userId < 1) return false;
|
|
|
- if (userId < 1) return false;
|
|
|
+ if (createUserId < 1) return false;
|
|
|
|
|
|
List<DefaultPostPageAuthView> _defaultData = AppSettingsHelper.Get<DefaultPostPageAuthView>("DefaultPostPageData");
|
|
|
|
|
@@ -137,6 +137,32 @@ namespace OASystem.API.OAMethodLib
|
|
|
{
|
|
|
pageData.AddRange(_defaultData.Find(it => it.DepId == 0)?.PostPageAuths[0].PageIds ?? new List<int>());
|
|
|
}
|
|
|
+ #region 按照岗位默认分配页面 特殊处理 市场部-销售顾问
|
|
|
+
|
|
|
+ var salesDefaultPages = new List<int>() {
|
|
|
+ 27 , //团组操作
|
|
|
+ 104, //接团客户名单
|
|
|
+ 106, //倒推表
|
|
|
+ 168, //出入境国家三公费用标准
|
|
|
+ 194, //出入境费用明细-草稿
|
|
|
+ 196, //前期需求表单收集
|
|
|
+ };
|
|
|
+
|
|
|
+ var currUserInfo = _sqlSugar.Queryable<Sys_Users>()
|
|
|
+ .LeftJoin<Sys_JobPost>((u, jp) => u.JobPostId == jp.Id)
|
|
|
+ .Where((u, jp) => u.Id == userId)
|
|
|
+ .First();
|
|
|
+
|
|
|
+ if (currUserInfo != null)
|
|
|
+ {
|
|
|
+ if (currUserInfo.Equals("销售顾问"))
|
|
|
+ {
|
|
|
+ pageData.AddRange(salesDefaultPages);
|
|
|
+ pageData = pageData.Distinct().OrderBy(x => x).ToList();
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ #endregion
|
|
|
|
|
|
if (pageData.Count > 0)
|
|
|
{
|