diff --git a/yudao-ui-admin-vue3/src/components/bpmnProcessDesigner/package/designer/ProcessDesigner.vue b/yudao-ui-admin-vue3/src/components/bpmnProcessDesigner/package/designer/ProcessDesigner.vue index 0141d2483..b5e772925 100644 --- a/yudao-ui-admin-vue3/src/components/bpmnProcessDesigner/package/designer/ProcessDesigner.vue +++ b/yudao-ui-admin-vue3/src/components/bpmnProcessDesigner/package/designer/ProcessDesigner.vue @@ -8,13 +8,16 @@ @@ -22,9 +25,11 @@ { const previewProcessJson = () => { bpmnModeler.saveXML({ format: true }).then(({ xml }) => { console.log(xml, 'xml') + + const rootNode = parseXmlString(xml) + console.log(rootNode, 'rootNoderootNode') + const rootNodes = new XmlNode(XmlNodeType.Root) + rootNodes.toJsObject() + console.log(JSON.stringify(rootNodes), ';;;;;;;;;;;;;;;') + const parser = new xml2js.XMLParser() let jObj = parser.parse(xml) // console.log(jObj, 'jObjjObjjObjjObjjObj') diff --git a/yudao-ui-admin-vue3/src/components/bpmnProcessDesigner/package/designer/ProcessViewer.vue b/yudao-ui-admin-vue3/src/components/bpmnProcessDesigner/package/designer/ProcessViewer.vue index e222ace18..1b698388b 100644 --- a/yudao-ui-admin-vue3/src/components/bpmnProcessDesigner/package/designer/ProcessViewer.vue +++ b/yudao-ui-admin-vue3/src/components/bpmnProcessDesigner/package/designer/ProcessViewer.vue @@ -39,6 +39,10 @@ const props = defineProps({ provide('configGlobal', props) +const emit = defineEmits(['destroy']) + +let bpmnModeler + const xml = ref('') const activityList = ref([]) const processInstance = ref(undefined)