调整部分设置

This commit is contained in:
2024-04-14 22:09:26 +08:00
parent 372f52e655
commit fe7c6a5cb8
3 changed files with 4 additions and 4 deletions

View File

@@ -19,7 +19,8 @@ export default {
name: 'AiDvMap', name: 'AiDvMap',
props: { props: {
geoJson: String, geoJson: String,
data: Array data: Array,
area: String
}, },
data() { data() {
return { return {

View File

@@ -64,7 +64,7 @@
<!-- <ai-sprite v-else-if="/building/.test(currentType)" v-bind="data" is3D @init="mods[currentType]"/> --> <!-- <ai-sprite v-else-if="/building/.test(currentType)" v-bind="data" is3D @init="mods[currentType]"/> -->
<ai-dv-plot v-else-if="currentType=='plot'" :options="data.charts" :instance="instance"/> <ai-dv-plot v-else-if="currentType=='plot'" :options="data.charts" :instance="instance"/>
<ai-assist v-else-if="currentType=='aiAssist'"/> <ai-assist v-else-if="currentType=='aiAssist'"/>
<ai-linkage-map v-else-if="currentType=='linkageMap'" :config="data" :area.sync="areaId"/> <ai-linkage-map v-else-if="currentType=='linkageMap'" :config="data" :instance="instance"/>
</ai-dv-panel> </ai-dv-panel>
</div> </div>
</template> </template>
@@ -110,7 +110,6 @@ export default {
timer: null, timer: null,
dvTableConfig: [], dvTableConfig: [],
mapDialog: false, mapDialog: false,
areaId: ""
} }
}, },
computed: { computed: {

View File

@@ -24,7 +24,7 @@ export default {
new DvCompData(this.config, this.instance).getData({type: this.areaId}).then(res => { new DvCompData(this.config, this.instance).getData({type: this.areaId}).then(res => {
const json = JSON.parse(res.param) const json = JSON.parse(res.param)
this.mapData = json.map this.mapData = json.map
this.config.summaryConfigs = json.sta?.map(e => ({...e, pos: "rt", display: "summary20"})) || [] this.config.summaryConfigs = json.sta?.map((e, i) => ({pos: ["rt", "lb", 'lt', 'rb'][i % 4], display: "summary20", ...e})) || []
}) })
} }
}, },