From 826cd5b51d5106cfea07e397eda184fb15ec7a30 Mon Sep 17 00:00:00 2001 From: jinlin <jinlin> Date: 星期五, 02 八月 2024 14:33:59 +0800 Subject: [PATCH] 修改 --- web/src/views/modules/taskReliability/TimeDiagram.vue | 148 ------------------------------------------------- 1 files changed, 1 insertions(+), 147 deletions(-) diff --git a/web/src/views/modules/taskReliability/TimeDiagram.vue b/web/src/views/modules/taskReliability/TimeDiagram.vue index 5d7577f..5806178 100644 --- a/web/src/views/modules/taskReliability/TimeDiagram.vue +++ b/web/src/views/modules/taskReliability/TimeDiagram.vue @@ -118,7 +118,6 @@ }, mounted() { this.getProductList() - this.init() }, components: { ProductModelTree, @@ -151,19 +150,6 @@ }) } }, - // translating: { - // restrict(view) { - // const cell = view.cell - // if (cell.isNode()) { - // const parent = cell.getParent() - // if (parent) { - // return parent.getBBox() - // } - // } - // - // return null - // }, - // }, onToolItemCreated({tool}) { const handle = tool const options = handle.options @@ -173,9 +159,6 @@ }, autoResize: true, history: true, - // panning: { - // enabled: true, - // }, scroller: { enabled: true, pageVisible: true, @@ -230,21 +213,10 @@ text: '' } }, - // position: { - // distance: 0.5, - // angle: 180, - // options: { - // keepGradient: true, - // ensureLegibility: true - // } - // } }], zIndex: 0, }) }, - // validateConnection({targetMagnet}) { - // return !!targetMagnet - // }, }, highlighting: { magnetAdsorbed: { @@ -345,133 +317,14 @@ stroke: '#5F95FF', fill: '#EFF4FF', }, - // title:{ - // text:'', - // refX: 40, - // refY: 38, - // fontSize: 20, - // fill: '#262626', - // 'text-anchor': 'start', - // }, text: { - // refX: 40, - // refY: 20, fontSize: 20, fill: '#262626', - // 'text-anchor': 'start', }, }, - // markup: [ - // { - // tagName: 'polygon', - // selector: 'body', - // }, - // { - // tagName: 'text', - // selector: 'title', - // }, - // { - // tagName: 'text', - // selector: 'text', - // }, - // ], ports: { ...this.ports - // items: [ - // { - // group: 'top', - // }, - // { - // group: 'bottom', - // }, - // ], }, - }, - true, - ) - // - Graph.registerNode( - 'custom-circle', - { - inherit: 'ellipse', - width: 120, - height: 120, - data: { - dataId: '', - finishDate: '' - }, - attrs: { - body: { - strokeWidth: 1, - stroke: '#5F95FF', - fill: '#EFF4FF', - }, - //鏃ユ湡 - title: { - text: '', - fontSize: 12, - fill: '#262626', - refX: 0.5, - refY: '100%', - refY2: -10, - textAnchor: 'middle', - textVerticalAnchor: 'bottom', - }, - // 鍚嶇О - text: { - // fontFamily: '浠垮畫', - fontSize: 20, - fill: '#262626', - textWrap: { - width: 80, // 瀹藉害涓� 80px鎹㈣ - ellipsis: false, // 鏂囨湰瓒呭嚭鏄剧ず鑼冨洿鏃讹紝鑷姩娣诲姞鐪佺暐鍙� - breakWord: true, // 鏄惁鎴柇鍗曡瘝 - } - }, - }, - markup: [ - { - tagName: 'ellipse', - selector: 'body', - }, - { - tagName: 'text', - selector: 'title', - }, - { - tagName: 'text', - selector: 'text', - }, - ], - ports: {...this.ports}, - }, - true, - ) - Graph.registerNode( - 'custom-circle1', - { - inherit: 'ellipse', - width: 65, - height: 65, - data: { - dataId: '', - finishDate: '' - }, - attrs: { - body: { - strokeWidth: 1, - stroke: '#5F95FF', - fill: '#EFF4FF', - }, - //鏃ユ湡 - text: { - // fontFamily: '浠垮畫', - fontSize: 12, - text: '鏃ユ湡鑺傜偣', - fill: '#262626', - }, - }, - ports: {...this.ports}, }, true, ) @@ -873,6 +726,7 @@ this.dataForm.simulatFrequency = result.data.simulatFrequency }, async getDiagram() { + this.init() let params = { productId: this.dataForm.productId, taskId: this.dataForm.taskModelId, -- Gitblit v1.9.1