仪表盘去除事件告警

This commit is contained in:
lai
2024-05-30 14:49:45 +08:00
parent bc59dc67e6
commit c1e95fd1e9
2 changed files with 10 additions and 10 deletions

View File

@@ -70,10 +70,10 @@ const alarmTypeType = ref<any>([
value: 0,
name: t('views.index.Warning'),
},
{
value: 0,
name: t('views.index.Event'),
},
// {
// value: 0,
// name: t('views.index.Event'),
// },
]);
/**告警类型Top数据 */
@@ -105,9 +105,9 @@ function initPicture() {
case 'Warning':
index = 3;
break;
case 'Event':
index = 4;
break;
// case 'Event':
// index = 4;
// break;
}
alarmTypeType.value[index].value = Number(item.value);
}
@@ -149,7 +149,7 @@ function initPicture() {
legend: {
orient: 'vertical',
right: '2%',
top: '10%',
top: '12%',
data: alarmTypeType.value.map((item: any) => item.name), //label数组
textStyle: {
color: '#A7D6F4', // 设置图例文字颜色