|
@@ -489,6 +489,7 @@ export default {
|
|
coordinate.push(it.ordinate)
|
|
coordinate.push(it.ordinate)
|
|
obj.coordinate = coordinate
|
|
obj.coordinate = coordinate
|
|
obj.name = it.projectName
|
|
obj.name = it.projectName
|
|
|
|
+ obj.appOrg = it.appOrg
|
|
this.projectList.push(obj)
|
|
this.projectList.push(obj)
|
|
}
|
|
}
|
|
this.sign = 1
|
|
this.sign = 1
|
|
@@ -574,15 +575,28 @@ export default {
|
|
type: "scatter", // 散点图(用于标注特殊位置)
|
|
type: "scatter", // 散点图(用于标注特殊位置)
|
|
coordinateSystem: "geo", // 使用 `geo` 作为坐标系
|
|
coordinateSystem: "geo", // 使用 `geo` 作为坐标系
|
|
symbol: 'circle', // 自定义标记
|
|
symbol: 'circle', // 自定义标记
|
|
- symbolSize: 10, // 标记的大小
|
|
|
|
|
|
+ symbolSize: 15, // 标记的大小
|
|
itemStyle: {
|
|
itemStyle: {
|
|
- color: 'yellow'
|
|
|
|
|
|
+ color: 'red'
|
|
},
|
|
},
|
|
- data: this.projectList.map(({ name, coordinate }) => ({
|
|
|
|
|
|
+ data: this.projectList.filter(({ appOrg }) => appOrg === this.appOrg).map(({ name, coordinate }) => ({
|
|
name, // 点名称
|
|
name, // 点名称
|
|
value: coordinate // 经纬度坐标
|
|
value: coordinate // 经纬度坐标
|
|
})),
|
|
})),
|
|
},
|
|
},
|
|
|
|
+ {
|
|
|
|
+ type: "scatter", // 散点图(用于标注特殊位置)
|
|
|
|
+ coordinateSystem: "geo", // 使用 `geo` 作为坐标系
|
|
|
|
+ symbol: 'circle', // 自定义标记
|
|
|
|
+ symbolSize: 15, // 标记的大小
|
|
|
|
+ itemStyle: {
|
|
|
|
+ color: 'yellow'
|
|
|
|
+ },
|
|
|
|
+ data: this.projectList.filter(({ appOrg }) => appOrg !== this.appOrg).map(({ name, coordinate }) => ({
|
|
|
|
+ name, // 点名称
|
|
|
|
+ value: coordinate // 经纬度坐标
|
|
|
|
+ })),
|
|
|
|
+ }
|
|
]
|
|
]
|
|
};
|
|
};
|
|
echarts.registerMap("child", this.dataSource[cityName])
|
|
echarts.registerMap("child", this.dataSource[cityName])
|
|
@@ -726,6 +740,7 @@ export default {
|
|
coordinate.push(it.ordinate)
|
|
coordinate.push(it.ordinate)
|
|
obj.coordinate = coordinate
|
|
obj.coordinate = coordinate
|
|
obj.name = it.projectName
|
|
obj.name = it.projectName
|
|
|
|
+ obj.appOrg = it.appOrg
|
|
this.projectList.push(obj)
|
|
this.projectList.push(obj)
|
|
}
|
|
}
|
|
this.sign = 1
|
|
this.sign = 1
|