From 6ffecd1b65de645cdffa223e613a21c1faa4e2b2 Mon Sep 17 00:00:00 2001
From: zhangdi <15053473693@163.com>
Date: Mon, 29 Dec 2025 19:42:35 +0800
Subject: [PATCH] =?UTF-8?q?=E6=8E=92=E4=BA=A7=E7=9C=8B=E6=9D=BF=E8=B0=83?=
=?UTF-8?q?=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../schedulingDashboard/container.vue | 25 +++++++++----------
1 file changed, 12 insertions(+), 13 deletions(-)
diff --git a/src/views/productionSchedulingPlan/schedulingDashboard/container.vue b/src/views/productionSchedulingPlan/schedulingDashboard/container.vue
index 5dac08d..716da60 100644
--- a/src/views/productionSchedulingPlan/schedulingDashboard/container.vue
+++ b/src/views/productionSchedulingPlan/schedulingDashboard/container.vue
@@ -331,13 +331,15 @@
>
-
+
+
{{ task.processName }}
@@ -773,15 +775,12 @@ export default {
return offset;
},
// 根据层索引确定窄任务文本的垂直偏移
- getNarrowTaskOffsetByLayerLeft(processName) {
- // 偶数层在上方显示(负值),奇数层在下方显示(正值)
- // const offset = processName.length >= 5 ? -30 : -15;
+ getNarrowTaskOffsetByLayerLeft(processName,width,layerIndex) {
+ // 偶数层在上方显示(负值),奇数层在下方显示(正值)
const offset = null;
- if (processName.length >= 7) {
- return -33;
- }
+
if (processName.length >= 6) {
- return -20;
+ return -15;
}
if (processName.length >= 5) {
return -17;
@@ -1742,7 +1741,7 @@ export default {
padding: 2px 0px;
box-sizing: border-box;
cursor: pointer;
- overflow: hidden;
+ /* overflow: hidden; */
transition: all 0.2s;
white-space: nowrap;
border: 1px solid rgba(255, 255, 255, 0.3);
@@ -1770,9 +1769,9 @@ export default {
position: absolute;
font-size: 9px;
color: white;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
+ /* white-space: nowrap; */
+ /* overflow: hidden; */
+ /* text-overflow: ellipsis; */
max-width: 120%;
text-align: center;
/* 正确的居中方式 */