详情显示bpmn

This commit is contained in:
gexinzhineng/gxzn27
2023-01-31 16:17:11 +08:00
parent 3a954b47bb
commit 63055cc559
3 changed files with 85 additions and 7 deletions

View File

@ -38,7 +38,13 @@
<span class="el-icon-picture-outline">流程图</span>
</div>
<!-- TODO 芋艿待完成 -->
<!-- <my-process-viewer key="designer" v-model="bpmnXML" v-bind="bpmnControlForm" /> -->
<my-process-viewer
key="designer"
v-model="bpmnXML"
:value="bpmnXML"
v-bind="bpmnControlForm"
:prefix="bpmnControlForm.prefix"
/>
</el-card>
</div>
</ContentWrap>
@ -89,7 +95,7 @@ const handleSelect = async (row) => {
// 加载流程图
DefinitionApi.getProcessDefinitionBpmnXMLApi(row.id).then((response) => {
bpmnXML.value = response.data
bpmnXML.value = response
})
// 情况二:业务表单
} else if (row.formCustomCreatePath) {
@ -126,9 +132,9 @@ const submitForm = async (formData) => {
// // BPMN 数据
const bpmnXML = ref(null)
// const bpmnControlForm=ref( {
// prefix: "flowable"
// })
const bpmnControlForm = ref({
prefix: 'flowable'
})
</script>
<style lang="scss">

View File

@ -144,7 +144,9 @@
<my-process-viewer
key="designer"
v-model="bpmnXML"
:value="bpmnXML"
v-bind="bpmnControlForm"
:prefix="bpmnControlForm.prefix"
:activityData="activityList"
:processInstanceData="processInstance"
:taskData="tasks"