流程定义查看流程图

pull/6/head
gexinzhineng/gxzn27 2023-02-27 17:39:14 +08:00
parent 7ec3550157
commit 666a523fee
1 changed files with 23 additions and 3 deletions

View File

@ -43,6 +43,16 @@
v-if="formDetailVisible" v-if="formDetailVisible"
/> />
</XModal> </XModal>
<!-- 流程模型图的预览 -->
<XModal title="流程图" v-model="showBpmnOpen" width="80%" height="90%">
<my-process-viewer
key="designer"
v-model="bpmnXML"
:value="bpmnXML"
v-bind="bpmnControlForm"
:prefix="bpmnControlForm.prefix"
/>
</XModal>
</ContentWrap> </ContentWrap>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
@ -51,8 +61,12 @@ import * as DefinitionApi from '@/api/bpm/definition'
// import * as ModelApi from '@/api/bpm/model' // import * as ModelApi from '@/api/bpm/model'
import { allSchemas } from './definition.data' import { allSchemas } from './definition.data'
import { setConfAndFields2 } from '@/utils/formCreate' import { setConfAndFields2 } from '@/utils/formCreate'
const bpmnXML = ref(null)
const message = useMessage() // const showBpmnOpen = ref(false)
const bpmnControlForm = ref({
prefix: 'flowable'
})
// const message = useMessage() //
const router = useRouter() // const router = useRouter() //
const { query } = useRoute() // const { query } = useRoute() //
@ -89,7 +103,13 @@ const handleFormDetail = async (row) => {
const handleBpmnDetail = (row) => { const handleBpmnDetail = (row) => {
// TODO // TODO
console.log(row) console.log(row)
message.success('流程组件开发中,预计 2 月底完成') DefinitionApi.getProcessDefinitionBpmnXMLApi(row).then((response) => {
console.log(response, 'response')
bpmnXML.value = response.bpmnXml
//
showBpmnOpen.value = true
})
// message.success(' 2 ')
} }
// //