diff --git a/src/views/mes/tasksummary/components/TaskSchedulePreviewDialog.vue b/src/views/mes/tasksummary/components/TaskSchedulePreviewDialog.vue index bd265092..1b2bfcfd 100644 --- a/src/views/mes/tasksummary/components/TaskSchedulePreviewDialog.vue +++ b/src/views/mes/tasksummary/components/TaskSchedulePreviewDialog.vue @@ -16,11 +16,11 @@
{{ plan.productCode ?? '-' }} / {{ plan.productName ?? '-' }} - 进行中 +
任务明细ID:{{ plan.taskDetailId ?? '-' }}
计划数量:{{ plan.planNumber ?? '-' }}
@@ -306,13 +306,7 @@ const getTaskByTooltipNode = (node: HTMLElement) => { return undefined } } -const isPlanInProgress = (plan: any) => { - const start = dayjs(plan?.planStartTimeStr) - const end = dayjs(plan?.planEndTimeStr) - if (!start.isValid() || !end.isValid()) return false - const now = dayjs() - return (now.isAfter(start) || now.isSame(start)) && (now.isBefore(end) || now.isSame(end)) -} + const initTaskTooltips = () => { const tooltipsExt = (gantt.ext as any)?.tooltips const tooltip = tooltipsExt?.tooltip @@ -848,6 +842,7 @@ onBeforeUnmount(() => { .schedule-plan-list { overflow: auto; + max-height: 55vh; border: 1px solid var(--el-border-color); border-radius: 4px; padding: 8px;