diff --git a/src/views/plan/RealTimeInventory.vue b/src/views/plan/RealTimeInventory.vue
index 92c7824..a1427e0 100644
--- a/src/views/plan/RealTimeInventory.vue
+++ b/src/views/plan/RealTimeInventory.vue
@@ -25,7 +25,7 @@
@@ -35,11 +35,14 @@
:key="column.key"
:label="column.label"
:prop="column.prop"
- min-width="150"
+ min-width="100"
>
{{ scope.row[column.prop] || '-' }}
+
+
+
@@ -79,10 +82,14 @@ const dynamicColumns = computed(() => {
}))].sort(); // 可选:若需自定义排序,调整这里
return combinations.map(comb => {
+ // 将组合拆分为 model 和 wire_disc
+ const hasWireDisc = comb.includes('::');
+ const [model, wire_disc] = hasWireDisc ? comb.split('::') : [comb, ''];
+
return {
key: comb,
prop: comb,
- label: comb.replace('::', '-') // 显示时可替换回 '-' 以保持原样
+ label: `${model}
${wire_disc}` // 使用HTML换行符,实现两行显示
};
});
});
@@ -230,6 +237,8 @@ onMounted(() => {
color: #606266;
font-weight: 600;
white-space: nowrap;
+ text-align: center; /* 可选:居中对齐列头 */
+ padding: 8px 0; /* 调整列头内间距,以适应两行显示 */
}
:deep(.el-table td) {