|
|
|
@ -1,29 +1,24 @@
@@ -1,29 +1,24 @@
|
|
|
|
|
<template> |
|
|
|
|
<div id="app"> |
|
|
|
|
<flowable-preview ref="workflow-preview" :options="chat"/> |
|
|
|
|
<flowable-preview ref="workflow-preview" :style="innerProps.style"/> |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
|
import request from '@utils/request' |
|
|
|
|
import { WORKFLOW_DESIGN_APP_PROPS_KEY } from "@/constants"; |
|
|
|
|
import { merge } from "lodash-es"; |
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
|
name: 'MicroPreview', |
|
|
|
|
props: { [WORKFLOW_DESIGN_APP_PROPS_KEY]: {} }, |
|
|
|
|
data () { |
|
|
|
|
return { |
|
|
|
|
chat: {} |
|
|
|
|
innerProps: this[WORKFLOW_DESIGN_APP_PROPS_KEY] |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
mounted () { |
|
|
|
|
this.test() |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
test () { |
|
|
|
|
/*request({ |
|
|
|
|
url: '/workflow_proxy/workflow/process/getFlowChart/Process_FtFEFSfa:4:7832a2d9-7313-11ec-8a3b-00ff08753f51', |
|
|
|
|
method: 'get' |
|
|
|
|
}).then(({ data }) => { |
|
|
|
|
this.chat = { bpmnXml: data } |
|
|
|
|
})*/ |
|
|
|
|
setProps(props) { |
|
|
|
|
merge(this.innerProps ,props) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|