|
@@ -19,6 +19,11 @@
|
|
<Content v-bind="cfg" />
|
|
<Content v-bind="cfg" />
|
|
</ModuleOriginal>
|
|
</ModuleOriginal>
|
|
</template>
|
|
</template>
|
|
|
|
+ <template v-else-if="isCommon">
|
|
|
|
+ <ModuleCommon v-for="cfg in configs" :key="cfg.deviceType" :show-style="cfg.showStyle" :module-name="cfg.moduleName" :visible="true">
|
|
|
|
+ <Content v-bind="cfg" />
|
|
|
|
+ </ModuleCommon>
|
|
|
|
+ </template>
|
|
<template v-else>
|
|
<template v-else>
|
|
<!-- 下面是正常展示的各新版模块 -->
|
|
<!-- 下面是正常展示的各新版模块 -->
|
|
<ModuleEnhanced
|
|
<ModuleEnhanced
|
|
@@ -55,6 +60,7 @@
|
|
import { Config } from '../../deviceManager/configurationTable/types';
|
|
import { Config } from '../../deviceManager/configurationTable/types';
|
|
import ModuleEnhanced from './components/ModuleEnhanced.vue';
|
|
import ModuleEnhanced from './components/ModuleEnhanced.vue';
|
|
import ModuleOriginal from './components/ModuleOriginal.vue';
|
|
import ModuleOriginal from './components/ModuleOriginal.vue';
|
|
|
|
+ import ModuleCommon from './components/ModuleCommon.vue';
|
|
import Content from './components/content.vue';
|
|
import Content from './components/content.vue';
|
|
import { testConfigA } from './configurable.data';
|
|
import { testConfigA } from './configurable.data';
|
|
// import mapComponent from './components/3Dmap/index.vue';
|
|
// import mapComponent from './components/3Dmap/index.vue';
|
|
@@ -72,7 +78,7 @@
|
|
const hiddenList = computed(() => {
|
|
const hiddenList = computed(() => {
|
|
return enhancedConfigs.value.filter((e) => e.visible === false);
|
|
return enhancedConfigs.value.filter((e) => e.visible === false);
|
|
});
|
|
});
|
|
- const { configs, isOriginal, fetchConfigs } = useInitConfigs();
|
|
|
|
|
|
+ const { configs, isOriginal, isCommon, fetchConfigs } = useInitConfigs();
|
|
|
|
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
// configs.value = testConfigB;
|
|
// configs.value = testConfigB;
|