排产看板提交

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

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

Loading…
Cancel
Save