hyingbo
2025-07-09 2f519ead537a0b38019bbf64a6075cbb6e08f9b4
车间大屏看板设置设备默认图片
已修改1个文件
16 ■■■■■ 文件已修改
src/views/mdc/base/MdcWorkshopSignage.vue 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/mdc/base/MdcWorkshopSignage.vue
@@ -62,7 +62,7 @@
                class="status-image"
              ></div>
              <div
                :style="{ backgroundImage: `url(${getImgView(item.equipmentImage)})` }"
                :style="{ backgroundImage: `url(${getImgEquipmentView(item.equipmentImage)})` }"
                class="device-image"
              ></div>
            </div>
@@ -196,6 +196,20 @@
        }
        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)
      },
      /**
       * 点击保存按钮调用接口保存拖拽后的位置与设备图标尺寸