diff --git a/src/components/PigBatchPenCard.vue b/src/components/PigBatchPenCard.vue index 8e153193..7057eeea 100644 --- a/src/components/PigBatchPenCard.vue +++ b/src/components/PigBatchPenCard.vue @@ -7,7 +7,7 @@
猪舍: {{ pen.house_name || '未知' }}
容量: {{ pen.capacity }}
批次: {{ pen.batch_number || '未分配' }}
-
存栏: {{ pen.current_pig_count || 0 }}
+
存栏: {{ pen.current_pig_count || 0 }}
分配猪只 @@ -128,4 +128,8 @@ export default { width: 100%; margin: 0; } + +.over-capacity { + color: red; +} diff --git a/src/components/PigPenInfoCard.vue b/src/components/PigPenInfoCard.vue index 834bf832..384d23fd 100644 --- a/src/components/PigPenInfoCard.vue +++ b/src/components/PigPenInfoCard.vue @@ -7,7 +7,7 @@
猪舍: {{ pen.house_name || '未知' }}
容量: {{ pen.capacity }}
批次: {{ pen.batch_number || '未分配' }}
-
存栏: {{ pen.current_pig_count || 0 }}
+
存栏: {{ pen.current_pig_count || 0 }}
编辑 @@ -120,4 +120,8 @@ export default { width: 100%; margin: 0; } + +.over-capacity { + color: red; +}