Commit e1a3419f authored by “lixuyan”'s avatar “lixuyan”

修改甘特图提示的问题

parent ccb5818f
<template>
<div class="TfMomWebStep-model">
<div :id="ganttElId" style="height: 100%;width: 100%;position: relative;" />
<div :id="ganttElId" style="height: 100%;width: 100%;position: relative;" @mouseleave="hideTooltip" />
</div>
</template>
......@@ -61,6 +61,11 @@ export default {
},
methods: {
hideTooltip() {
setTimeout(() => {
this.gantt.ext.tooltips.tooltip.hide()
}, 100)
},
configLayout() {
const ganttAg = this.gantt
this.setColumnsConfig()
......@@ -120,7 +125,6 @@ export default {
return ganttAg.$root.querySelector('.gantt_task')
}
}
ganttAg.config.date_format = '%Y-%m-%d'
// ganttAg.config.duration_unit = 'minute'
ganttAg.config.branch_loading = true
......
......@@ -6,7 +6,7 @@
</el-input>
</div>
<div :id="ganttElId" :ref="ganttElId" class="gatt" />
<div :id="ganttElId" :ref="ganttElId" class="gatt" @mouseleave="hideTooltip" />
<sortUnit
:dialog-flag="dialogFlag"
:unit-list="unitList"
......@@ -65,6 +65,11 @@ export default {
},
methods: {
hideTooltip() {
setTimeout(() => {
this.gantt.ext.tooltips.tooltip.hide()
}, 100)
},
refreshGantt(val) {
if (!val || !val.length) {
return
......
......@@ -6,7 +6,7 @@
</el-input>
</div>
<div :id="ganttElId" :ref="ganttElId" class="gatt" />
<div :id="ganttElId" :ref="ganttElId" class="gatt" @mouseleave="hideTooltip" />
</div>
</template>
......@@ -51,6 +51,11 @@ export default {
},
methods: {
hideTooltip() {
setTimeout(() => {
this.gantt.ext.tooltips.tooltip.hide()
}, 100)
},
refreshGantt(val) {
if (!val || !val.length) {
return
......
......@@ -24,7 +24,7 @@
<i class="el-icon-loading" />
<span>数据加载中···</span>
</div>
<div :id="onlyUuid" :ref="onlyUuid" class="gannt" style="height: calc(100vh - 100px)" />
<div :id="onlyUuid" :ref="onlyUuid" class="gannt" style="height: calc(100vh - 100px)" @mouseleave="hideTooltip" />
</main>
</div>
</template>
......@@ -70,6 +70,11 @@ export default {
},
methods: {
hideTooltip() {
setTimeout(() => {
this.gantt.ext.tooltips.tooltip.hide()
}, 100)
},
// 初始化甘特图
initGantt() {
const that = this
......
<template>
<div>
<div :id="onlyUuid" :ref="onlyUuid" class="gantt-station-plan" />
<div :id="onlyUuid" :ref="onlyUuid" class="gantt-station-plan" @mouseleave="hideTooltip" />
</div>
</template>
......@@ -55,6 +55,11 @@ export default {
},
methods: {
hideTooltip() {
setTimeout(() => {
this.gantt.ext.tooltips.tooltip.hide()
}, 100)
},
initGantt() {
const that = this
const ganttStm = this.gantt
......
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