|
@@ -4,6 +4,7 @@
|
|
<CaseAuditPopup
|
|
<CaseAuditPopup
|
|
v-show="auditPopupShow"
|
|
v-show="auditPopupShow"
|
|
:tableObj="auditRefTableObj"
|
|
:tableObj="auditRefTableObj"
|
|
|
|
+ :defaultStatus="defaultStatus"
|
|
ref="auditRef"
|
|
ref="auditRef"
|
|
/>
|
|
/>
|
|
<!-- 通用地图属性弹窗 -- 无审计功能 -->
|
|
<!-- 通用地图属性弹窗 -- 无审计功能 -->
|
|
@@ -64,6 +65,7 @@ export default {
|
|
图层构成: "--",
|
|
图层构成: "--",
|
|
性质: "--",
|
|
性质: "--",
|
|
},
|
|
},
|
|
|
|
+ defaultStatus: "未标记",
|
|
};
|
|
};
|
|
},
|
|
},
|
|
created() {},
|
|
created() {},
|
|
@@ -164,6 +166,10 @@ export default {
|
|
},
|
|
},
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ // 添加tiledMapLayer图层
|
|
|
|
+ addTiledMapLayer(url){
|
|
|
|
+
|
|
|
|
+ },
|
|
// 开始标记疑点事件
|
|
// 开始标记疑点事件
|
|
startLabelCase() {
|
|
startLabelCase() {
|
|
map2DViewer.setDrawTool({ action: "start" });
|
|
map2DViewer.setDrawTool({ action: "start" });
|
|
@@ -232,8 +238,9 @@ export default {
|
|
* @str
|
|
* @str
|
|
* @properties
|
|
* @properties
|
|
* @sourceType
|
|
* @sourceType
|
|
|
|
+ * @defaultStatus
|
|
*/
|
|
*/
|
|
- createAuditDiv(str, geojsonData, sourceType) {
|
|
|
|
|
|
+ createAuditDiv(str, geojsonData, sourceType, defaultStatus) {
|
|
// 根据ref获取组件的dom元素
|
|
// 根据ref获取组件的dom元素
|
|
this.currentHtml = this.$refs.auditRef.$el.innerHTML;
|
|
this.currentHtml = this.$refs.auditRef.$el.innerHTML;
|
|
if (this.currentHtml) {
|
|
if (this.currentHtml) {
|
|
@@ -265,6 +272,13 @@ export default {
|
|
$(`#${str}_id .center-table-item-special select`).val(
|
|
$(`#${str}_id .center-table-item-special select`).val(
|
|
this.caseStatusMap.get(str)
|
|
this.caseStatusMap.get(str)
|
|
);
|
|
);
|
|
|
|
+ let inputStatus = "";
|
|
|
|
+ if (
|
|
|
|
+ this.caseStatusMap.has(str) &&
|
|
|
|
+ this.caseStatusMap.get(str) === "isTrue"
|
|
|
|
+ ) {
|
|
|
|
+ $(`#${str}_id .center-table-item-special input`).val("疑点");
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -492,8 +506,6 @@ export default {
|
|
},
|
|
},
|
|
// 疑点审计
|
|
// 疑点审计
|
|
caseAuditEvent() {
|
|
caseAuditEvent() {
|
|
- console.log("当前预设模型图层数");
|
|
|
|
-
|
|
|
|
if (this.currentHtml && this.currentCid) {
|
|
if (this.currentHtml && this.currentCid) {
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
this.popup.setContent(
|
|
this.popup.setContent(
|
|
@@ -556,7 +568,7 @@ export default {
|
|
|
|
|
|
mapInit: function () {
|
|
mapInit: function () {
|
|
// 遥感影像图层crs
|
|
// 遥感影像图层crs
|
|
- systemConfig.imageryLayer.crs = new L.Proj.CRS(
|
|
|
|
|
|
+ let crs = new L.Proj.CRS(
|
|
"EPSG:0986",
|
|
"EPSG:0986",
|
|
"+proj=tmerc +lat_0=0 +lon_0=121.2751921 +k=1 +x_0=0 +y_0=-3457147.81 +ellps=krass +units=m +no_defs",
|
|
"+proj=tmerc +lat_0=0 +lon_0=121.2751921 +k=1 +x_0=0 +y_0=-3457147.81 +ellps=krass +units=m +no_defs",
|
|
{
|
|
{
|
|
@@ -566,20 +578,8 @@ export default {
|
|
}
|
|
}
|
|
);
|
|
);
|
|
|
|
|
|
- // 宝石蓝底图crs
|
|
|
|
- systemConfig.blueBlackMap.crs = new L.Proj.CRS(
|
|
|
|
- "EPSG:0986",
|
|
|
|
- "+proj=tmerc +lat_0=0 +lon_0=121.2751921 +k=1 +x_0=0 +y_0=-3457147.81 +ellps=krass +units=m +no_defs",
|
|
|
|
- {
|
|
|
|
- resolutions: systemConfig.blueBlackMap.resolutions,
|
|
|
|
-
|
|
|
|
- origin: [-66000, 75000],
|
|
|
|
- bounds: L.bounds([-65000, -76000], [75000, 72000]),
|
|
|
|
- }
|
|
|
|
- );
|
|
|
|
-
|
|
|
|
map2DViewer.map = L.map("map2DViewer", {
|
|
map2DViewer.map = L.map("map2DViewer", {
|
|
- crs: systemConfig.imageryLayer.crs,
|
|
|
|
|
|
+ crs: crs,
|
|
zoom: 0,
|
|
zoom: 0,
|
|
minZoom: systemConfig.imageryLayer.minZoom,
|
|
minZoom: systemConfig.imageryLayer.minZoom,
|
|
maxZoom: systemConfig.imageryLayer.maxZoom,
|
|
maxZoom: systemConfig.imageryLayer.maxZoom,
|
|
@@ -603,16 +603,12 @@ export default {
|
|
let imageryLayer = L.esri.tiledMapLayer({
|
|
let imageryLayer = L.esri.tiledMapLayer({
|
|
tileSize: 512,
|
|
tileSize: 512,
|
|
url: systemConfig.imageryLayer.url,
|
|
url: systemConfig.imageryLayer.url,
|
|
|
|
+ minZoom: 0,
|
|
|
|
+ minNativeZoom: 1,
|
|
maxNativeZoom: 7,
|
|
maxNativeZoom: 7,
|
|
|
|
+ maxZoom: 18,
|
|
});
|
|
});
|
|
map2DViewer.layers["imagery"] = imageryLayer;
|
|
map2DViewer.layers["imagery"] = imageryLayer;
|
|
- // 加载遥感影像sat-2018s2
|
|
|
|
- // let imageryLayer2 = L.esri.tiledMapLayer({
|
|
|
|
- // tileSize: 512,
|
|
|
|
- // url: systemConfig.imageryLayerSat2018s2.url,
|
|
|
|
- // maxNativeZoom:7
|
|
|
|
- // });
|
|
|
|
- // map2DViewer.layers["imagery2"] = imageryLayer2;
|
|
|
|
},
|
|
},
|
|
// 传入街道参数,重新渲染区域图层
|
|
// 传入街道参数,重新渲染区域图层
|
|
getJSonDataToStreet(url, param) {
|
|
getJSonDataToStreet(url, param) {
|
|
@@ -773,8 +769,17 @@ export default {
|
|
* @uniqueId label_columnId
|
|
* @uniqueId label_columnId
|
|
* @mainType 所有图层/预设模型
|
|
* @mainType 所有图层/预设模型
|
|
* @sourceType 土地资源/林地资源/生态资源/水资源/全部
|
|
* @sourceType 土地资源/林地资源/生态资源/水资源/全部
|
|
|
|
+ * @defaultStatus 当前疑点图斑的状态 -- 未标记,疑点,非疑点
|
|
*/
|
|
*/
|
|
- addSinglePolygon(geometry, cid, color, uniqueId, mainType, sourceType) {
|
|
|
|
|
|
+ addSinglePolygon(
|
|
|
|
+ geometry,
|
|
|
|
+ cid,
|
|
|
|
+ color,
|
|
|
|
+ uniqueId,
|
|
|
|
+ mainType,
|
|
|
|
+ sourceType,
|
|
|
|
+ defaultStatus
|
|
|
|
+ ) {
|
|
let uniqueIdList = [];
|
|
let uniqueIdList = [];
|
|
if (this.$store.state.selectSelectDataMap["singlePolygon"][uniqueId]) {
|
|
if (this.$store.state.selectSelectDataMap["singlePolygon"][uniqueId]) {
|
|
uniqueIdList =
|
|
uniqueIdList =
|
|
@@ -817,11 +822,27 @@ export default {
|
|
图层构成: geoProperties["图层构成"] || "--",
|
|
图层构成: geoProperties["图层构成"] || "--",
|
|
性质: geoProperties["性质"] || "--",
|
|
性质: geoProperties["性质"] || "--",
|
|
};
|
|
};
|
|
|
|
+ if (defaultStatus === false) {
|
|
|
|
+ this.defaultStatus = "未标记";
|
|
|
|
+ }
|
|
|
|
+ if (defaultStatus === true) {
|
|
|
|
+ this.defaultStatus = "疑点";
|
|
|
|
+ }
|
|
|
|
+ if (defaultStatus === null) {
|
|
|
|
+ this.defaultStatus = "非疑点";
|
|
|
|
+ }
|
|
|
|
+ console.log(defaultStatus, "defaultStatus");
|
|
|
|
+ this.defaultStatus = defaultStatus;
|
|
this.$refs.auditRef.$nextTick(() => {
|
|
this.$refs.auditRef.$nextTick(() => {
|
|
this.currentCid = cid;
|
|
this.currentCid = cid;
|
|
this.currentProperties = geojsonData;
|
|
this.currentProperties = geojsonData;
|
|
this.currentSourceType = sourceType;
|
|
this.currentSourceType = sourceType;
|
|
- let domItem = this.createAuditDiv(cid, geojsonData, sourceType);
|
|
|
|
|
|
+ let domItem = this.createAuditDiv(
|
|
|
|
+ cid,
|
|
|
|
+ geojsonData,
|
|
|
|
+ sourceType,
|
|
|
|
+ defaultStatus
|
|
|
|
+ );
|
|
this.auditPopupShow = true;
|
|
this.auditPopupShow = true;
|
|
this.popup = L.popup({ maxWidth: 700, maxHeight: 600 })
|
|
this.popup = L.popup({ maxWidth: 700, maxHeight: 600 })
|
|
.setLatLng(e.latlng)
|
|
.setLatLng(e.latlng)
|
|
@@ -881,34 +902,7 @@ export default {
|
|
}
|
|
}
|
|
});
|
|
});
|
|
},
|
|
},
|
|
- // 综合分析 - 图层绘制面
|
|
|
|
- // addPolygonLayer(data, cid, color) {
|
|
|
|
- // data.map(feature => {
|
|
|
|
- // let polygonData = JSON.parse(JSON.stringify(feature));
|
|
|
|
- // let coordinates = polygonData.geometry.coordinates[0];
|
|
|
|
- // let infos = polygonData.properties;
|
|
|
|
- // let polygon = L.polygon(coordinates, {
|
|
|
|
- // color: color,
|
|
|
|
- // weight: 3,
|
|
|
|
- // fillColor: color,
|
|
|
|
- // opacity: 1,
|
|
|
|
- // fillOpacity: 0.4
|
|
|
|
- // }).addTo(map2DViewer.map);
|
|
|
|
- // map2DViewer.polygons[`${cid}_layer`].push(polygon);
|
|
|
|
- // polygon.infos = infos;
|
|
|
|
- // polygon.on("click", e => {
|
|
|
|
- // // console.log(e, "polygon");
|
|
|
|
- // this.auditPopupShow = true;
|
|
|
|
- // // console.log(e.latlng, "获取当前弹窗坐标111");
|
|
|
|
|
|
|
|
- // this.popup = L.popup({ maxWidth: 700, maxHeight: 600 }).setLatLng(e.latlng).setContent(this.createAuditDiv(cid));
|
|
|
|
- // // .openOn(map2DViewer.map);
|
|
|
|
- // this.auditPopupShow = false;
|
|
|
|
- // this.popup.openOn(map2DViewer.map);
|
|
|
|
- // this.currentCid = cid;
|
|
|
|
- // });
|
|
|
|
- // });
|
|
|
|
- // },
|
|
|
|
deleteSinglePolygon(polygon) {
|
|
deleteSinglePolygon(polygon) {
|
|
map2DViewer.map.removeLayer(polygon);
|
|
map2DViewer.map.removeLayer(polygon);
|
|
},
|
|
},
|