湖里大屏(数字工地):完成视频设备布局

This commit is contained in:
Jack 2022-08-04 17:28:16 +08:00
parent e392b186f1
commit 78c34ed20d

View File

@ -1,7 +1,13 @@
<template>
<Card :title="title">
<DeviceCard :leftCount="{ value: 22, label: '在线设备' }" :rightCount="{ value: 65, label: '离线设备' }">
hello
<div class="list">
<div class="list-head">设备名称</div>
<div class="list-item" :class="i === 2 ? 'offline' : 'online'" v-for="i in 3" :key="i">
<div class="label">1号塔吊</div>
<div class="status">在线</div>
</div>
</div>
</DeviceCard>
</Card>
</template>
@ -23,4 +29,45 @@ export default {
}
</script>
<style lang="less" scoped></style>
<style lang="less" scoped>
.list {
padding: 0 10px;
.list-head {
margin-bottom: 6px;
padding-left: 16px;
font-size: 12px;
}
.list-item {
margin-bottom: 6px;
padding: 0 16px;
height: 22px;
display: flex;
align-items: center;
&.online {
background-image: linear-gradient(90deg, rgba(24, 52, 73, 1), rgba(24, 52, 73, 0.2));
.status {
background-color: #3cabfd;
}
}
&.offline {
background-image: linear-gradient(90deg, rgba(44, 35, 56, 1), rgba(44, 35, 56, 0.2));
.status {
background-color: #ff6c7f;
}
}
.status {
margin-right: 6px;
width: 36px;
height: 16px;
line-height: 16px;
text-align: center;
font-size: 12px;
border-radius: 9px;
}
.label {
margin-right: auto;
font-size: 14px;
}
}
}
</style>