Lyyyi 1 день назад
Родитель
Сommit
fed3245d80

+ 1 - 2
OASystem/OASystem.Api/Controllers/PersonnelModuleController.cs

@@ -1174,8 +1174,7 @@ WHERE
                 (bool editPerm, string msg1) = _taskAllocationRep.EditPerm(item.Id, dto.UserId);
                 item.EditPerm = editPerm;
                 //设置任务终止权限
-                (bool stopPerm, string msg2) = _taskAllocationRep.TaskStopPerm(item.Id, dto.UserId);
-                item.TaskStopPerm = stopPerm;
+                if (item.CreateUserId == dto.UserId) item.TaskCompletedPerm = true;
                 //设置已知晓权限
                 (bool havePerm, string msg3) = _taskAllocationRep.TaskHavePerm(item.Id, dto.UserId);
                 item.TaskHavePerm = havePerm;

+ 2 - 2
OASystem/OASystem.Domain/ViewModels/PersonnelModule/TaskAllocationView.cs

@@ -190,9 +190,9 @@ namespace OASystem.Domain.ViewModels.PersonnelModule
         public bool EditPerm { get; set; } = false;
 
         /// <summary>
-        /// 任务终止权限
+        /// 任务完成权限
         /// </summary>
-        public bool TaskStopPerm { get; set; } = false;
+        public bool TaskCompletedPerm { get; set; } = false;
 
         /// <summary>
         /// 已知晓权限