判断是否户合并分割业务下的楼盘表
Showing
1 changed file
with
26 additions
and
4 deletions
... | @@ -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); |
522 | if (this.isHbfg) { | ||
523 | |||
524 | }else{ | ||
513 | // this.hbsmList.push(bsm); // 将户bsm放进hbsmList | 525 | // this.hbsmList.push(bsm); // 将户bsm放进hbsmList |
514 | this.$parent.getHbsm(bsm, true); | 526 | this.$parent.getHbsm(bsm, true); |
527 | } | ||
515 | }, | 528 | }, |
516 | //删除多重数组中的某一项 | 529 | //删除多重数组中的某一项 |
517 | deleteArrOption(arr, item) { | 530 | deleteArrOption(arr, item) { |
... | @@ -536,15 +549,23 @@ export default { | ... | @@ -536,15 +549,23 @@ export default { |
536 | }, | 549 | }, |
537 | //户右键点击事件 | 550 | //户右键点击事件 |
538 | openMenu(e, item, type) { | 551 | openMenu(e, item, type) { |
552 | |||
553 | if (this.isHbfg) { | ||
554 | |||
555 | }else{ | ||
539 | console.log(e, "e"); | 556 | console.log(e, "e"); |
540 | this.lpbChLeft = e.pageX; | 557 | this.lpbChLeft = e.pageX; |
541 | this.lpbChTop = e.pageY; | 558 | this.lpbChTop = e.pageY; |
542 | this.chData = item; | 559 | this.chData = item; |
543 | this.rightClickFlag = type; | 560 | this.rightClickFlag = type; |
544 | this.lpbChVisible = true; | 561 | this.lpbChVisible = true; |
562 | } | ||
545 | }, | 563 | }, |
546 | // 层选中事件 | 564 | // 层选中事件 |
547 | handleClickC(e, item) { | 565 | handleClickC(e, item) { |
566 | if (this.isHbfg) { | ||
567 | |||
568 | }else{ | ||
548 | //判断点击的层是否选中 | 569 | //判断点击的层是否选中 |
549 | if (e.target.className.indexOf("tdSelect") == -1) { | 570 | if (e.target.className.indexOf("tdSelect") == -1) { |
550 | //未选中→选中 | 571 | //未选中→选中 |
... | @@ -556,6 +577,7 @@ export default { | ... | @@ -556,6 +577,7 @@ export default { |
556 | this.deleteArrOption(this.cbsmList, item.bsm); | 577 | this.deleteArrOption(this.cbsmList, item.bsm); |
557 | } | 578 | } |
558 | this.$parent.getCbsm(this.cbsmList); | 579 | this.$parent.getCbsm(this.cbsmList); |
580 | } | ||
559 | }, | 581 | }, |
560 | //关闭右键菜单 | 582 | //关闭右键菜单 |
561 | closeMenu() { | 583 | closeMenu() { | ... | ... |
-
Please register or sign in to post a comment