fix #IBLLAG 加签人员驳回失败

This commit is contained in:
wintel 2025-02-25 22:44:23 +08:00
parent 04a557b6e6
commit 1369b08f70
2 changed files with 30 additions and 25 deletions

View File

@ -2,7 +2,7 @@
* @Author: yubaolee <yubaolee@163.com> | ahfu~ <954478625@qq.com> * @Author: yubaolee <yubaolee@163.com> | ahfu~ <954478625@qq.com>
* @Date: 2024-12-13 16:55:17 * @Date: 2024-12-13 16:55:17
* @Description: * @Description:
* @LastEditTime: 2025-02-19 11:43:24 * @LastEditTime: 2025-02-25 22:42:53
* Copyright (c) 2024 by yubaolee | ahfu~ , All Rights Reserved. * Copyright (c) 2024 by yubaolee | ahfu~ , All Rights Reserved.
*/ */
@ -507,7 +507,15 @@ namespace OpenAuth.App
{ {
var user = _auth.GetCurrentUser().User; var user = _auth.GetCurrentUser().User;
FlowInstance flowInstance = Get(reqest.FlowInstanceId); FlowInstance flowInstance = Get(reqest.FlowInstanceId);
if (flowInstance.MakerList != "1" && !flowInstance.MakerList.Contains(user.Id))
var approvers = _flowApproverApp.GetApproverIds(new QueryApproverReq
{
FlowInstanceId = reqest.FlowInstanceId,
ActivityId = flowInstance.ActivityId
});
if (flowInstance.MakerList != "1" && !flowInstance.MakerList.Contains(user.Id) &&
!approvers.Contains(user.Id))
{ {
throw new Exception("当前用户没有驳回该节点权限"); throw new Exception("当前用户没有驳回该节点权限");
} }

View File

@ -1,17 +1,14 @@
/* /*
* @Author: yubaolee <yubaolee@163.com> | ahfu~ <954478625@qq.com> * @Author: yubaolee <yubaolee@163.com> | ahfu~ <954478625@qq.com>
* @Date: 2023-12-25 14:43:53 * @Date: 2023-12-25 14:43:53
* @LastEditTime: 2024-12-03 14:00:32 * @LastEditTime: 2025-02-25 19:46:11
* @Description: * @Description:
* Copyright (c) 2024 by yubaolee | ahfu~ , All Rights Reserved. * Copyright (c) 2024 by yubaolee | ahfu~ , All Rights Reserved.
*/ */
layui.config({ layui.config({
base: "/js/" base: "/js/"
}).use(['form', 'element', 'layer', 'jquery'], function () { }).use(['form', 'element', 'layer', 'jquery'], function () {
var form = layui.form, var $ = layui.jquery;
layer = parent.layer === undefined ? layui.layer : parent.layer,
element = layui.element,
$ = layui.jquery;
$(".panel a").on("click", function () { $(".panel a").on("click", function () {
window.parent.addTab($(this)); window.parent.addTab($(this));
@ -66,7 +63,7 @@ layui.config({
}) })
//系统基本参数 //系统基本参数
$(".version").text("v6.5"); //当前版本 $(".version").text("v7.1"); //当前版本
$(".author").text("yubaolee"); //开发作者 $(".author").text("yubaolee"); //开发作者
$(".homePage").text("/Home/Index"); //网站首页 $(".homePage").text("/Home/Index"); //网站首页
$(".server").text("centos docker"); //服务器环境 $(".server").text("centos docker"); //服务器环境