46b8688f by 杨威

构筑物删除

1 parent 73058327
...@@ -171,7 +171,7 @@ export default { ...@@ -171,7 +171,7 @@ export default {
171 }, 171 },
172 // 右键点击事件 172 // 右键点击事件
173 openMenu(e, item,list) { 173 openMenu(e, item,list) {
174 console.log(list,'右键list'); 174 console.log(item,'右键list');
175 this.$emit("changeTop", e.pageY); 175 this.$emit("changeTop", e.pageY);
176 this.$emit("changeLeft", e.pageX); 176 this.$emit("changeLeft", e.pageX);
177 this.$emit("changeZdData",item); 177 this.$emit("changeZdData",item);
...@@ -200,7 +200,9 @@ export default { ...@@ -200,7 +200,9 @@ export default {
200 case 'ljz': 200 case 'ljz':
201 this.$emit("changeLpbVisible", true); 201 this.$emit("changeLpbVisible", true);
202 break; 202 break;
203 203 case 'gzw':
204 this.$emit("changeGzwVisible", true);
205 break;
204 default: 206 default:
205 break; 207 break;
206 } 208 }
......
...@@ -45,6 +45,7 @@ ...@@ -45,6 +45,7 @@
45 @changeIsZD="changeIsZD" 45 @changeIsZD="changeIsZD"
46 @changeCreateVisible="changeCreateVisible" 46 @changeCreateVisible="changeCreateVisible"
47 @changeDzVisible="changeDzVisible" 47 @changeDzVisible="changeDzVisible"
48 @changeGzwVisible="changeGzwVisible"
48 :list="item.children" 49 :list="item.children"
49 :visible="visible" 50 :visible="visible"
50 :size="size" 51 :size="size"
...@@ -92,6 +93,14 @@ ...@@ -92,6 +93,14 @@
92 > 93 >
93 <li @click="openCreateDialog">新建宗地</li> 94 <li @click="openCreateDialog">新建宗地</li>
94 </ul> 95 </ul>
96 <!-- 构筑物删除 -->
97 <ul
98 v-show="gzwVisible"
99 :style="{ left: left + 'px', top: top + 'px' }"
100 class="contextmenu"
101 >
102 <li @click="deleteByBsm">删除</li>
103 </ul>
95 <ul 104 <ul
96 v-show="lpbvisible" 105 v-show="lpbvisible"
97 :style="{ left: lpbleft + 'px', top: lpbtop + 'px' }" 106 :style="{ left: lpbleft + 'px', top: lpbtop + 'px' }"
...@@ -171,6 +180,8 @@ export default { ...@@ -171,6 +180,8 @@ export default {
171 zdQszt:null, 180 zdQszt:null,
172 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]]", 181 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]]",
173 createZrz:false, 182 createZrz:false,
183 //构筑物
184 gzwVisible:false
174 }; 185 };
175 }, 186 },
176 watch: { 187 watch: {
...@@ -264,7 +275,11 @@ export default { ...@@ -264,7 +275,11 @@ export default {
264 }, 275 },
265 //多幢 276 //多幢
266 changeDzVisible(data){ 277 changeDzVisible(data){
267 this.dzVisible = data 278 this.dzVisible = data;
279 },
280 //构筑物
281 changeGzwVisible(data){
282 this.gzwVisible = data;
268 }, 283 },
269 //添加定着物 284 //添加定着物
270 openCreateDialog(type){ 285 openCreateDialog(type){
...@@ -388,6 +403,9 @@ export default { ...@@ -388,6 +403,9 @@ export default {
388 case 'zrz': 403 case 'zrz':
389 name = '自然幢' 404 name = '自然幢'
390 break; 405 break;
406 case 'gzw':
407 name = '构筑物'
408 break;
391 409
392 default: 410 default:
393 break; 411 break;
...@@ -640,10 +658,10 @@ export default { ...@@ -640,10 +658,10 @@ export default {
640 }, 658 },
641 659
642 //关闭图形弹框 660 //关闭图形弹框
643 closeImportDialog(){ 661 closeImportDialog(){
644 this.improtDialog = false; 662 this.improtDialog = false;
645 this.clearOverLayer(); 663 this.clearOverLayer();
646 } 664 }
647 665
648 }, 666 },
649 }; 667 };
......