|
|
|
|
@ -31,7 +31,27 @@
|
|
|
|
|
</ItemWrap>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="content_center"></div>
|
|
|
|
|
<div class="content_center">
|
|
|
|
|
<template
|
|
|
|
|
v-for="item in layoutData.center"
|
|
|
|
|
:key="item.componentName"
|
|
|
|
|
>
|
|
|
|
|
<MajorAlert
|
|
|
|
|
v-if="item.componentName === 'MajorAlert'"
|
|
|
|
|
:ref="(el) => setRef(el, item.componentName)"
|
|
|
|
|
/>
|
|
|
|
|
<ItemWrap
|
|
|
|
|
v-else
|
|
|
|
|
:class="[getComponentClass(item.componentName)]"
|
|
|
|
|
:title="item.title"
|
|
|
|
|
>
|
|
|
|
|
<component
|
|
|
|
|
:is="item.component"
|
|
|
|
|
:ref="(el) => setRef(el, item.componentName)"
|
|
|
|
|
/>
|
|
|
|
|
</ItemWrap>
|
|
|
|
|
</template>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="content_right"></div>
|
|
|
|
|
</div>
|
|
|
|
|
@ -46,6 +66,7 @@ import Headers from './components/Headers.vue';
|
|
|
|
|
import ItemWrap from './components/common/item-wrap';
|
|
|
|
|
import AccessStatus from './components/AccessStatus.vue';
|
|
|
|
|
import MajorSystemHealthStatus from './components/MajorSystemHealthStatus.vue';
|
|
|
|
|
import MajorAlert from './components/MajorAlert.vue';
|
|
|
|
|
|
|
|
|
|
/** 机构切换配置 */
|
|
|
|
|
const orgList = ref([
|
|
|
|
|
@ -86,6 +107,9 @@ const getComponent = (componentName) => {
|
|
|
|
|
case 'MajorSystemHealthStatus':
|
|
|
|
|
component = shallowRef(MajorSystemHealthStatus);
|
|
|
|
|
break;
|
|
|
|
|
case 'MajorAlert':
|
|
|
|
|
component = shallowRef(MajorAlert);
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
return component;
|
|
|
|
|
};
|
|
|
|
|
@ -113,7 +137,7 @@ const getLayout = (id) => {
|
|
|
|
|
{ title: '综合看板', componentName: 'AccessStatus' },
|
|
|
|
|
{ title: '重要系统健康状态', componentName: 'MajorSystemHealthStatus' },
|
|
|
|
|
],
|
|
|
|
|
center: [],
|
|
|
|
|
center: [{ title: '重要告警', componentName: 'MajorAlert' }],
|
|
|
|
|
right: [],
|
|
|
|
|
};
|
|
|
|
|
break;
|
|
|
|
|
@ -123,7 +147,7 @@ const getLayout = (id) => {
|
|
|
|
|
{ title: '综合看板', componentName: 'AccessStatus' },
|
|
|
|
|
{ title: '重要系统健康状态', componentName: 'MajorSystemHealthStatus' },
|
|
|
|
|
],
|
|
|
|
|
center: [],
|
|
|
|
|
center: [{ title: '重要告警', componentName: 'MajorAlert' }],
|
|
|
|
|
right: [],
|
|
|
|
|
};
|
|
|
|
|
break;
|
|
|
|
|
|