2f49ec6a by 杨威

判断是否户合并分割业务下的楼盘表

1 parent ed5aff1d
...@@ -303,7 +303,16 @@ import { getLpb, insertUpDownC, deleteCByBsm } from "../../../../../api/lpb"; ...@@ -303,7 +303,16 @@ import { getLpb, insertUpDownC, deleteCByBsm } from "../../../../../api/lpb";
303 export default { 303 export default {
304 name: "", 304 name: "",
305 components: { moveH }, 305 components: { moveH },
306 props: {}, 306 props: {
307 isHbfg:{
308 type:Boolean,
309 default:false
310 },
311 zrzbsm:{
312 type:String,
313 default:''
314 }
315 },
307 data() { 316 data() {
308 return { 317 return {
309 moveHvisible: false, 318 moveHvisible: false,
...@@ -344,13 +353,13 @@ export default { ...@@ -344,13 +353,13 @@ export default {
344 }, 353 },
345 formLabelWidth: "120px", 354 formLabelWidth: "120px",
346 yclpbData:{}, 355 yclpbData:{},
347 sclpbData:{} 356 sclpbData:{},
348 }; 357 };
349 }, 358 },
350 created() {}, 359 created() {},
351 mounted() { 360 mounted() {
352 this.getLpb(this.$store.state.zrzbsm, "0"); 361 this.getLpb(this.zrzbsm, "0");
353 this.getLpb(this.$store.state.zrzbsm, "1"); 362 this.getLpb(this.zrzbsm, "1");
354 setTimeout(() => { 363 setTimeout(() => {
355 //tab-content宽度 - 右侧图例宽度 - lp-overview滚动条宽度 - lpbContent的pandingRight 364 //tab-content宽度 - 右侧图例宽度 - lp-overview滚动条宽度 - lpbContent的pandingRight
356 this.lpbContentWidth = this.$store.state.contentWidth - 34 - 20; 365 this.lpbContentWidth = this.$store.state.contentWidth - 34 - 20;
...@@ -510,8 +519,12 @@ export default { ...@@ -510,8 +519,12 @@ export default {
510 //户双击事件 519 //户双击事件
511 dbclick(bsm) { 520 dbclick(bsm) {
512 clearTimeout(this.time); 521 clearTimeout(this.time);
513 // this.hbsmList.push(bsm); // 将户bsm放进hbsmList 522 if (this.isHbfg) {
514 this.$parent.getHbsm(bsm, true); 523
524 }else{
525 // this.hbsmList.push(bsm); // 将户bsm放进hbsmList
526 this.$parent.getHbsm(bsm, true);
527 }
515 }, 528 },
516 //删除多重数组中的某一项 529 //删除多重数组中的某一项
517 deleteArrOption(arr, item) { 530 deleteArrOption(arr, item) {
...@@ -536,26 +549,35 @@ export default { ...@@ -536,26 +549,35 @@ export default {
536 }, 549 },
537 //户右键点击事件 550 //户右键点击事件
538 openMenu(e, item, type) { 551 openMenu(e, item, type) {
539 console.log(e, "e"); 552
540 this.lpbChLeft = e.pageX; 553 if (this.isHbfg) {
541 this.lpbChTop = e.pageY; 554
542 this.chData = item; 555 }else{
543 this.rightClickFlag = type; 556 console.log(e, "e");
544 this.lpbChVisible = true; 557 this.lpbChLeft = e.pageX;
558 this.lpbChTop = e.pageY;
559 this.chData = item;
560 this.rightClickFlag = type;
561 this.lpbChVisible = true;
562 }
545 }, 563 },
546 // 层选中事件 564 // 层选中事件
547 handleClickC(e, item) { 565 handleClickC(e, item) {
548 //判断点击的层是否选中 566 if (this.isHbfg) {
549 if (e.target.className.indexOf("tdSelect") == -1) { 567
550 //未选中→选中 568 }else{
551 e.target.className += " tdSelect"; //加边框 569 //判断点击的层是否选中
552 this.cbsmList.push(item.bsm); // 将户bsm放进hbsmList 570 if (e.target.className.indexOf("tdSelect") == -1) {
553 } else { 571 //未选中→选中
554 //选中→未选中 572 e.target.className += " tdSelect"; //加边框
555 e.target.className = "floor"; 573 this.cbsmList.push(item.bsm); // 将户bsm放进hbsmList
556 this.deleteArrOption(this.cbsmList, item.bsm); 574 } else {
575 //选中→未选中
576 e.target.className = "floor";
577 this.deleteArrOption(this.cbsmList, item.bsm);
578 }
579 this.$parent.getCbsm(this.cbsmList);
557 } 580 }
558 this.$parent.getCbsm(this.cbsmList);
559 }, 581 },
560 //关闭右键菜单 582 //关闭右键菜单
561 closeMenu() { 583 closeMenu() {
......