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??>
-
-
#if>
-
#list>
#if>
+
+
+
-

+
@@ -92,6 +100,58 @@
+
+
@defaultLayout.layout>
@@ -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??>