diff --git a/frontend/src/views/worker/WorkerListPage.vue b/frontend/src/views/worker/WorkerListPage.vue index 92b90f5..de08f67 100644 --- a/frontend/src/views/worker/WorkerListPage.vue +++ b/frontend/src/views/worker/WorkerListPage.vue @@ -136,10 +136,15 @@ onMounted(()=>{loadData();loadDrops()}) margin-right: 6px; vertical-align: middle; } +/* 穿梭框内:父子选择器(父元素带status-xxx,子元素.status-dot) */ .status-online .status-dot { background-color: #67c23a; } .status-offline .status-dot { background-color: #c0c4cc; } .status-disabled .status-dot { background-color: #f56c6c; } -/* 图例 */ +/* 图例:class直接在.status-dot上 */ +.status-dot.online { background-color: #67c23a; } +.status-dot.offline { background-color: #c0c4cc; } +.status-dot.disabled { background-color: #f56c6c; } +/* 图例布局 */ .transfer-legend { display: flex; gap: 16px;