排产看板提交

dev-scheduling
zhangdi 3 days ago
parent 27e45a1f12
commit 4147e93243
  1. 25
      src/views/productionSchedulingPlan/schedulingDashboard/index.vue

@ -152,9 +152,9 @@
</div>
<!-- 甘特图主体 -->
<div class="gantt-wrapper" :style="{ height: ganttWrapperHeight }">
<div class="gantt-wrapper" >
<!-- 左侧信息列表 - 展示车间订单号等信息 -->
<div class="info-list">
<div class="info-list" :style="{ height: ganttWrapperHeightLeft }">
<div class="info-item-title">
<div class="info-title-cell info-title-num">序号</div>
<div class="info-title-cell">订单信息</div>
@ -193,7 +193,7 @@
</div>
<!-- 右侧时间轴 @wheel.prevent="handleWheel"-->
<div class="timeline-container" ref="timelineContainer">
<div class="timeline-container" ref="timelineContainer" :style="{ height: ganttWrapperHeight }">
<!-- 图表X轴区域 -->
<div class="chart-axis">
<!-- 日期行 -->
@ -348,8 +348,8 @@
@current-change="handleCurrentChange"
:current-page="currentPage"
:page-size="pageSize"
layout="total, prev, pager, next, jumper"
:page-sizes="[10, 20, 50]"
layout="total, prev, pager, next, jumper,sizes"
:total="totalOrders"
></el-pagination>
</div>
@ -476,7 +476,7 @@ export default {
//
baseRowHeight: 50,
baseRowChartHeight: 51,
baseRowChartHeight: 50,
rowHeights: {},
selectTeamOptions: [],
selectEquipOptions: [],
@ -666,6 +666,16 @@ export default {
//
return Math.max(100, this.totalHours * (100 / 24)); // 24100%100%
},
//
ganttWrapperHeightLeft() {
if (this.$route.path == '/productionSchedulingPlan/schedulingDashboard/index') {
//
return `calc(100vh - 250px - 120px)`; //
} else {
//
return `calc(100vh - 250px)`; //
}
},
//
ganttWrapperHeight() {
if (this.$route.path == '/productionSchedulingPlan/schedulingDashboard/index') {
@ -1057,7 +1067,7 @@ export default {
//
getRowHeight(device) {
return this.baseRowHeight;
return this.baseRowHeight-1;
},
//
getRowChartHeight(device) {
@ -1384,6 +1394,7 @@ export default {
flex-direction: column;
overflow-y: auto; /* 允许垂直滚动 */
overflow-x: auto; /* 允许水平滚动 */
}
/* 图表X轴区域样式 */

Loading…
Cancel
Save