Commit caa06cca authored by 何远江's avatar 何远江

gantt图不显示问题修改

parent f56268df
<template> <template>
<div ref="gantt"></div> <div ref="gantt" style="width: 100%;"></div>
</template> </template>
<script> <script>
...@@ -32,17 +32,6 @@ export default { ...@@ -32,17 +32,6 @@ export default {
}, },
}, },
watch: {
// tasks: {
// handler(val) {
// if (val.data.length) {
// this.reload()
// }
// },
// deep: true,
// },
},
created() {}, created() {},
mounted: function () { mounted: function () {
...@@ -63,6 +52,8 @@ export default { ...@@ -63,6 +52,8 @@ export default {
gantt.clearAll(); gantt.clearAll();
this.addTodayLine(); this.addTodayLine();
gantt.parse(this.$props.tasks); gantt.parse(this.$props.tasks);
console.log('this.$props.tasks', this.$props.tasks)
gantt.render(); gantt.render();
}, },
addTodayLine() { addTodayLine() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment