|
@@ -1115,15 +1115,6 @@ export default {
|
|
|
this.showRightBox = true;
|
|
|
// 第一级菜单是所有图层
|
|
|
if (data.mainType === "所有图层") {
|
|
|
- this.$store.state.treeDataCollection.set(data.id, {
|
|
|
- // mainType: data.mainType,
|
|
|
- townId: data.townId,
|
|
|
- townType: data.townType,
|
|
|
- sourceId: data.sourceId,
|
|
|
- sourceType: data.sourceType,
|
|
|
- layerId: data.id,
|
|
|
- layerName: data.label,
|
|
|
- });
|
|
|
this.rightPanelTitle = data.id;
|
|
|
let searchParam = [];
|
|
|
|
|
@@ -1134,6 +1125,15 @@ export default {
|
|
|
let targetType = this.classTextToIndex["任务类型"].get(
|
|
|
data.sourceType
|
|
|
);
|
|
|
+ this.$store.state.treeDataCollection.set(data.id, {
|
|
|
+ // mainType: data.mainType,
|
|
|
+ townId: data.townId,
|
|
|
+ townType: data.townType,
|
|
|
+ sourceId: data.sourceId,
|
|
|
+ sourceType: data.sourceType,
|
|
|
+ layerId: data.id,
|
|
|
+ layerName: data.label,
|
|
|
+ });
|
|
|
|
|
|
let paramUser = {
|
|
|
field: "c_user_id",
|
|
@@ -1241,10 +1241,8 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
displayMyModelData(data) {
|
|
|
- debugger;
|
|
|
// 如果有叠置分析文件 -- 呈现叠置分析内容
|
|
|
if (data.c_dzfx_file) {
|
|
|
- debugger;
|
|
|
this.$Get(this.uploadBaseUrl + data.c_dzfx_file, "").then(
|
|
|
(response) => {
|
|
|
if (response.features.length > 0) {
|
|
@@ -1269,7 +1267,6 @@ export default {
|
|
|
this.$message.info("暂无数据!");
|
|
|
}
|
|
|
if (res.code === 200 && res.content.length > 0) {
|
|
|
- debugger;
|
|
|
console.log(res.content, "查看我的模型图层数据");
|
|
|
let uniqueId = `${data.label}_${data.id}`;
|
|
|
map2DViewer.analysisGroups[uniqueId] = L.featureGroup();
|