提交 4c5717b2 编写于 作者: KK's avatar KK

地图加载逻辑调整 --fix9

上级 be70d8cb
...@@ -137,7 +137,7 @@ import { Http } from "@/ibiz-core/utils"; ...@@ -137,7 +137,7 @@ import { Http } from "@/ibiz-core/utils";
this.items = response.data; this.items = response.data;
for (let index = 0; index < this.series.length; index++) { for (let index = 0; index < this.series.length; index++) {
const element:any = this.series[index]; const element:any = this.series[index];
element.data = await this.convertDat(element.name); element.data = await this.convertDat(element.modelType);
} }
this.setOptions(); this.setOptions();
return response; return response;
...@@ -187,7 +187,7 @@ import { Http } from "@/ibiz-core/utils"; ...@@ -187,7 +187,7 @@ import { Http } from "@/ibiz-core/utils";
public mapItems:any = { public mapItems:any = {
<#if ctrl.getPSSysMapItems?? && ctrl.getPSSysMapItems()??> <#if ctrl.getPSSysMapItems?? && ctrl.getPSSysMapItems()??>
<#list ctrl.getPSSysMapItems() as mapitem> <#list ctrl.getPSSysMapItems() as mapitem>
'${mapitem.getName()}':{ '${mapItem.getItemType()?lower_case}':{
bkcolor:'<#if mapitem.getBKColorPSAppDEField?? && mapitem.getBKColorPSAppDEField()??>${mapitem.getBKColorPSAppDEField().getCodeName()?lower_case}</#if>', bkcolor:'<#if mapitem.getBKColorPSAppDEField?? && mapitem.getBKColorPSAppDEField()??>${mapitem.getBKColorPSAppDEField().getCodeName()?lower_case}</#if>',
color:'<#if mapitem.getColorPSAppDEField?? && mapitem.getColorPSAppDEField()??>${mapitem.getColorPSAppDEField().getCodeName()?lower_case}</#if>', color:'<#if mapitem.getColorPSAppDEField?? && mapitem.getColorPSAppDEField()??>${mapitem.getColorPSAppDEField().getCodeName()?lower_case}</#if>',
content:'<#if mapitem.getContentPSDEField?? && mapitem.getContentPSDEField()??>${mapitem.getContentPSDEField().getCodeName()?lower_case}</#if>', content:'<#if mapitem.getContentPSDEField?? && mapitem.getContentPSDEField()??>${mapitem.getContentPSDEField().getCodeName()?lower_case}</#if>',
...@@ -264,6 +264,7 @@ import { Http } from "@/ibiz-core/utils"; ...@@ -264,6 +264,7 @@ import { Http } from "@/ibiz-core/utils";
{ {
name: '${mapitem.getName()}', name: '${mapitem.getName()}',
type: 'scatter', type: 'scatter',
modelType: '${mapItem.getItemType()?lower_case}',
symbolSize: 10,//控制点的大小 symbolSize: 10,//控制点的大小
coordinateSystem: 'geo', coordinateSystem: 'geo',
encode: { encode: {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册