党建大屏

This commit is contained in:
yanran200730
2022-05-12 15:25:31 +08:00
parent 7453962f52
commit d5d5fa6055
3 changed files with 200 additions and 8 deletions

View File

@@ -138,7 +138,7 @@
<ai-map :markers="data[data.dataType]" v-else-if="data.type=='map'" :mask="data.mask === '1'" :areaId="data.areaId || user.info.areaId" map-style="amap://styles/e51987628aee5206d4c9ca8c6e98b4f7"/>
<ai-monitor :src="data.src" v-else-if="data.type === 'monitor'" :type="data.monitorType"></ai-monitor>
<video style="width: 100%; height: 100%; object-fit: fill;" loop :src="data.src" autoplay v-else-if="data.type === 'video'"></video>
<AiDvPartyOrg style="width: 100%; height: 100%;" v-else-if="data.type === 'AiDvPartyOrg'"></AiDvPartyOrg>
<AiDvPartyOrg style="width: 100%; height: 100%;" v-else-if="data.type === 'partyOrg'" :instance="instance"></AiDvPartyOrg>
</ai-dv-panel>
</div>
</template>
@@ -156,7 +156,7 @@
export default {
name: 'RenderElement',
props: ['data', 'index', 'theme'],
props: ['data', 'index', 'theme', 'instance'],
components: {
AiSwiper

View File

@@ -14,7 +14,7 @@
}"
v-for="(item, index) in componentList"
:key="index">
<RenderElement :data="item" :index="index" :theme="dashboard.theme"></RenderElement>
<RenderElement :instance="instance" :data="item" :index="index" :theme="dashboard.theme"></RenderElement>
</div>
</div>
<components v-else :is="component" :dict="dict" :instance="instance" :nav="meta"/>