feat: 表单打印时包含流转信息

master
ssc 3 years ago
parent 51d66cce1e
commit 6e4d3d4cc2
  1. 3
      src/views/plugin/workflow/mixins/ex-form.js
  2. 7
      src/views/plugin/workflow/process/components/detail.vue

@ -24,6 +24,7 @@ export default {
bpmnOption: {}, // 流程图配置信息
defaultChecked: '', // 人员选择默认选中
waiting: true, // 骨架屏加载中
isPrintShow: false, // 是否打印显示
}
},
methods: {
@ -413,6 +414,7 @@ export default {
})
})
}
this.isPrintShow = true
setTimeout(() => {
loading.close()
// const watermarkText = this.userInfo.user_name + " " + this.userInfo.dept_name
@ -421,6 +423,7 @@ export default {
this.option = option
this.summaryOption = summaryOption
Watermark.remove() // 删除水印
this.isPrintShow = false
}, 500)
},
// 生成打印临时option

@ -34,6 +34,13 @@
:option="option"
:upload-preview="handleUploadPreview">
</avue-form>
<el-card shadow="never"
style="margin-top: 5px;"
header="流转信息"
:body-style="{padding: '20px 0'}"
v-if="isPrintShow">
<wf-flow :flow="flow"></wf-flow>
</el-card>
</div>
</el-card>
<el-card shadow="never"

Loading…
Cancel
Save