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