From e1fb3055bb8aaa818839ca06a02a153912987c0c Mon Sep 17 00:00:00 2001
From: huang <1724659546@qq.com>
Date: Thu, 23 Oct 2025 18:23:31 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=B1=95=E7=A4=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/PigBatchPenCard.vue | 6 +++++-
src/components/PigPenInfoCard.vue | 6 +++++-
2 files changed, 10 insertions(+), 2 deletions(-)
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;
+}