diff --git a/components/AiDvRender.vue b/components/AiDvRender.vue index eccf80c8..5a749dc3 100644 --- a/components/AiDvRender.vue +++ b/components/AiDvRender.vue @@ -111,10 +111,7 @@ export default { watch: { values: { immediate: true, - deep: true, handler(v) { - if (this.currentType == 'map') { - this.renderMap() - } + deep: true, handler() { if (this.currentType === 'AiDvTable') { this.dvTableConfig = this.data[this.data.dataType].map((v, i) => { return { @@ -123,7 +120,6 @@ export default { align: this.data.config[i] ? (this.data.config[i].align || '') : '' } }) - this.data.config = this.dvTableConfig } } @@ -168,7 +164,7 @@ export default { renderMap(count = 0) { let {lib: AMap, map} = this this.timer && clearInterval(this.timer) - if (AMap) { + if (AMap && map) { let infoWin = new AMap.InfoWindow({content: ""}) map.clearMap() this.values.filter(e => e.lng).map(e => { diff --git a/packages/bigscreen/designer/components/Layout.vue b/packages/bigscreen/designer/components/Layout.vue index 85ff1039..51bb8c6f 100644 --- a/packages/bigscreen/designer/components/Layout.vue +++ b/packages/bigscreen/designer/components/Layout.vue @@ -146,6 +146,15 @@ +
+ +
+ + + + +
+
@@ -261,7 +270,8 @@ export default { height: 1080, theme: '0', backgroundColor: '', - backgroundImage: [] + backgroundImage: [], + style: 'black' }, menuX: 0, menuY: 0, diff --git a/ui/packages/tools/AiMap.vue b/ui/packages/tools/AiMap.vue index fb5e2dc9..9636551e 100644 --- a/ui/packages/tools/AiMap.vue +++ b/ui/packages/tools/AiMap.vue @@ -72,7 +72,7 @@ export default { this.$emit("loaded") this.mapLoaded() } - }) + }).catch(this.initMap) }, getMapArea() { const {mapLib: AMap} = this