fix -- 修复流程定义查看流程图未刷新渲染问题
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user