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