From 1ab5999f546adcca439eb32ea5ecd34819a13ff6 Mon Sep 17 00:00:00 2001
From: xyc <jc_xiong@hotmail.com>
Date: 星期六, 12 十月 2024 09:31:07 +0800
Subject: [PATCH] 修改RBD识别算法

---
 web/src/views/modules/taskReliability/TimeDiagram.vue |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/web/src/views/modules/taskReliability/TimeDiagram.vue b/web/src/views/modules/taskReliability/TimeDiagram.vue
index 8901a64..ca52c0e 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)

--
Gitblit v1.9.1