Browse Source

甘特图框架style暴露条件修改

yuhan 1 year ago
parent
commit
6c28b6cbb8
1 changed files with 4 additions and 2 deletions
  1. 4 2
      itdmWeb/src/components/module-iTDM/uGantt/index.vue

+ 4 - 2
itdmWeb/src/components/module-iTDM/uGantt/index.vue

@@ -102,6 +102,7 @@
           planBg: '#44c2e5', // 计划甘特条的颜色
           realityHeight: 10, // 实际甘特条的高度
           realityBg: '#e5de44', // 实际甘特条的颜色
+          top: 4, // 甘特条离上线条距离
         })
       },
       hasReality: {
@@ -318,8 +319,9 @@
         var style = {
           left: 70 * startIndex + 'px',
           width: 70 * (endIndex - startIndex + 1) + 'px',
-          top: (this.uStyle.ganttHeight * trIndex + 4) + 'px',
-          height: this.uStyle.planHeight,
+          top: (this.uStyle.ganttHeight * trIndex + this.uStyle.top) + 'px',
+          height: this.uStyle.planHeight + 'px',
+          lineHeight: this.uStyle.planHeight + 'px',
           background: this.uStyle.planBg
         }
         return style