|
@@ -222,7 +222,6 @@ export default {
|
|
|
this.bindTooltipEvents(); // 初次执行
|
|
|
},
|
|
|
bindTooltipEvents() {
|
|
|
- console.log('开始执行')
|
|
|
const taskLines = this.$refs.ganttContainer && this.$refs.ganttContainer.querySelectorAll(".gantt_task_line");
|
|
|
|
|
|
(taskLines || []).forEach(line => {
|
|
@@ -415,10 +414,9 @@ export default {
|
|
|
<div style="margin-left: 6px;">${texts}</div>
|
|
|
</div>`;
|
|
|
}
|
|
|
-
|
|
|
// 正常人
|
|
|
return `<div class="task_text" style="justify-content: center;">
|
|
|
- <div style="color: #333">${task.text}</div>
|
|
|
+ <div style="color: ${!task.taskId ? '#333' : '#fff'}">${task.text}</div>
|
|
|
</div>`;
|
|
|
};
|
|
|
gantt.config.grid_width = 350;
|