#返显高亮工作流

pull/2/head
Roland 2021-11-05 20:54:26 +08:00
parent 9bbeb93b2e
commit e9e73c402b
3 changed files with 15 additions and 3 deletions

View File

@ -267,7 +267,6 @@ public class TaskServiceImpl implements TaskService {
} }
private void responseImage(HttpServletResponse response, InputStream inputStream, String picName) throws IOException { 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.setContentType("application/octet-stream;charset=UTF-8");
response.setHeader("Content-Disposition", "attachment; filename=" + URLEncoder.encode(picName, "UTF-8")); response.setHeader("Content-Disposition", "attachment; filename=" + URLEncoder.encode(picName, "UTF-8"));
byte[] b = new byte[1024]; byte[] b = new byte[1024];

View File

@ -81,3 +81,11 @@ export function processHistorySteps(id) {
method: 'get' method: 'get'
}) })
} }
export function getHighlightImg(id) {
return request({
url: '/workflow/task/process/highlight-img/'+id,
method: 'get'
})
}

View File

@ -137,11 +137,12 @@
</div> </div>
</el-dialog> </el-dialog>
<el-dialog :title="title" :visible.sync="dialogStepsVisible" width="600px" append-to-body> <el-dialog :title="title" :visible.sync="dialogStepsVisible" width="750px" append-to-body>
<el-steps :active="stepActive" finish-status="success" > <el-steps :active="stepActive" finish-status="success" >
<el-step :title="stepTitle(item)" :description="stepAssignee(item.assignee)" icon="el-icon-edit" v-for="(item) in handleTask.historyTask"></el-step> <el-step :title="stepTitle(item)" :description="stepAssignee(item.assignee)" icon="el-icon-edit" v-for="(item) in handleTask.historyTask"></el-step>
</el-steps> </el-steps>
<br/> <br/>
<div v-html="svgUrl"></div>
<el-steps direction="vertical" :active="stepActive"> <el-steps direction="vertical" :active="stepActive">
<el-step :title="stepTitle(item)" :description="stepDes(item)" v-for="(item) in handleTask.historyTask"></el-step> <el-step :title="stepTitle(item)" :description="stepDes(item)" v-for="(item) in handleTask.historyTask"></el-step>
</el-steps> </el-steps>
@ -156,7 +157,7 @@
<script> <script>
import { createLeave, updateLeave, deleteLeave, getLeave, getLeavePage, exportLeaveExcel } from "@/api/oa/leave" import { createLeave, updateLeave, deleteLeave, getLeave, getLeavePage, exportLeaveExcel } from "@/api/oa/leave"
import { getDictDataLabel, getDictDatas, DICT_TYPE } from '@/utils/dict' import { getDictDataLabel, getDictDatas, DICT_TYPE } from '@/utils/dict'
import { processHistorySteps } from '@/api/oa/todo' import { processHistorySteps,getHighlightImg } from '@/api/oa/todo'
export default { export default {
name: "Leave", name: "Leave",
components: { components: {
@ -194,6 +195,7 @@ export default {
}, },
// //
form: {}, form: {},
svgUrl: "",
handleTask: { handleTask: {
historyTask:[], historyTask:[],
taskVariable: "", taskVariable: "",
@ -361,6 +363,9 @@ export default {
this.handleTask.historyTask = response.data; this.handleTask.historyTask = response.data;
this.dialogStepsVisible = true this.dialogStepsVisible = true
this.title = "审批进度"; this.title = "审批进度";
getHighlightImg(row.processInstanceId).then(response => {
that.svgUrl = response
})
}); });
}, },
/** 导出按钮操作 */ /** 导出按钮操作 */