diff --git a/src/views/productionSchedulingPlan/schedulingDashboard/container.vue b/src/views/productionSchedulingPlan/schedulingDashboard/container.vue index ec3de2a..8ef0090 100644 --- a/src/views/productionSchedulingPlan/schedulingDashboard/container.vue +++ b/src/views/productionSchedulingPlan/schedulingDashboard/container.vue @@ -774,8 +774,18 @@ export default { // 根据层索引确定窄任务文本的垂直偏移 getNarrowTaskOffsetByLayerLeft(processName) { // 偶数层在上方显示(负值),奇数层在下方显示(正值) - const offset = processName.length >= 5 ? -30 : -7; - return offset; + // const offset = processName.length >= 5 ? -30 : -15; + const offset = null; + if (processName.length >= 7) { + return -33; + } + if (processName.length >= 6) { + return -20; + } + if (processName.length >= 5) { + return -17; + } + return -7 }, handleParamsChange() { // 参数变化时的处理逻辑 @@ -909,7 +919,6 @@ export default { return `星期${days[dayIndex]}`; }, processChange(val) { - console.log(9999, val); if (val) { this.formLabelAlign.processName = val.name; } else {