| | |
| | | class="status-image" |
| | | ></div> |
| | | <div |
| | | :style="{ backgroundImage: `url(${getImgView(item.equipmentImage)})` }" |
| | | :style="{ backgroundImage: `url(${getImgEquipmentView(item.equipmentImage)})` }" |
| | | class="device-image" |
| | | ></div> |
| | | </div> |
| | |
| | | } |
| | | return getFileAccessHttpUrl(text) |
| | | }, |
| | | /** |
| | | * 设备图片预览 |
| | | * @param text 图片地址 |
| | | */ |
| | | getImgEquipmentView(text) { |
| | | if (text && text.indexOf(',') > 0) { |
| | | text = text.substring(0, text.indexOf(',')) |
| | | } |
| | | |
| | | if (text == null || text == '') { |
| | | return require('../../../assets/default.png') |
| | | } |
| | | return getFileAccessHttpUrl(text) |
| | | }, |
| | | |
| | | /** |
| | | * 点击保存按钮调用接口保存拖拽后的位置与设备图标尺寸 |