rev:设备监控页面优化

This commit is contained in:
2024-05-09 10:54:19 +08:00
parent bd2bc9ba99
commit 9f5baffd40
4 changed files with 85 additions and 19 deletions

View File

@@ -6,8 +6,8 @@ import icon_alert from '../../../image/icon_alert.png'
class ButtonNodeModel extends HtmlResize.model {
initNodeData(data) {
super.initNodeData(data)
this.width = 100
this.height = 100
this.width = 60
this.height = 60
this.text.draggable = true
this.text.editable = false
}
@@ -66,7 +66,7 @@ class ButtonNode extends HtmlResize.view {
// el.id = 'uml-app'
const html = `
<div>
<div style="height: 15px; width: 15px; background-color: ${statusColor}; position: absolute; border-radius: 100px; z-index: 9999"></div>
<div style="height: 6px; width: 6px; background-color: ${statusColor}; position: absolute; border-radius: 100px; z-index: 9999"></div>
<img src="${goods}" style="position: absolute; height: ${trayHeight}px; width: ${trayWidth}px; top: 15%; left: 15%; display: ${trayDisplay}">
<img style="transform: rotate(${properties.transform}deg);" height="${oldNode._height}" width="${oldNode._width}" src="${imageUrl}">
<img src="${fault}" style="position: absolute; height: ${trayHeight}px; width: ${trayWidth}px; top: 15%; left: 15%; display: ${faultDisplay}">