NEZ-1740 feat:告警列 最近告警柱形图 根据 告警数量显示不同高度

This commit is contained in:
zhangyu
2022-03-28 12:30:51 +08:00
parent 0132be7c1f
commit c42ddd6e24
11 changed files with 12 additions and 12 deletions

View File

@@ -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) {

View File

@@ -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'),

View File

@@ -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'),

View File

@@ -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'),

View File

@@ -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'
}, },
{ {

View File

@@ -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',

View File

@@ -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'),

View File

@@ -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'),

View File

@@ -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'),

View File

@@ -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'
}, },
{ {

View File

@@ -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'
} }
] ]