From d6a4dc7d11d2711cb61017e67e7d0059cc92c040 Mon Sep 17 00:00:00 2001 From: gexinzhineng/gxzn27 <1348660141@qq.com> Date: Mon, 30 Jan 2023 10:18:49 +0800 Subject: [PATCH] bug --- .../package/designer/ProcessDesigner.vue | 24 ++++++++++++++----- .../package/designer/ProcessViewer.vue | 4 ++++ 2 files changed, 22 insertions(+), 6 deletions(-) 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)