From 5f7101c8de0603c876b70735a881caa2d8437130 Mon Sep 17 00:00:00 2001 From: wente <329538422@qq.com> Date: 星期三, 30 十月 2024 12:12:20 +0800 Subject: [PATCH] 时序图 --- web/src/views/modules/taskReliability/TimeDiagramTemp.vue | 74 +++++++++++++++++++----------------- 1 files changed, 39 insertions(+), 35 deletions(-) diff --git a/web/src/views/modules/taskReliability/TimeDiagramTemp.vue b/web/src/views/modules/taskReliability/TimeDiagramTemp.vue index cd5301c..efa7b5f 100644 --- a/web/src/views/modules/taskReliability/TimeDiagramTemp.vue +++ b/web/src/views/modules/taskReliability/TimeDiagramTemp.vue @@ -405,7 +405,7 @@ line: { stroke: '#A2B1C3', strokeWidth: 2, - targetMarker: 'classic' + targetMarker: null, } }, tools: { @@ -790,6 +790,10 @@ this.shape = cell.shape this.id = cell.id console.log(this.shape, 'this.shape') + if (this.type === 'edge') { + //this.nodeType = cell.getData().nodeType + this.$refs.configEdge.loadData(cell) + } // this.nodeOpt(this.id, this.globalGridAttr) }) //鍗曞嚮杈硅妭鐐� @@ -858,40 +862,40 @@ this.showPorts(ports, false) }) - this.graph.on('edge:mouseenter', ({cell, view}) => { - // alert(123) - cell.addTools([ - { - name: 'source-arrowhead', - }, - { - name: 'target-arrowhead', - args: { - attrs: { - fill: 'red', - }, - }, - }, - ]) - cell.addTools( - [ - { - name: 'segments', - args: {snapRadius: 20, attrs: {fill: '#444'}} - } - ] - ) - }) - - this.graph.on('edge:mouseleave', ({cell}) => { - cell.removeTools() - }) + // this.graph.on('edge:mouseenter', ({cell, view}) => { + // // alert(123) + // cell.addTools([ + // { + // name: 'source-arrowhead', + // }, + // { + // name: 'target-arrowhead', + // args: { + // attrs: { + // fill: 'red', + // }, + // }, + // }, + // ]) + // cell.addTools( + // [ + // { + // name: 'segments', + // args: {snapRadius: 20, attrs: {fill: '#444'}} + // } + // ] + // ) + // }) + // + // this.graph.on('edge:mouseleave', ({cell}) => { + // cell.removeTools() + // }) }, - showPorts(ports, show) { - for (let i = 0, len = ports.length; i < len; i = i + 1) { - ports[i].style.visibility = show ? 'visible' : 'hidden' - } - }, + // showPorts(ports, show) { + // for (let i = 0, len = ports.length; i < len; i = i + 1) { + // ports[i].style.visibility = show ? 'visible' : 'hidden' + // } + // }, async saveDiagram() { console.log(JSON.stringify(this.graph.toJSON()), 'graph.toJSON()') @@ -1028,7 +1032,7 @@ } .x6-graph-scroller.x6-graph-scroller-pannable { - width: 100% !important; + width: 100% ; } #stencil { -- Gitblit v1.9.1