|
@@ -900,11 +900,8 @@ namespace OASystem.API.Controllers
|
|
|
return Ok(JsonView(false, "参数不能为空!"));
|
|
|
}
|
|
|
|
|
|
-
|
|
|
- PageFunAuthViewBase pageFunAuth = new PageFunAuthViewBase();
|
|
|
-
|
|
|
#region 页面功能权限处理
|
|
|
-
|
|
|
+ PageFunAuthViewBase pageFunAuth = new PageFunAuthViewBase();
|
|
|
pageFunAuth = await GeneralMethod.PostUserPageFuncDatas(dto.UserId, dto.PageId);
|
|
|
|
|
|
if (pageFunAuth.CheckAuth == 0)
|
|
@@ -959,6 +956,25 @@ namespace OASystem.API.Controllers
|
|
|
return Ok(JsonView(false, "参数不能为空!"));
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ PageFunAuthViewBase pageFunAuth = new PageFunAuthViewBase();
|
|
|
+
|
|
|
+ #region 页面功能权限处理
|
|
|
+
|
|
|
+ pageFunAuth = await GeneralMethod.PostUserPageFuncDatas(dto.UserId, dto.PageId);
|
|
|
+
|
|
|
+ if (pageFunAuth.CheckAuth == 0)
|
|
|
+ {
|
|
|
+ return Ok(JsonView(false, "您没有当前页面查询权限!"));
|
|
|
+ }
|
|
|
+ #endregion
|
|
|
+
|
|
|
+ if (pageFunAuth.DeleteAuth == 0)
|
|
|
+ {
|
|
|
+ return Ok(JsonView(false, "您没有当前页面删除权限!"));
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
Result _result = await _paymentRefundAndOtherMoneyRep._Del(dto);
|
|
|
|
|
|
if (_result.Code != 0)
|
|
@@ -1050,6 +1066,36 @@ namespace OASystem.API.Controllers
|
|
|
return Ok(JsonView(false, "参数不能为空!"));
|
|
|
}
|
|
|
|
|
|
+ #region 页面功能权限处理
|
|
|
+ PageFunAuthViewBase pageFunAuth = new PageFunAuthViewBase();
|
|
|
+ pageFunAuth = await GeneralMethod.PostUserPageFuncDatas(dto.UserId, dto.PageId);
|
|
|
+
|
|
|
+ if (pageFunAuth.CheckAuth == 0)
|
|
|
+ {
|
|
|
+ return Ok(JsonView(false, "您没有当前页面查询权限!"));
|
|
|
+ }
|
|
|
+
|
|
|
+ #endregion
|
|
|
+
|
|
|
+ if (dto.Status == 1) //add
|
|
|
+ {
|
|
|
+ if (pageFunAuth.AddAuth == 0)
|
|
|
+ {
|
|
|
+ return Ok(JsonView(false, "您没有当前页面添加权限!"));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ else if (dto.Status == 2) //edit
|
|
|
+ {
|
|
|
+ if (pageFunAuth.EditAuth == 0)
|
|
|
+ {
|
|
|
+ return Ok(JsonView(false, "您没有当前页面编辑权限!"));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ return Ok(JsonView(false, "请输入正确的操作状态! 1 添加 2 修改!"));
|
|
|
+ }
|
|
|
+
|
|
|
Result _result = await _paymentRefundAndOtherMoneyRep._AddOrEdit(dto);
|
|
|
|
|
|
if (_result.Code != 0)
|