fix -- 修复流程定义查看流程图未刷新渲染问题

This commit is contained in:
konbai
2022-03-20 11:55:49 +08:00
parent 3948ffb05c
commit 671e61585f

View File

@@ -187,7 +187,7 @@
<!-- 流程图 --> <!-- 流程图 -->
<el-dialog :title="processView.title" :visible.sync="processView.open" width="70%" append-to-body> <el-dialog :title="processView.title" :visible.sync="processView.open" width="70%" append-to-body>
<process-viewer :xml="processView.xmlData" :style="{height: '400px'}" /> <process-viewer :key="`designer-${processView.index}`" :xml="processView.xmlData" :style="{height: '400px'}" />
</el-dialog> </el-dialog>
<!-- 编辑流程 --> <!-- 编辑流程 -->
@@ -375,6 +375,7 @@ export default {
processView: { processView: {
title: '', title: '',
open: false, open: false,
index: undefined,
xmlData:"", xmlData:"",
}, },
// bpmn.xml 导入 // bpmn.xml 导入
@@ -515,6 +516,7 @@ export default {
handleProcessView(row) { handleProcessView(row) {
let definitionId = row.definitionId; let definitionId = row.definitionId;
this.processView.title = "流程图"; this.processView.title = "流程图";
this.processView.index = definitionId;
// 发送请求获取xml // 发送请求获取xml
readXml(definitionId).then(res => { readXml(definitionId).then(res => {
this.processView.xmlData = res.data; this.processView.xmlData = res.data;