|
|
|
@ -23,6 +23,7 @@
|
|
|
|
:key="item.componentName"
|
|
|
|
:key="item.componentName"
|
|
|
|
:class="[getComponentClass(item.componentName)]"
|
|
|
|
:class="[getComponentClass(item.componentName)]"
|
|
|
|
:title="item.title"
|
|
|
|
:title="item.title"
|
|
|
|
|
|
|
|
:tips="getComponentTips(item.componentName)"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<component
|
|
|
|
<component
|
|
|
|
:is="item.component"
|
|
|
|
:is="item.component"
|
|
|
|
@ -44,6 +45,7 @@
|
|
|
|
v-else
|
|
|
|
v-else
|
|
|
|
:class="[getComponentClass(item.componentName)]"
|
|
|
|
:class="[getComponentClass(item.componentName)]"
|
|
|
|
:title="item.title"
|
|
|
|
:title="item.title"
|
|
|
|
|
|
|
|
:tips="getComponentTips(item.componentName)"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<component
|
|
|
|
<component
|
|
|
|
:is="item.component"
|
|
|
|
:is="item.component"
|
|
|
|
@ -59,6 +61,7 @@
|
|
|
|
:key="item.componentName"
|
|
|
|
:key="item.componentName"
|
|
|
|
:class="[getComponentClass(item.componentName)]"
|
|
|
|
:class="[getComponentClass(item.componentName)]"
|
|
|
|
:title="item.title"
|
|
|
|
:title="item.title"
|
|
|
|
|
|
|
|
:tips="getComponentTips(item.componentName)"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<component
|
|
|
|
<component
|
|
|
|
:is="item.component"
|
|
|
|
:is="item.component"
|
|
|
|
@ -173,6 +176,39 @@ const getComponentClass = computed(() => (componentName) => {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return className;
|
|
|
|
return className;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
const getComponentTips = computed(() => (componentName) => {
|
|
|
|
|
|
|
|
let tips = '';
|
|
|
|
|
|
|
|
switch (componentName) {
|
|
|
|
|
|
|
|
case 'AccessStatus':
|
|
|
|
|
|
|
|
tips = '全网接入情况';
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 'MajorSystemHealthStatus':
|
|
|
|
|
|
|
|
tips = '重要系统健康状态';
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 'MajorAlert':
|
|
|
|
|
|
|
|
tips = '重要告警';
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 'AccessSituation':
|
|
|
|
|
|
|
|
tips = 'IT资源接入情况';
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 'AlarmDynamic':
|
|
|
|
|
|
|
|
tips = '实时告警动态';
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 'AccessUsageStatus':
|
|
|
|
|
|
|
|
tips = '各资源接入及使用情况';
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 'ResourceType':
|
|
|
|
|
|
|
|
tips = '资源类型';
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 'AlarmTrend':
|
|
|
|
|
|
|
|
tips = '告警趋势图';
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 'AlarmStatistics':
|
|
|
|
|
|
|
|
tips = '告警级别统计';
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return tips;
|
|
|
|
|
|
|
|
});
|
|
|
|
const getLayout = (id) => {
|
|
|
|
const getLayout = (id) => {
|
|
|
|
return new Promise((resolve) => {
|
|
|
|
return new Promise((resolve) => {
|
|
|
|
setTimeout(() => {
|
|
|
|
setTimeout(() => {
|
|
|
|
|