diff --git a/src/views/modules/npcIqc/logisticsManagement.vue b/src/views/modules/npcIqc/logisticsManagement.vue index 1b8d3dd..be9a704 100644 --- a/src/views/modules/npcIqc/logisticsManagement.vue +++ b/src/views/modules/npcIqc/logisticsManagement.vue @@ -171,8 +171,10 @@ export default { }, mounted () { this.$nextTick(() => { - this.height = (window.innerHeight - 220) / 2 - this.detailHeight = (window.innerHeight - 220) / 2 + // 计算表格高度和详情页高度,保持一致 + const calculatedHeight = (window.innerHeight - 220) / 2 + this.height = calculatedHeight + this.detailHeight = calculatedHeight this.getMainData() }) }, diff --git a/src/views/modules/npcIqc/npcIqcList.vue b/src/views/modules/npcIqc/npcIqcList.vue index e69b6bd..9804d0f 100644 --- a/src/views/modules/npcIqc/npcIqcList.vue +++ b/src/views/modules/npcIqc/npcIqcList.vue @@ -115,7 +115,7 @@ -
+
@@ -236,10 +236,10 @@ export default { }, mounted () { this.$nextTick(() => { - // 计算表格高度和详情页高度 - const availableHeight = window.innerHeight - 280 - this.tableHeight = availableHeight * 0.4 - this.detailHeight = availableHeight * 0.6 + // 计算表格高度和详情页高度,保持一致 + const calculatedHeight = (window.innerHeight - 220) / 2 + this.tableHeight = calculatedHeight + this.detailHeight = calculatedHeight this.getMainData() }) }, @@ -592,6 +592,7 @@ export default { overflow-y: auto; overflow-x: hidden; padding: 10px; + height: 100%; } /* 分页插件紧凑化 */ diff --git a/src/views/modules/order/poOrder_search.vue b/src/views/modules/order/poOrder_search.vue index 14812dd..066c67e 100644 --- a/src/views/modules/order/poOrder_search.vue +++ b/src/views/modules/order/poOrder_search.vue @@ -465,8 +465,9 @@ export default { }, mounted() { this.$nextTick(() => { - // 模仿 supplierList.vue 的高度分配方式 - this.height = (window.innerHeight - 220) / 2 + // 计算表格高度和详情页高度,保持一致 + const calculatedHeight = (window.innerHeight - 220) / 2 + this.height = calculatedHeight }) }, methods: {