From ba39269715a4495afaf7424c74fea1545174f8ec Mon Sep 17 00:00:00 2001 From: zhangdi <15053473693@163.com> Date: Mon, 29 Dec 2025 17:50:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=92=E4=BA=A7=E7=9C=8B=E6=9D=BF=E5=B7=A5?= =?UTF-8?q?=E5=BA=8F=E6=96=87=E5=AD=97=E5=B1=95=E7=A4=BA=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../schedulingDashboard/container.vue | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) 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 {