瀏覽代碼

调整代码

Lijy 1 月之前
父節點
當前提交
108c3d49ce
共有 1 個文件被更改,包括 1 次插入3 次删除
  1. 1 3
      fhKeeper/formulahousekeeper/timesheet_mld/src/views/project/gantt.vue

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