From 98156d2529f36b3de5d06dafb1dd7d7169e11da2 Mon Sep 17 00:00:00 2001 From: pengqiang <1067496116@qq.com> Date: Mon, 22 Nov 2021 10:21:37 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E7=AE=A1=E7=90=86=E5=91=98?= =?UTF-8?q?=E5=AE=A1=E6=A0=B8=E5=92=8C=E6=92=A4=E9=94=80=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../work/service/ProjectInstanceService.java | 3 + .../templates/admin/act_his_task_list.ftl | 117 +++++++++++++++--- .../templates/admin/act_proc_ins_list.ftl | 2 +- 3 files changed, 104 insertions(+), 18 deletions(-) diff --git a/src/main/java/cn/palmte/work/service/ProjectInstanceService.java b/src/main/java/cn/palmte/work/service/ProjectInstanceService.java index ce57f90..243d6a7 100644 --- a/src/main/java/cn/palmte/work/service/ProjectInstanceService.java +++ b/src/main/java/cn/palmte/work/service/ProjectInstanceService.java @@ -111,6 +111,9 @@ public class ProjectInstanceService { */ public void updateApprover(int projectId, int adminId){ Project project = projectRepository.findOne(projectId); + if (project == null) { + return; + } if (adminId == 0) { project.setApproveName(""); }else { diff --git a/src/main/resources/templates/admin/act_his_task_list.ftl b/src/main/resources/templates/admin/act_his_task_list.ftl index 5a7af7b..005019b 100644 --- a/src/main/resources/templates/admin/act_his_task_list.ftl +++ b/src/main/resources/templates/admin/act_his_task_list.ftl @@ -1,6 +1,19 @@ <#assign base=request.contextPath /> <#import "../common/defaultLayout.ftl" as defaultLayout> <@defaultLayout.layout> + + +
@@ -13,7 +26,7 @@
@@ -53,32 +66,27 @@ <#if !list.endTime??> - - -
+ +
+
- +
@@ -92,6 +100,58 @@ + +
+
+
管理员审核
+
+
+
+
+
+ +
+
审核
+ + + +
+ + + +
+
+ +
+ +
+
+ *意见 +
+
+ +
+
+ +
+
+
+
+
+ +
+
@@ -99,13 +159,35 @@ var urlBase = "${base}"; var url; - var completeTask = function (procInsId, taskId, type) { + var toHandle = function (procInsId, taskId) { + $('#my-approve').modal({ + relatedTarget: this, + onConfirm: function (e) { + }, + onCancel: function (e) { + } + }); + + $("#handleProcInsId").val(procInsId); + $("#handleTaskId").val(taskId); + + }; + + var handleTask = function () { + var message = $("#doc-vld-ta-2").val(); + var type = $("input[name='docVlGender']:checked").val(); + + if (message == '') { + message = "系统管理员审核"; + } + var params = { - procInsId: procInsId, - taskId: taskId, + procInsId: $("#handleProcInsId").val(), + taskId: $("#handleTaskId").val(), type: type, - message: '管理员审批' + message: message }; + $.ajax({ url: '${base}/actTaskDef/completeTask', data: JSON.stringify(params), @@ -118,5 +200,6 @@ location.reload(); } }); - } + }; + \ No newline at end of file diff --git a/src/main/resources/templates/admin/act_proc_ins_list.ftl b/src/main/resources/templates/admin/act_proc_ins_list.ftl index 1fde6f3..7a97184 100644 --- a/src/main/resources/templates/admin/act_proc_ins_list.ftl +++ b/src/main/resources/templates/admin/act_proc_ins_list.ftl @@ -43,7 +43,7 @@ <#if !list.endTime??>