From 7d9e32b3f1e9fb9cf84a815521f882ff86806fe8 Mon Sep 17 00:00:00 2001 From: wuteng <419274783@qq.com> Date: Wed, 2 Jul 2025 19:48:50 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E7=BB=84=E6=89=B9=E6=AC=A1=E8=A7=84?= =?UTF-8?q?=E5=88=99=E5=9B=BE=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/emis/emisTransPlanRule.js | 3 + .../emis/emisTransPlanRuleTopoGraph/index.vue | 753 ++++++++++++------ 2 files changed, 508 insertions(+), 248 deletions(-) diff --git a/src/api/emis/emisTransPlanRule.js b/src/api/emis/emisTransPlanRule.js index fadad6ce..5228a1c7 100644 --- a/src/api/emis/emisTransPlanRule.js +++ b/src/api/emis/emisTransPlanRule.js @@ -76,6 +76,9 @@ export function emisTransPlanRuleTree(data) { params: { lineCode: data.lineCode, productType: data.productType, + params:{ + lineStartSiteCode:data.startSiteCode + } }, method: 'get' }) diff --git a/src/views/emis/emisTransPlanRuleTopoGraph/index.vue b/src/views/emis/emisTransPlanRuleTopoGraph/index.vue index e2c04f7a..4329d456 100644 --- a/src/views/emis/emisTransPlanRuleTopoGraph/index.vue +++ b/src/views/emis/emisTransPlanRuleTopoGraph/index.vue @@ -1,265 +1,522 @@ + - + + + + \ No newline at end of file From a8bd303962c36ec74a23977fd03397ddd06e02dc Mon Sep 17 00:00:00 2001 From: wuteng <419274783@qq.com> Date: Wed, 2 Jul 2025 19:55:07 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=9B=BE=E4=B8=8D=E7=BC=A9=E6=94=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/emis/emisTransPlanRuleTopoGraph/index.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/emis/emisTransPlanRuleTopoGraph/index.vue b/src/views/emis/emisTransPlanRuleTopoGraph/index.vue index 4329d456..6581ec1c 100644 --- a/src/views/emis/emisTransPlanRuleTopoGraph/index.vue +++ b/src/views/emis/emisTransPlanRuleTopoGraph/index.vue @@ -158,7 +158,7 @@ export default { container, width: document.getElementById('container').clientWidth + 10, //画布宽度等于浏览器宽度 height: document.getElementById('container').clientHeight + 10, //画布高度等于浏览器高度 - fitView: true, + fitView: false, // fitViewPadding: [10, 50, 10, 50], animate: true, // plugins: [this.treeTooltip(), this.contextMenu], @@ -332,6 +332,7 @@ export default { const animateCfg = { duration: 200, easing: "easeCubic" }; this.graph.on("node:click", (evt) => { + // this.graph.fitView(); const { item } = evt; const node = item?.get("model"); //点击更多 显示锁起来的下一层节点