|
|
@ -19,7 +19,7 @@ import _ from 'lodash' |
|
|
|
import canvg from 'canvg' |
|
|
|
import canvg from 'canvg' |
|
|
|
import { tasksAll } from './util' |
|
|
|
import { tasksAll } from './util' |
|
|
|
import html2canvas from 'html2canvas' |
|
|
|
import html2canvas from 'html2canvas' |
|
|
|
import { findComponentDownward } from '@/module/util/' |
|
|
|
// import { findComponentDownward } from '@/module/util/'
|
|
|
|
|
|
|
|
|
|
|
|
const DownChart = function () { |
|
|
|
const DownChart = function () { |
|
|
|
this.dag = {} |
|
|
|
this.dag = {} |
|
|
@ -111,10 +111,10 @@ DownChart.prototype.download = function ({ dagThis }) { |
|
|
|
}, 100) |
|
|
|
}, 100) |
|
|
|
|
|
|
|
|
|
|
|
// To refresh the dag instance, otherwise you can't re-plot
|
|
|
|
// To refresh the dag instance, otherwise you can't re-plot
|
|
|
|
setTimeout(() => { |
|
|
|
// setTimeout(() => {
|
|
|
|
// Refresh current dag
|
|
|
|
// // Refresh current dag
|
|
|
|
findComponentDownward(this.dag.$root, `${this.dag.type}-details`).init() |
|
|
|
// findComponentDownward(this.dag.$root, `${this.dag.type}-details`).init()
|
|
|
|
}, 500) |
|
|
|
// }, 500)
|
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|