Lijy il y a 1 mois
Parent
commit
108c3d49ce

+ 1 - 3
fhKeeper/formulahousekeeper/timesheet_mld/src/views/project/gantt.vue

@@ -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;