Fixed DAG zoom in and zoom out nodes separated from arrows #1679 (#1680)

* Fix api url

* Fixed DAG zoom in and zoom out nodes separated from arrows
This commit is contained in:
break60 2020-01-03 17:50:05 +08:00 committed by lgcareer
parent 0e66c71f38
commit 3477d28de8
2 changed files with 9 additions and 2 deletions

View File

@ -309,13 +309,13 @@ svg path:hover {
//min-width: calc(100% - 220px); //min-width: calc(100% - 220px);
width: 8000px; width: 8000px;
height: 5000px; height: 5000px;
position: relative;
svg:not(:root){ svg:not(:root){
z-index: 11; z-index: 11;
} }
} }
.jtk-demo-canvas { .jtk-demo-canvas {
position: relative;
height: 100%; height: 100%;
} }

View File

@ -187,6 +187,13 @@
}) })
if (this.tasks.length) { if (this.tasks.length) {
Dag.backfill(true) Dag.backfill(true)
if (this.type === 'instance') {
this._getTaskState(false).then(res => {})
// Round robin acquisition status
this.setIntervalP = setInterval(() => {
this._getTaskState(true).then(res => {})
}, 90000)
}
} else { } else {
Dag.create() Dag.create()
} }