排产看板提交

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

@ -267,7 +267,11 @@
</div>
<!-- 甘特图内容区域 -->
<div class="chart-content" ref="timelineContainerTest" :style="{ width: `${timelineWidth}%` }">
<div
class="chart-content"
ref="timelineContainerTest"
:style="{ width: `${timelineWidth}%` }"
>
<div class="grid-lines">
<div
v-for="(time, index) in majorTickLabels"
@ -344,8 +348,8 @@
@current-change="handleCurrentChange"
:current-page="currentPage"
:page-size="pageSize"
:page-sizes="[10, 20, 50]"
layout="total,sizes, prev, pager, next, jumper"
layout="total, prev, pager, next, jumper"
:total="totalOrders"
></el-pagination>
</div>
@ -664,8 +668,13 @@ export default {
},
//
ganttWrapperHeight() {
//
return `calc(100vh - 250px)`; //
if (this.$route.path == '/productionSchedulingPlan/schedulingDashboard/index') {
//
return `calc(100vh - 250px - 120px)`; //
} else {
//
return `calc(100vh - 250px)`; //
}
},
},
mounted() {
@ -709,18 +718,15 @@ export default {
handleRightScroll(event) {
if (this.$refs.leftScrollContainer) {
const rightScrollTop = event.target.scrollTop;
console.log('右侧',rightScrollTop)
this.$refs.leftScrollContainer.scrollTop = rightScrollTop;
}
},
//
handleLeftScroll(event) {
if (this.$refs.timelineContainerTest) {
const leftScrollTop = event.target.scrollTop;
this.$refs.timelineContainerTest.scrollTop = leftScrollTop;
console.log('左侧',leftScrollTop,this.$refs.timelineContainerTest.scrollTop)
}
},
updateTime() {
@ -1225,7 +1231,7 @@ export default {
padding: 20px;
box-sizing: border-box;
font-family: Arial, sans-serif;
height: calc(100% - 72px);
height: calc(100% - 72px - 100px);
}
.gantt-header {
@ -1336,7 +1342,6 @@ export default {
justify-content: space-between;
align-items: center;
padding-right: 15px;
}
.info-title-cell {
@ -1358,7 +1363,7 @@ export default {
.info-item {
display: flex;
height: 100%;
/* padding: 5px; */
}

Loading…
Cancel
Save