This commit is contained in:
yanran200730
2022-11-18 08:50:55 +08:00
parent c9cc263d52
commit 6f8b6a01a1

View File

@@ -14,15 +14,23 @@
:config="formatTable(values, data.isShowIndex, data.rowNum)" :config="formatTable(values, data.isShowIndex, data.rowNum)"
:key="data.height" :key="data.height"
:theme="theme" :theme="theme"
:style="{height: data.height + 'px', width: '100%'}"/> :style="{height: data.height + 'px', width: '100%'}" />
<ai-echart v-else-if="/Chart/.test(data.type)" <ai-echart v-else-if="/Chart/.test(data.type)"
style="height: 100%; width: 100%;" style="height: 100%; width: 100%;"
:ref="'chart' + index" :ref="'chart' + index"
:key="`chart${index}`" :key="`chart${index}`"
:theme="theme" :theme="theme"
:data="values" :data="values"
:ops="chartList[data.config]"/> :ops="chartList[data.config]" />
<ai-map v-else-if="data.type=='map'" :mask="data.mask === '1'" :areaId="data.areaId || user.info.areaId" :is3d="data.is3d==1" <!-- <ai-q-map
v-else-if="data.type=='map'"
:area-id="data.areaId"
:markers="markers"
:is3d="data.is3D === '1'"
:limitArea="data.limitArea === '1'"
:is3dAround="data.is3dAround === '1'">
</ai-q-map> -->
<ai-map v-else-if="data.type=='map'" :mask="data.mask === '1'" areaId="510117000000" :is3d="data.is3d==1" :is3dAround="data.is3dAround === '1'"
:map-style="`amap://styles/${data.mapStyle}`" :pulseLines="data.pulseLines==1" :map.sync="map" :lib.sync="lib" :onlyShowArea="data.limitArea==1"/> :map-style="`amap://styles/${data.mapStyle}`" :pulseLines="data.pulseLines==1" :map.sync="map" :lib.sync="lib" :onlyShowArea="data.limitArea==1"/>
<ai-monitor :src="data.src" v-else-if="data.type === 'monitor'" :type="data.monitorType"/> <ai-monitor :src="data.src" v-else-if="data.type === 'monitor'" :type="data.monitorType"/>
<video style="width: 100%; height: 100%; object-fit: fill;" loop :src="data.src" autoplay v-else-if="data.type === 'video'"/> <video style="width: 100%; height: 100%; object-fit: fill;" loop :src="data.src" autoplay v-else-if="data.type === 'video'"/>
@@ -80,7 +88,7 @@ export default {
immediate: true, immediate: true,
deep: true, handler() { deep: true, handler() {
if (this.currentType == 'map') { if (this.currentType == 'map') {
this.renderMap() // this.renderMap()
} }
} }
} }