From 9c735dd93e08048fa5635a69cdd448b218650a27 Mon Sep 17 00:00:00 2001 From: qinoy Date: Fri, 23 Sep 2022 11:23:44 +0800 Subject: [PATCH] =?UTF-8?q?=E9=99=84=E4=BB=B6=E5=9B=BE=E6=A0=87=E9=81=AE?= =?UTF-8?q?=E6=8C=A1=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../designer/scripts/diagraming/designer.core.debug.js | 8 ++++++++ .../lib/designer/scripts/diagraming/designer.core.js | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/com.actionsoft.apps.coe.pal/web/com.actionsoft.apps.coe.pal/lib/designer/scripts/diagraming/designer.core.debug.js b/com.actionsoft.apps.coe.pal/web/com.actionsoft.apps.coe.pal/lib/designer/scripts/diagraming/designer.core.debug.js index 47db1b2d..95967cb6 100755 --- a/com.actionsoft.apps.coe.pal/web/com.actionsoft.apps.coe.pal/lib/designer/scripts/diagraming/designer.core.debug.js +++ b/com.actionsoft.apps.coe.pal/web/com.actionsoft.apps.coe.pal/lib/designer/scripts/diagraming/designer.core.debug.js @@ -5479,6 +5479,11 @@ var Designer = { var y = $("").appendTo(o); + setTimeout(function () { + var start = Model.maxZIndex + 1; + q.props.zindex = start; //q为当前shape + Model.updateMulti([q]); + },300); y.on("mousedown.link", function(I) { I.stopPropagation(); @@ -5653,6 +5658,9 @@ var Designer = { q.props.zindex = start; //q为当前shape Model.updateMulti([q]);*/ // 重画节点 Designer.painter.renderShape(q); + var start = Model.maxZIndex + 1; + q.props.zindex = start; //q为当前shape + Model.updateMulti([q]); y.on("mousedown.attachment", function(I) { I.stopPropagation(); diff --git a/com.actionsoft.apps.coe.pal/web/com.actionsoft.apps.coe.pal/lib/designer/scripts/diagraming/designer.core.js b/com.actionsoft.apps.coe.pal/web/com.actionsoft.apps.coe.pal/lib/designer/scripts/diagraming/designer.core.js index 0b94d182..551ab433 100755 --- a/com.actionsoft.apps.coe.pal/web/com.actionsoft.apps.coe.pal/lib/designer/scripts/diagraming/designer.core.js +++ b/com.actionsoft.apps.coe.pal/web/com.actionsoft.apps.coe.pal/lib/designer/scripts/diagraming/designer.core.js @@ -5620,6 +5620,11 @@ var Designer = { var y = $("").appendTo(o); + setTimeout(function () { + var start = Model.maxZIndex + 1; + q.props.zindex = start; //q为当前shape + Model.updateMulti([q]); + },300); y.on("mousedown.link", function(I) { I.stopPropagation(); @@ -5794,6 +5799,9 @@ var Designer = { q.props.zindex = start; //q为当前shape Model.updateMulti([q]);*/ // 重画节点 Designer.painter.renderShape(q); + var start = Model.maxZIndex + 1; + q.props.zindex = start; //q为当前shape + Model.updateMulti([q]); y.on("mousedown.attachment", function(I) { I.stopPropagation();