生产管理系统前端 - 瓦力0.73原型图提交

This commit is contained in:
2025-10-28 19:51:17 +08:00
parent 58f5ca7f22
commit e3829d2fcc
154 changed files with 24913 additions and 9377 deletions

View File

@@ -290,10 +290,10 @@ export function WaterFertilizerControl({ activePath }: WaterFertilizerControlPro
const getValveStatusColor = (status: ValveStatus) => {
switch (status) {
case '开启': return 'bg-green-100 text-green-700';
case '关闭': return 'bg-gray-100 text-gray-700';
case '故障': return 'bg-red-100 text-red-700';
default: return 'bg-gray-100 text-gray-700';
case '开启': return 'bg-success-muted text-success-muted-foreground';
case '关闭': return 'bg-muted text-muted-foreground';
case '故障': return 'bg-error-muted text-error-muted-foreground';
default: return 'bg-muted text-muted-foreground';
}
};
@@ -376,7 +376,7 @@ export function WaterFertilizerControl({ activePath }: WaterFertilizerControlPro
{machines.map((machine) => (
<SelectItem key={machine.id} value={machine.id}>
{machine.name}
<Badge className="ml-2 bg-green-100 text-green-700" variant="outline">
<Badge className="ml-2 bg-success-muted text-success-muted-foreground" variant="outline">
{machine.status}
</Badge>
</SelectItem>