|
@@ -894,6 +894,7 @@ export default {
|
|
// 统计标记的疑点或非疑点数并排序
|
|
// 统计标记的疑点或非疑点数并排序
|
|
this.$store.state.mapMethodsCollection.set("METHODS", {
|
|
this.$store.state.mapMethodsCollection.set("METHODS", {
|
|
changeSortMethod: this.changeSortMethod,
|
|
changeSortMethod: this.changeSortMethod,
|
|
|
|
+ changeCaseBoolean: this.changeCaseBoolean,
|
|
});
|
|
});
|
|
},
|
|
},
|
|
destroy() {
|
|
destroy() {
|
|
@@ -904,6 +905,22 @@ export default {
|
|
this.$bus.$off("caseAuditEvent2");
|
|
this.$bus.$off("caseAuditEvent2");
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ // 修改数据中的疑点
|
|
|
|
+ changeCaseBoolean(val, status) {
|
|
|
|
+ if (this.enteredPanelId) {
|
|
|
|
+ let data = this.originalDataMap.get(this.enteredPanelId);
|
|
|
|
+ let index;
|
|
|
|
+ data.forEach((v, i) => {
|
|
|
|
+ if (v.id === val) {
|
|
|
|
+ index = i;
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ data[index]["c_boolean"] = status;
|
|
|
|
+ this.originalDataMap.set(this.enteredPanelId, data);
|
|
|
|
+ console.log(data, "修改疑点布尔值");
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ // 选择排序方式
|
|
changeSortMethod(val) {
|
|
changeSortMethod(val) {
|
|
if (this.enteredPanelId) {
|
|
if (this.enteredPanelId) {
|
|
let data = this.originalDataMap.get(this.enteredPanelId);
|
|
let data = this.originalDataMap.get(this.enteredPanelId);
|
|
@@ -921,30 +938,35 @@ export default {
|
|
|
|
|
|
switch (val) {
|
|
switch (val) {
|
|
case "未标记":
|
|
case "未标记":
|
|
- this.originalData[this.enteredPanelId] = [
|
|
|
|
|
|
+ this.originalDataMap.set(this.enteredPanelId, [
|
|
...arr1,
|
|
...arr1,
|
|
...arr2,
|
|
...arr2,
|
|
...arr3,
|
|
...arr3,
|
|
- ];
|
|
|
|
|
|
+ ]);
|
|
break;
|
|
break;
|
|
case "疑点":
|
|
case "疑点":
|
|
- this.originalData[this.enteredPanelId] = [
|
|
|
|
|
|
+ this.originalDataMap.set(this.enteredPanelId, [
|
|
...arr2,
|
|
...arr2,
|
|
- ...arr1,
|
|
|
|
...arr3,
|
|
...arr3,
|
|
- ];
|
|
|
|
|
|
+ ...arr1,
|
|
|
|
+ ]);
|
|
break;
|
|
break;
|
|
case "非疑点":
|
|
case "非疑点":
|
|
- this.originalData[this.enteredPanelId] = [
|
|
|
|
|
|
+ this.originalDataMap.set(this.enteredPanelId, [
|
|
...arr3,
|
|
...arr3,
|
|
- ...arr1,
|
|
|
|
...arr2,
|
|
...arr2,
|
|
- ];
|
|
|
|
|
|
+ ...arr1,
|
|
|
|
+ ]);
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
-
|
|
|
|
- // 先对所有的数据进行排序
|
|
|
|
- console.log(this.originalData[this.enteredPanelId], "已经排序后的数组");
|
|
|
|
|
|
+ this.changeSingleLayer(
|
|
|
|
+ 1,
|
|
|
|
+ this.currentPageSize,
|
|
|
|
+ this.enteredColumnId,
|
|
|
|
+ this.enteredPanelId,
|
|
|
|
+ this.enteredMainType,
|
|
|
|
+ this.enteredSourceType
|
|
|
|
+ );
|
|
}
|
|
}
|
|
},
|
|
},
|
|
// 得到底部菜单疑点审计开启状态
|
|
// 得到底部菜单疑点审计开启状态
|
|
@@ -1106,6 +1128,7 @@ export default {
|
|
};
|
|
};
|
|
|
|
|
|
if (mainType === "预设模型") {
|
|
if (mainType === "预设模型") {
|
|
|
|
+ this.enteredPanelId = uniqueId;
|
|
let searchParam = [];
|
|
let searchParam = [];
|
|
let paramTown = {
|
|
let paramTown = {
|
|
field: "c_xzqh",
|
|
field: "c_xzqh",
|
|
@@ -1199,12 +1222,20 @@ export default {
|
|
let defaultStatus = ele.c_boolean;
|
|
let defaultStatus = ele.c_boolean;
|
|
let modelId = ele.model_id;
|
|
let modelId = ele.model_id;
|
|
let columnId = ele.column_id;
|
|
let columnId = ele.column_id;
|
|
|
|
+ let color = this.collectColorMap.get(this.collectColorMapIndex);
|
|
|
|
+ if (defaultStatus === "疑点") {
|
|
|
|
+ color = `rgb(${caseColorChange["isPointColor"][0]},${caseColorChange["isPointColor"][1]},${caseColorChange["isPointColor"][2]})`;
|
|
|
|
+ }
|
|
|
|
+ if (defaultStatus === "非疑点") {
|
|
|
|
+ color = `rgb(${caseColorChange["notPointColor"][0]},${caseColorChange["notPointColor"][1]},${caseColorChange["notPointColor"][2]})`;
|
|
|
|
+ }
|
|
|
|
+
|
|
this.$store.state.mapMethodsCollection
|
|
this.$store.state.mapMethodsCollection
|
|
.get("RENDER")
|
|
.get("RENDER")
|
|
.addSinglePolygon(
|
|
.addSinglePolygon(
|
|
geometry,
|
|
geometry,
|
|
cid,
|
|
cid,
|
|
- this.collectColorMap.get(this.collectColorMapIndex),
|
|
|
|
|
|
+ color,
|
|
uniqueId,
|
|
uniqueId,
|
|
mainType,
|
|
mainType,
|
|
sourceType,
|
|
sourceType,
|
|
@@ -1320,6 +1351,7 @@ export default {
|
|
this.activeNames = ["myLabel", uniqueId];
|
|
this.activeNames = ["myLabel", uniqueId];
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+
|
|
// 数据字典查询 -- 根据内容获取对应的index
|
|
// 数据字典查询 -- 根据内容获取对应的index
|
|
// this.classTextToIndex["任务类型"]
|
|
// this.classTextToIndex["任务类型"]
|
|
classDictQuery(type, cName, keyName) {
|
|
classDictQuery(type, cName, keyName) {
|
|
@@ -1938,7 +1970,7 @@ export default {
|
|
(coord) => coord.length == 0
|
|
(coord) => coord.length == 0
|
|
);
|
|
);
|
|
if (condition) {
|
|
if (condition) {
|
|
- this.$message.info("未发现叠置的几何体!")
|
|
|
|
|
|
+ this.$message.info("未发现叠置的几何体!");
|
|
} else {
|
|
} else {
|
|
if (map2DViewer.analysisGroups[uniqueId]) {
|
|
if (map2DViewer.analysisGroups[uniqueId]) {
|
|
let uniqueIdList = [];
|
|
let uniqueIdList = [];
|
|
@@ -2088,7 +2120,6 @@ export default {
|
|
},
|
|
},
|
|
// geojson直接读取的坐标顺序是经纬度
|
|
// geojson直接读取的坐标顺序是经纬度
|
|
readGeojson(geojson, uniqueId, color) {
|
|
readGeojson(geojson, uniqueId, color) {
|
|
- // debugger;
|
|
|
|
// 尽量与所有图层,预设模型读取几何数据的方式一样,
|
|
// 尽量与所有图层,预设模型读取几何数据的方式一样,
|
|
let states = [];
|
|
let states = [];
|
|
states.push(geojson);
|
|
states.push(geojson);
|
|
@@ -2162,15 +2193,6 @@ export default {
|
|
delete this.targetLayerTotal[data.id];
|
|
delete this.targetLayerTotal[data.id];
|
|
delete map2DViewer.analysisGroups[data.id];
|
|
delete map2DViewer.analysisGroups[data.id];
|
|
}
|
|
}
|
|
-
|
|
|
|
- // 如果有叠置分析文件,删除叠置分析图层
|
|
|
|
- // if (data.c_dzfx_file) {
|
|
|
|
- // if (map2DViewer.analysisGroups[data.id]) {
|
|
|
|
- // map2DViewer.map.removeLayer(map2DViewer.analysisGroups[data.id]);
|
|
|
|
- // }
|
|
|
|
- // } else {
|
|
|
|
- // // 删除绘制的图层数据
|
|
|
|
- // }
|
|
|
|
},
|
|
},
|
|
//显示详细信息
|
|
//显示详细信息
|
|
viewDetailsPopup(data) {
|
|
viewDetailsPopup(data) {
|