|
@@ -220,22 +220,15 @@ class AuthenticMap {
|
|
|
// 清空单个数据
|
|
|
clearMapData(name, val, id) {
|
|
|
name && (mapData[name] = val);
|
|
|
- resetMapData()
|
|
|
this.clickPointLayer.source.forEachFeature((feature) => {
|
|
|
- if (feature.get("id") === id) {
|
|
|
feature.set("icon", "point");
|
|
|
feature.set("iconBg", "name-bg");
|
|
|
- }
|
|
|
});
|
|
|
const points = this.kmap.getLayerFeatures();
|
|
|
points.forEach((feature) => {
|
|
|
- if (feature.get("id") === id) {
|
|
|
feature.set("icon", "point");
|
|
|
- this.kmap.polygonStyle(feature);
|
|
|
- mapData.isPointHide = feature;
|
|
|
- }
|
|
|
});
|
|
|
- mapData.selectPointArr = [];
|
|
|
+ resetMapData()
|
|
|
}
|
|
|
//全选
|
|
|
allSelect(ids){
|
|
@@ -276,10 +269,12 @@ class AuthenticMap {
|
|
|
let that = this;
|
|
|
that.kmap.on("singleclick", (evt) => {
|
|
|
if(mapData.curPointData.id && !mapData.disabledForm){
|
|
|
+ console.log(mapData)
|
|
|
ElMessage.warning("编辑中")
|
|
|
return;
|
|
|
}
|
|
|
if(!mapData.curPointData.id && mapData.isEdit){
|
|
|
+ console.log(mapData)
|
|
|
ElMessage.warning("编辑中")
|
|
|
return;
|
|
|
}
|