| | |
| | | <!-- <span style="font-size: 18px;font-weight: 600;margin-left: 15px;margin-top: 10px"> 设备信息</span>--> |
| | | <el-scrollbar max-height="420px" style="padding-right: 10px;overflow-x: hidden;" v-if="state.dataList && state.dataList.length >0"> |
| | | <div class="grid-container"> |
| | | <div v-for="(item,index) in state.dataList" :key="index" style="width: 365px;margin: 20px 30px"> |
| | | <div v-for="(item,index) in state.dataList" :key="index" style="width: 370px;margin: 20px 30px"> |
| | | <el-card class="card-item " shadow="always"> |
| | | <div style="display: flex;flex-direction: column"> |
| | | <div style="font-size: 18px;font-weight: 700;margin-bottom: 25px">{{item.storeName}}—{{item.storeroomName}}—{{item.deviceName}}</div> |
| | | <!-- <div style="font-size: 18px;font-weight: 700;margin-bottom: 25px">{{item.storeName}}—{{item.storeroomName}}—{{item.deviceName}}</div>--> |
| | | <div class="truncate-text" :title="item.storeName+'—'+item.storeroomName+'—'+item.deviceName"> |
| | | {{item.storeName}}—{{item.storeroomName}}—{{item.deviceName}} |
| | | </div> |
| | | <div style="display: flex;align-items: center;margin-bottom: 15px"> |
| | | <img src="@/assets/images/device.png" /> |
| | | <div style="display: flex;flex-direction: column"> |
| | |
| | | pageIndex: 1, |
| | | pageSize: 5, |
| | | filter: { |
| | | companyCode : '' |
| | | companyCode : '', |
| | | deviceType: 1 |
| | | } |
| | | }, |
| | | total: 0, |
| | |
| | | :deep(.el-scrollbar__wrap) { |
| | | overflow-x: hidden; |
| | | } |
| | | .truncate-text { |
| | | width: 350px; |
| | | font-size: 18px; |
| | | font-weight: 700; |
| | | margin-bottom: 25px; |
| | | white-space: nowrap; |
| | | overflow: hidden; |
| | | text-overflow: ellipsis; |
| | | /* 悬浮显示原生标题 */ |
| | | cursor: pointer; |
| | | position: relative; |
| | | } |
| | | /* 高级悬浮样式优化 */ |
| | | .truncate-text:hover::after { |
| | | content: attr(title); |
| | | position: absolute; |
| | | left: 0; |
| | | top: 100%; |
| | | background: rgba(0,0,0,0.8); |
| | | color: white; |
| | | padding: 6px 12px; |
| | | border-radius: 4px; |
| | | z-index: 999; |
| | | white-space: normal; |
| | | width: max-content; |
| | | max-width: 300px; |
| | | } |
| | | } |
| | | </style> |