diff --git a/yudao-admin-server/src/main/java/cn/iocoder/yudao/adminserver/modules/activiti/service/workflow/impl/TaskServiceImpl.java b/yudao-admin-server/src/main/java/cn/iocoder/yudao/adminserver/modules/activiti/service/workflow/impl/TaskServiceImpl.java index f1dda75ec..c4e8823e8 100644 --- a/yudao-admin-server/src/main/java/cn/iocoder/yudao/adminserver/modules/activiti/service/workflow/impl/TaskServiceImpl.java +++ b/yudao-admin-server/src/main/java/cn/iocoder/yudao/adminserver/modules/activiti/service/workflow/impl/TaskServiceImpl.java @@ -267,7 +267,6 @@ public class TaskServiceImpl implements TaskService { } private void responseImage(HttpServletResponse response, InputStream inputStream, String picName) throws IOException { - BufferedImage src = ImageIO.read(inputStream); response.setContentType("application/octet-stream;charset=UTF-8"); response.setHeader("Content-Disposition", "attachment; filename=" + URLEncoder.encode(picName, "UTF-8")); byte[] b = new byte[1024]; diff --git a/yudao-admin-ui/src/api/oa/todo.js b/yudao-admin-ui/src/api/oa/todo.js index 1aed4b058..cb98c466d 100644 --- a/yudao-admin-ui/src/api/oa/todo.js +++ b/yudao-admin-ui/src/api/oa/todo.js @@ -81,3 +81,11 @@ export function processHistorySteps(id) { method: 'get' }) } + + +export function getHighlightImg(id) { + return request({ + url: '/workflow/task/process/highlight-img/'+id, + method: 'get' + }) +} diff --git a/yudao-admin-ui/src/views/oa/leave/index.vue b/yudao-admin-ui/src/views/oa/leave/index.vue index 04a0eb6d0..ef9db1bc6 100644 --- a/yudao-admin-ui/src/views/oa/leave/index.vue +++ b/yudao-admin-ui/src/views/oa/leave/index.vue @@ -137,11 +137,12 @@ - +
+
@@ -156,7 +157,7 @@