From 2871cb99e018f6bf9e2ef76a424a1429a7c818f0 Mon Sep 17 00:00:00 2001 From: xiejun <xj@2023> Date: 星期四, 13 七月 2023 11:40:07 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- Source/UBCS-WEB/src/components/flow-cycle/flowchartEditor.vue | 24 +++++------------------- 1 files changed, 5 insertions(+), 19 deletions(-) diff --git a/Source/UBCS-WEB/src/components/flow-cycle/flowchartEditor.vue b/Source/UBCS-WEB/src/components/flow-cycle/flowchartEditor.vue index 22c03ce..aaac12b 100644 --- a/Source/UBCS-WEB/src/components/flow-cycle/flowchartEditor.vue +++ b/Source/UBCS-WEB/src/components/flow-cycle/flowchartEditor.vue @@ -23,7 +23,7 @@ </div> <div class="vfe-chart-panel" v-if="type !== 'detail'"> <div class="vfe-chart-panel-detail"> - <editor-detail-panel :rowData="rowData" ref="EditorDetailPanel" /> + <editor-detail-panel :rowData="rowData" ref="EditorDetailPanel" :existNodes="existNodes"/> </div> </div> </div> @@ -83,6 +83,7 @@ }, tooltipShow: true, tooltipData: [], + existNodes: [] }; }, @@ -95,25 +96,7 @@ }, methods: { - // onAfterChange(e) { - // const model = e.model - // console.log(JSON.parse(JSON.stringify(e))); - // if (!model.change) { - // model.id = model.label - // model.change = true - // } else { - // return - // } - // const { nodes } = this.$refs.flowChart.propsAPI.save() - // if (Array.isArray(nodes) && nodes.length > 0) { - - // } else { - // this.$refs.flowChart.propsAPI.add("node", model); - // } - // throw '绂佹鍘熺敓鏂板鏂规硶' - // }, onAfterChange(e) { - console.log(e); try { if (e.action === "add" && e.model.type === "node") { if (!e.model.change) { @@ -131,6 +114,9 @@ this.$message.error("涓嶈兘娣诲姞宸插瓨鍦ㄧ殑鑺傜偣锛�"); } } + const { nodes } = this.$refs.flowChart.propsAPI.save() + this.existNodes = nodes || [] + console.log(this.$refs.flowChart.propsAPI.save()); }, _downloadImage(data, filename = "flowchart.png") { const a = document.createElement("a"); -- Gitblit v1.9.3