Commit d8b40754 authored by dragondean@qq.com's avatar dragondean@qq.com

优化抄送流程图

parent 7acff19a
<template> <template>
<div> <div>
<div style="height:350px; overflow:hidden;"> <div class="mb-10">
<my-process-viewer <my-process-viewer
ref="processViewer" ref="processViewer"
:value="bpmnXML" :value="bpmnXML"
...@@ -8,7 +8,6 @@ ...@@ -8,7 +8,6 @@
:activityData="activityData" :activityData="activityData"
:processInstanceData="processInstanceData" :processInstanceData="processInstanceData"
:taskData="taskData" :taskData="taskData"
style="height:500px; margin-top: -80px"
/> />
</div> </div>
<el-form label-position="left" label-width="100px"> <el-form label-position="left" label-width="100px">
......
...@@ -90,7 +90,10 @@ export default { ...@@ -90,7 +90,10 @@ export default {
let xmlString = xml || DefaultEmptyXML(newId, newName, this.prefix); let xmlString = xml || DefaultEmptyXML(newId, newName, this.prefix);
try { try {
// console.log(this.bpmnModeler.importXML); // console.log(this.bpmnModeler.importXML);
let { warnings } = await this.bpmnModeler.importXML(xmlString); let { warnings } = await this.bpmnModeler.importXML(xmlString)
// 220906 增加一个缩放,自动适应尺寸
this.bpmnModeler.get('canvas').zoom('fit-viewport');
if (warnings && warnings.length) { if (warnings && warnings.length) {
warnings.forEach(warn => console.warn(warn)); warnings.forEach(warn => console.warn(warn));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment