Commit fa869c73 by hank

fix 设备使用状态

parent 96a2c5f6
...@@ -65,6 +65,18 @@ ...@@ -65,6 +65,18 @@
border-radius: 50%; border-radius: 50%;
} }
.isuse-false {
padding-left: 20px;
margin-left: 37px;
position: relative;
color: #5ff054;
.hong {
background: #5ff054;
box-shadow: 0 4px 4px 0 rgba(34, 251, 31, 0.3);
}
}
.isuse { .isuse {
padding-left: 20px; padding-left: 20px;
margin-left: 37px; margin-left: 37px;
......
...@@ -48,7 +48,7 @@ class DeviceItem extends Component { ...@@ -48,7 +48,7 @@ class DeviceItem extends Component {
> >
<Text className="dian" /> <Text className="dian" />
{equipmentState === 'ONLINE' ? '在线' : '离线'} {equipmentState === 'ONLINE' ? '在线' : '离线'}
<Text className={calendarId ? '' : 'isuse'}> <Text className={calendarId ? 'isuse-false' : 'isuse'}>
<Text className="dian hong" /> <Text className="dian hong" />
{calendarId ? ' 已使用' : '未使用'} {calendarId ? ' 已使用' : '未使用'}
</Text> </Text>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment