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

优化抄送流程图

parent 7acff19a
<template>
<div>
<div style="height:350px; overflow:hidden;">
<div class="mb-10">
<my-process-viewer
ref="processViewer"
:value="bpmnXML"
......@@ -8,7 +8,6 @@
:activityData="activityData"
:processInstanceData="processInstanceData"
:taskData="taskData"
style="height:500px; margin-top: -80px"
/>
</div>
<el-form label-position="left" label-width="100px">
......
......@@ -90,7 +90,10 @@ export default {
let xmlString = xml || DefaultEmptyXML(newId, newName, this.prefix);
try {
// 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) {
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