This commit is contained in:
2024-04-24 17:05:19 +08:00
parent ec0c09a674
commit ab5867c4fd
3 changed files with 6 additions and 3 deletions

View File

@@ -85,7 +85,7 @@ export default {
color: this.colors,
title: {
text: num,
subtext: '总数',
subtext: '总数/个',
top: '32%',
left: '49%',
textAlign: 'center',

View File

@@ -66,8 +66,10 @@ export default {
`<span title=${item.name || ''}>${item.name || ''}</span>`,
`<span title=${item.code || ''}>${item.code || ''}</span>`,
`<span><div style="${
item.status == '正常'
item.status == '运行'
? 'box-shadow: 0px 0px 2px 1px #2760FF;width:6px;height:6px;border-radius: 50%;background-color: #2760FF;float:left;margin:13px 10px 0 0 '
: item.status == '故障'
? 'box-shadow: 0px 0px 2px 1px red;width:6px;height:6px;border-radius: 50%; background-color: red;float:left;margin:13px 10px 0 0 '
: 'box-shadow: 0px 0px 2px 1px #FFBD02;width:6px;height:6px;border-radius: 50%; background-color: #FFBD02;float:left;margin:13px 10px 0 0 '
}"></div> ${item.status || ''}</span>`,
`<span"><div style="${