调整部分设置
This commit is contained in:
		| @@ -19,7 +19,8 @@ export default { | ||||
|   name: 'AiDvMap', | ||||
|   props: { | ||||
|     geoJson: String, | ||||
|     data: Array | ||||
|     data: Array, | ||||
|     area: String | ||||
|   }, | ||||
|   data() { | ||||
|     return { | ||||
|   | ||||
| @@ -64,7 +64,7 @@ | ||||
|       <!-- <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-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> | ||||
|   </div> | ||||
| </template> | ||||
| @@ -110,7 +110,6 @@ export default { | ||||
|       timer: null, | ||||
|       dvTableConfig: [], | ||||
|       mapDialog: false, | ||||
|       areaId: "" | ||||
|     } | ||||
|   }, | ||||
|   computed: { | ||||
|   | ||||
| @@ -24,7 +24,7 @@ export default { | ||||
|       new DvCompData(this.config, this.instance).getData({type: this.areaId}).then(res => { | ||||
|         const json = JSON.parse(res.param) | ||||
|         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})) || [] | ||||
|       }) | ||||
|     } | ||||
|   }, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user