NEZ-1740 feat:告警列 最近告警柱形图 根据 告警数量显示不同高度
This commit is contained in:
@@ -56,8 +56,8 @@ export default {
|
||||
}
|
||||
}
|
||||
})
|
||||
const width = sum > 0 ? (sum <= 10 ? 12 : 14) : 10
|
||||
style.width = (width + 'px')
|
||||
const height = sum > 0 ? (sum <= 10 ? 12 : 14) : 10
|
||||
style.height = (height + 'px')
|
||||
return style
|
||||
},
|
||||
tooltipHover (item, flag, e) {
|
||||
|
||||
@@ -134,7 +134,7 @@ export default {
|
||||
label: this.$t('alert.alert'),
|
||||
prop: 'alertNum',
|
||||
show: true,
|
||||
minWidth: 170,
|
||||
width: 120,
|
||||
sortable: 'custom'
|
||||
}, {
|
||||
label: this.$t('alert.config.receiver'),
|
||||
|
||||
@@ -119,7 +119,7 @@ export default {
|
||||
label: this.$t('asset.alertNum'),
|
||||
prop: 'alertNum',
|
||||
show: true,
|
||||
minWidth: 170,
|
||||
width: 120,
|
||||
sortable: 'custom'
|
||||
}, {
|
||||
label: this.$t('asset.endpointNum2'),
|
||||
|
||||
@@ -91,7 +91,7 @@ export default {
|
||||
}, {
|
||||
label: this.$t('config.dc.alert'),
|
||||
prop: 'alertNum',
|
||||
minWidth: 170,
|
||||
width: 120,
|
||||
show: true
|
||||
}, {
|
||||
label: this.$t('asset.tel'),
|
||||
|
||||
@@ -89,7 +89,7 @@ export default {
|
||||
label: this.$t('project.module.alerts'),
|
||||
prop: 'alertNum',
|
||||
show: true,
|
||||
minWidth: 170,
|
||||
width: 120,
|
||||
sortable: 'custom'
|
||||
},
|
||||
{
|
||||
|
||||
@@ -114,7 +114,7 @@ export default {
|
||||
label: this.$t('asset.alertNum'),
|
||||
prop: 'alertNum',
|
||||
show: true,
|
||||
width: 180
|
||||
width: 120,
|
||||
}, {
|
||||
label: this.$t('asset.endpointNum2'),
|
||||
prop: 'endpointNum',
|
||||
|
||||
@@ -228,7 +228,7 @@ export default {
|
||||
label: this.$t('alert.alert'),
|
||||
prop: 'alertNum',
|
||||
show: true,
|
||||
minWidth: 170,
|
||||
width: 120,
|
||||
sortable: 'custom'
|
||||
}, {
|
||||
label: this.$t('alert.config.receiver'),
|
||||
|
||||
@@ -253,7 +253,7 @@ export default {
|
||||
label: this.$t('asset.alertNum'),
|
||||
prop: 'alertNum',
|
||||
show: true,
|
||||
minWidth: 170,
|
||||
width: 120,
|
||||
sortable: 'custom'
|
||||
}, {
|
||||
label: this.$t('asset.endpointNum2'),
|
||||
|
||||
@@ -173,7 +173,7 @@ export default {
|
||||
}, {
|
||||
label: this.$t('config.dc.alert'),
|
||||
prop: 'alertNum',
|
||||
minWidth: 170,
|
||||
width: 120,
|
||||
show: true
|
||||
}, {
|
||||
label: this.$t('asset.tel'),
|
||||
|
||||
@@ -147,7 +147,7 @@ export default {
|
||||
label: this.$t('project.module.alerts'),
|
||||
prop: 'alertNum',
|
||||
show: true,
|
||||
width: 170,
|
||||
width: 120,
|
||||
sortable: 'custom'
|
||||
},
|
||||
{
|
||||
|
||||
@@ -148,7 +148,7 @@ export default {
|
||||
label: this.$t('project.endpoint.alerts'),
|
||||
prop: 'alertNum',
|
||||
show: true,
|
||||
width: 170,
|
||||
width: 120,
|
||||
sortable: 'custom'
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user