From 23c1b4b3c6355a7d467dfde708e71ca81e4f4372 Mon Sep 17 00:00:00 2001 From: lb Date: Fri, 17 Nov 2023 09:48:39 +0800 Subject: [PATCH] update --- .../processFlowView/components/ProcessDetail.vue | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/views/extend/processFlowView/components/ProcessDetail.vue b/src/views/extend/processFlowView/components/ProcessDetail.vue index 8c2e2f78..b1f71270 100644 --- a/src/views/extend/processFlowView/components/ProcessDetail.vue +++ b/src/views/extend/processFlowView/components/ProcessDetail.vue @@ -223,12 +223,12 @@ export default { node.attrs; console.log('node clicked!', node) this.currentDet = {}; - this.$set(this.currentDet, 'detId', detId.text); - this.$set(this.currentDet, 'sectionId', sectionId.text); - this.$set(this.currentDet, 'detName', detName.text); - this.$set(this.currentDet, 'detDesc', detDesc.text); - this.$set(this.currentDet, 'flowId', processId.text); - this.$set(this.currentDet, 'sectionName', sectionName.text); + this.$set(this.currentDet, 'detId', detId?.text); + this.$set(this.currentDet, 'sectionId', sectionId?.text); + this.$set(this.currentDet, 'detName', detName?.text); + this.$set(this.currentDet, 'detDesc', detDesc?.text); + this.$set(this.currentDet, 'flowId', processId?.text); + this.$set(this.currentDet, 'sectionName', sectionName?.text); this.currentNode = node; }); this.graph.on('edge:click', ({ e, x, y, edge, view }) => { @@ -257,6 +257,8 @@ export default { const status = await this.handleDelete(id); if (status) { view.cell.remove(); + // 更新布局,不然下次打开删除的节点还在 + this.handleUpdateLayout(); } }) .catch((err) => {