From 9ce83b15edf91ba1eae10cea0b3936ac630925e4 Mon Sep 17 00:00:00 2001 From: jinlin <jinlin> Date: 星期二, 08 十月 2024 17:18:20 +0800 Subject: [PATCH] 修改 --- web/src/views/modules/taskReliability/TimeDiagram.vue | 14 ++++++++------ 1 files changed, 8 insertions(+), 6 deletions(-) diff --git a/web/src/views/modules/taskReliability/TimeDiagram.vue b/web/src/views/modules/taskReliability/TimeDiagram.vue index 8901a64..0a3dc6d 100644 --- a/web/src/views/modules/taskReliability/TimeDiagram.vue +++ b/web/src/views/modules/taskReliability/TimeDiagram.vue @@ -538,13 +538,13 @@ this.diagramJson = JSON.parse(res.data) console.log(this.diagramJson, 'this.Diagram json') this.graph.fromJSON(this.diagramJson) - this.graph.centerContent() - this.graph.zoomToFit() + this.graph.positionContent('left') + //this.graph.zoomToFit() this.graph.freeze() } else { this.graph.fromJSON(this.emptyJson) - this.graph.centerContent() - this.graph.zoomToFit() + //this.graph.centerContent() + //this.graph.zoomToFit() this.graph.freeze() } console.log(res.data) @@ -583,11 +583,13 @@ let params = { productId: this.dataForm.productId, taskId: this.dataForm.taskModelId, - fzId: this.dataForm.id + fzId: this.dataForm.id, + smallWidth:1000, + minPointNum:5 } let res = await this.$http.get('/taskReliability/SimulatAssess/getStatus', {params: params}) if (res.data !== null) { - this.diagramJson = JSON.parse(res.data) + this.diagramJson = JSON.parse(res.data.smallDiagramJson) console.log(this.diagramJson, 'this.Diagram json') this.graph.fromJSON(this.diagramJson) this.graph.centerContent() -- Gitblit v1.9.1