46b8688f by 杨威

构筑物删除

1 parent 73058327
......@@ -171,7 +171,7 @@ export default {
},
// 右键点击事件
openMenu(e, item,list) {
console.log(list,'右键list');
console.log(item,'右键list');
this.$emit("changeTop", e.pageY);
this.$emit("changeLeft", e.pageX);
this.$emit("changeZdData",item);
......@@ -200,7 +200,9 @@ export default {
case 'ljz':
this.$emit("changeLpbVisible", true);
break;
case 'gzw':
this.$emit("changeGzwVisible", true);
break;
default:
break;
}
......
......@@ -45,6 +45,7 @@
@changeIsZD="changeIsZD"
@changeCreateVisible="changeCreateVisible"
@changeDzVisible="changeDzVisible"
@changeGzwVisible="changeGzwVisible"
:list="item.children"
:visible="visible"
:size="size"
......@@ -92,6 +93,14 @@
>
<li @click="openCreateDialog">新建宗地</li>
</ul>
<!-- 构筑物删除 -->
<ul
v-show="gzwVisible"
:style="{ left: left + 'px', top: top + 'px' }"
class="contextmenu"
>
<li @click="deleteByBsm">删除</li>
</ul>
<ul
v-show="lpbvisible"
:style="{ left: lpbleft + 'px', top: lpbtop + 'px' }"
......@@ -171,6 +180,8 @@ export default {
zdQszt:null,
wkt:"PROJCS[\"XADFZBX\",GEOGCS[\"GCS_WGS_1984\",DATUM[\"D_WGS_1984\",SPHEROID[\"WGS_1984\",6378137.0,298.257223563]],PRIMEM[\"Greenwich\",0.0],UNIT[\"Degree\",0.0174532925199433]],PROJECTION[\"Transverse_Mercator\"],PARAMETER[\"False_Easting\",0.0],PARAMETER[\"False_Northing\",0.0],PARAMETER[\"Central_Meridian\",0.0],PARAMETER[\"Scale_Factor\",1.0],PARAMETER[\"Latitude_Of_Origin\",0.0],UNIT[\"Meter\",1.0]]",
createZrz:false,
//构筑物
gzwVisible:false
};
},
watch: {
......@@ -264,7 +275,11 @@ export default {
},
//多幢
changeDzVisible(data){
this.dzVisible = data
this.dzVisible = data;
},
//构筑物
changeGzwVisible(data){
this.gzwVisible = data;
},
//添加定着物
openCreateDialog(type){
......@@ -388,6 +403,9 @@ export default {
case 'zrz':
name = '自然幢'
break;
case 'gzw':
name = '构筑物'
break;
default:
break;
......@@ -640,10 +658,10 @@ export default {
},
//关闭图形弹框
closeImportDialog(){
this.improtDialog = false;
this.clearOverLayer();
}
closeImportDialog(){
this.improtDialog = false;
this.clearOverLayer();
}
},
};
......