Merge remote-tracking branch 'origin/master'
Showing
3 changed files
with
141 additions
and
11 deletions
... | @@ -84,7 +84,7 @@ | ... | @@ -84,7 +84,7 @@ |
84 | <div class="lpb-content" ref="lpbContentWrap" :style="{ height: lpbContentHeight + 'px' }"> | 84 | <div class="lpb-content" ref="lpbContentWrap" :style="{ height: lpbContentHeight + 'px' }"> |
85 | <!-- 楼盘表主体 --> | 85 | <!-- 楼盘表主体 --> |
86 | <div class="lp-overview" :style="{ width: lpbContentwidth + 'px' }"> | 86 | <div class="lp-overview" :style="{ width: lpbContentwidth + 'px' }"> |
87 | <lpbContent ref="lpbContent"></lpbContent> | 87 | <lpbContent ref="lpbContent" :zrzbsm='zrzbsm' :isHbfg = true></lpbContent> |
88 | </div> | 88 | </div> |
89 | <!-- 右侧图例 --> | 89 | <!-- 右侧图例 --> |
90 | <div class="lp-legend"> | 90 | <div class="lp-legend"> |
... | @@ -211,6 +211,7 @@ | ... | @@ -211,6 +211,7 @@ |
211 | 211 | ||
212 | <script> | 212 | <script> |
213 | import lpbContent from "../../../zrz/lpb/bjlp/lpbContent/index"; | 213 | import lpbContent from "../../../zrz/lpb/bjlp/lpbContent/index"; |
214 | import { getLpbMenuTree, batchScYcChange, getLpbTj,batchGeneratorBdcdyh,getLpbFwytAndQlxz ,batchCommit} from "@api/lpb"; | ||
214 | export default { | 215 | export default { |
215 | name:"", | 216 | name:"", |
216 | components:{lpbContent}, | 217 | components:{lpbContent}, |
... | @@ -312,6 +313,7 @@ export default { | ... | @@ -312,6 +313,7 @@ export default { |
312 | xmmc:'测试自然幢', | 313 | xmmc:'测试自然幢', |
313 | bdcqzh:'A12111111111111111', | 314 | bdcqzh:'A12111111111111111', |
314 | dylx:'zrz', | 315 | dylx:'zrz', |
316 | zrzbsm:'18cea8b4438ebf838ac86f4ceff90a6b' | ||
315 | } | 317 | } |
316 | ] | 318 | ] |
317 | }, | 319 | }, |
... | @@ -329,6 +331,7 @@ export default { | ... | @@ -329,6 +331,7 @@ export default { |
329 | //办理 | 331 | //办理 |
330 | handleClick(row){ | 332 | handleClick(row){ |
331 | this.isSearch = false; | 333 | this.isSearch = false; |
334 | this.zrzbsm = row.zrzbsm; | ||
332 | }, | 335 | }, |
333 | //分页 | 336 | //分页 |
334 | handleCurrentChange(val) { | 337 | handleCurrentChange(val) { |
... | @@ -363,6 +366,89 @@ export default { | ... | @@ -363,6 +366,89 @@ export default { |
363 | legendToggle() { | 366 | legendToggle() { |
364 | this.legendToggleFlag = !this.legendToggleFlag; | 367 | this.legendToggleFlag = !this.legendToggleFlag; |
365 | }, | 368 | }, |
369 | //获取各项单元状态统计数据 | ||
370 | getDyztBsmList() { | ||
371 | let data = { | ||
372 | zrzbsm: this.$store.state.zrzbsm, | ||
373 | scyclx: this.scyclx, | ||
374 | }; | ||
375 | getLpbTj(data).then((res) => { | ||
376 | if (res.code === 200) { | ||
377 | this.dyztList = res.result; | ||
378 | this.dyztList.splice(1,0,this.dyztList[8]); | ||
379 | this.dyztList.pop(); | ||
380 | this.dyztList.forEach(item=>{ | ||
381 | item.ts = item.bsms.length; | ||
382 | switch (item.name) { | ||
383 | case 'Qqzt': | ||
384 | item.color = "#6EDEE1"; | ||
385 | item.name = "已确权" | ||
386 | break; | ||
387 | case 'Wqqzt': | ||
388 | item.color = "#83AAFE"; | ||
389 | item.name = "未确权" | ||
390 | break; | ||
391 | case 'Bazt': | ||
392 | item.color = "#8ADC88"; | ||
393 | item.name = "已备案" | ||
394 | break; | ||
395 | case 'Ydyzt': | ||
396 | item.color = "#F2AD67"; | ||
397 | item.name = "预抵押" | ||
398 | break; | ||
399 | case 'Zjgcdyzt': | ||
400 | item.color = "#F191C8"; | ||
401 | item.name = "在建抵押" | ||
402 | break; | ||
403 | case 'Dyzt': | ||
404 | item.color = "#FF8282"; | ||
405 | item.name = "抵押" | ||
406 | break; | ||
407 | case 'Cfzt': | ||
408 | item.color = "#D7CECF"; | ||
409 | item.name = "查封" | ||
410 | break; | ||
411 | case 'Yyzt': | ||
412 | item.color = "#D4A3EB"; | ||
413 | item.name = "异议" | ||
414 | break; | ||
415 | case 'Xzzt': | ||
416 | item.color = "#A5A3FB"; | ||
417 | item.name = "限制" | ||
418 | break; | ||
419 | default: | ||
420 | break; | ||
421 | } | ||
422 | }) | ||
423 | } | ||
424 | }); | ||
425 | }, | ||
426 | // 获取房屋用途和房屋性质统计数据 | ||
427 | getLpbFwytAndQlxz(){ | ||
428 | let data = { | ||
429 | zrzbsm: this.$store.state.zrzbsm, | ||
430 | scyclx: this.scyclx, | ||
431 | }; | ||
432 | getLpbFwytAndQlxz(data).then((res) => { | ||
433 | if (res.code === 200) { | ||
434 | // this.fwytList = res.result | ||
435 | this.fwytList = res.result.fwyt; | ||
436 | this.fwxzList = res.result.qlxz; | ||
437 | if(this.fwytList.length>0){ | ||
438 | this.fwytList.forEach(item=>{ | ||
439 | item.color = "#2591FD"; | ||
440 | item.ts = item.bsms.length | ||
441 | }) | ||
442 | } | ||
443 | if(this.fwxzList.length>0){ | ||
444 | this.fwxzList.forEach(item=>{ | ||
445 | item.color = "#2591FD"; | ||
446 | item.ts = item.bsms.length | ||
447 | }) | ||
448 | } | ||
449 | } | ||
450 | }); | ||
451 | } | ||
366 | }, | 452 | }, |
367 | computed: {}, | 453 | computed: {}, |
368 | watch: { | 454 | watch: { |
... | @@ -374,6 +460,17 @@ export default { | ... | @@ -374,6 +460,17 @@ export default { |
374 | this.lpbContentwidth += 204; | 460 | this.lpbContentwidth += 204; |
375 | } | 461 | } |
376 | }, | 462 | }, |
463 | //选择自然幢展示楼盘表后,查询右侧图例数据 | ||
464 | isSearch(n){ | ||
465 | if (!n) { | ||
466 | this.getDyztBsmList(); | ||
467 | this.getLpbFwytAndQlxz(); | ||
468 | } | ||
469 | }, | ||
470 | //改变syclx,更新楼盘表数据 | ||
471 | scyclx(n){ | ||
472 | this.$refs.lpbContent.lpbData = n == 0 ? this.$refs.lpbContent.yclpbData : this.$refs.lpbContent.sclpbData | ||
473 | } | ||
377 | }, | 474 | }, |
378 | } | 475 | } |
379 | </script> | 476 | </script> | ... | ... |
... | @@ -97,7 +97,7 @@ | ... | @@ -97,7 +97,7 @@ |
97 | </div> | 97 | </div> |
98 | <!-- 楼盘表主体 --> | 98 | <!-- 楼盘表主体 --> |
99 | <div class="lp-overview" :style="{ width: lpbContentwidth + 'px' }"> | 99 | <div class="lp-overview" :style="{ width: lpbContentwidth + 'px' }"> |
100 | <lpbContent ref="lpbContent" :key="time"></lpbContent> | 100 | <lpbContent ref="lpbContent" :zrzbsm="$route.query.bsm" :key="time"></lpbContent> |
101 | </div> | 101 | </div> |
102 | <!-- 右侧图例 --> | 102 | <!-- 右侧图例 --> |
103 | <div class="lp-legend"> | 103 | <div class="lp-legend"> | ... | ... |
... | @@ -133,7 +133,9 @@ | ... | @@ -133,7 +133,9 @@ |
133 | 133 | ||
134 | <!-- 逻辑幢名称 --> | 134 | <!-- 逻辑幢名称 --> |
135 | <div class="ljz-name name"> | 135 | <div class="ljz-name name"> |
136 | <p> | ||
136 | {{ ljzs.ljzmc }} | 137 | {{ ljzs.ljzmc }} |
138 | </p> | ||
137 | </div> | 139 | </div> |
138 | </div> | 140 | </div> |
139 | </div> | 141 | </div> |
... | @@ -303,7 +305,16 @@ import { getLpb, insertUpDownC, deleteCByBsm } from "../../../../../api/lpb"; | ... | @@ -303,7 +305,16 @@ import { getLpb, insertUpDownC, deleteCByBsm } from "../../../../../api/lpb"; |
303 | export default { | 305 | export default { |
304 | name: "", | 306 | name: "", |
305 | components: { moveH }, | 307 | components: { moveH }, |
306 | props: {}, | 308 | props: { |
309 | isHbfg:{ | ||
310 | type:Boolean, | ||
311 | default:false | ||
312 | }, | ||
313 | zrzbsm:{ | ||
314 | type:String, | ||
315 | default:'' | ||
316 | } | ||
317 | }, | ||
307 | data() { | 318 | data() { |
308 | return { | 319 | return { |
309 | moveHvisible: false, | 320 | moveHvisible: false, |
... | @@ -344,13 +355,13 @@ export default { | ... | @@ -344,13 +355,13 @@ export default { |
344 | }, | 355 | }, |
345 | formLabelWidth: "120px", | 356 | formLabelWidth: "120px", |
346 | yclpbData:{}, | 357 | yclpbData:{}, |
347 | sclpbData:{} | 358 | sclpbData:{}, |
348 | }; | 359 | }; |
349 | }, | 360 | }, |
350 | created() {}, | 361 | created() {}, |
351 | mounted() { | 362 | mounted() { |
352 | this.getLpb(this.$store.state.zrzbsm, "0"); | 363 | this.getLpb(this.zrzbsm, "0"); |
353 | this.getLpb(this.$store.state.zrzbsm, "1"); | 364 | this.getLpb(this.zrzbsm, "1"); |
354 | setTimeout(() => { | 365 | setTimeout(() => { |
355 | //tab-content宽度 - 右侧图例宽度 - lp-overview滚动条宽度 - lpbContent的pandingRight | 366 | //tab-content宽度 - 右侧图例宽度 - lp-overview滚动条宽度 - lpbContent的pandingRight |
356 | this.lpbContentWidth = this.$store.state.contentWidth - 34 - 20; | 367 | this.lpbContentWidth = this.$store.state.contentWidth - 34 - 20; |
... | @@ -510,8 +521,12 @@ export default { | ... | @@ -510,8 +521,12 @@ export default { |
510 | //户双击事件 | 521 | //户双击事件 |
511 | dbclick(bsm) { | 522 | dbclick(bsm) { |
512 | clearTimeout(this.time); | 523 | clearTimeout(this.time); |
524 | if (this.isHbfg) { | ||
525 | |||
526 | }else{ | ||
513 | // this.hbsmList.push(bsm); // 将户bsm放进hbsmList | 527 | // this.hbsmList.push(bsm); // 将户bsm放进hbsmList |
514 | this.$parent.getHbsm(bsm, true); | 528 | this.$parent.getHbsm(bsm, true); |
529 | } | ||
515 | }, | 530 | }, |
516 | //删除多重数组中的某一项 | 531 | //删除多重数组中的某一项 |
517 | deleteArrOption(arr, item) { | 532 | deleteArrOption(arr, item) { |
... | @@ -536,15 +551,23 @@ export default { | ... | @@ -536,15 +551,23 @@ export default { |
536 | }, | 551 | }, |
537 | //户右键点击事件 | 552 | //户右键点击事件 |
538 | openMenu(e, item, type) { | 553 | openMenu(e, item, type) { |
554 | |||
555 | if (this.isHbfg) { | ||
556 | |||
557 | }else{ | ||
539 | console.log(e, "e"); | 558 | console.log(e, "e"); |
540 | this.lpbChLeft = e.pageX; | 559 | this.lpbChLeft = e.pageX; |
541 | this.lpbChTop = e.pageY; | 560 | this.lpbChTop = e.pageY; |
542 | this.chData = item; | 561 | this.chData = item; |
543 | this.rightClickFlag = type; | 562 | this.rightClickFlag = type; |
544 | this.lpbChVisible = true; | 563 | this.lpbChVisible = true; |
564 | } | ||
545 | }, | 565 | }, |
546 | // 层选中事件 | 566 | // 层选中事件 |
547 | handleClickC(e, item) { | 567 | handleClickC(e, item) { |
568 | if (this.isHbfg) { | ||
569 | |||
570 | }else{ | ||
548 | //判断点击的层是否选中 | 571 | //判断点击的层是否选中 |
549 | if (e.target.className.indexOf("tdSelect") == -1) { | 572 | if (e.target.className.indexOf("tdSelect") == -1) { |
550 | //未选中→选中 | 573 | //未选中→选中 |
... | @@ -556,6 +579,7 @@ export default { | ... | @@ -556,6 +579,7 @@ export default { |
556 | this.deleteArrOption(this.cbsmList, item.bsm); | 579 | this.deleteArrOption(this.cbsmList, item.bsm); |
557 | } | 580 | } |
558 | this.$parent.getCbsm(this.cbsmList); | 581 | this.$parent.getCbsm(this.cbsmList); |
582 | } | ||
559 | }, | 583 | }, |
560 | //关闭右键菜单 | 584 | //关闭右键菜单 |
561 | closeMenu() { | 585 | closeMenu() { |
... | @@ -741,7 +765,8 @@ export default { | ... | @@ -741,7 +765,8 @@ export default { |
741 | bottom: 0; | 765 | bottom: 0; |
742 | position: absolute; | 766 | position: absolute; |
743 | height: 40px; | 767 | height: 40px; |
744 | background-color: rosybrown; | 768 | // background-color: rosybrown; |
769 | border:1px solid #E6E6E6 | ||
745 | } | 770 | } |
746 | // .chTable-wrap{ | 771 | // .chTable-wrap{ |
747 | // position: absolute; | 772 | // position: absolute; |
... | @@ -765,7 +790,12 @@ export default { | ... | @@ -765,7 +790,12 @@ export default { |
765 | .ljz-name { | 790 | .ljz-name { |
766 | width: calc(100% - 32px); | 791 | width: calc(100% - 32px); |
767 | height: 40px; | 792 | height: 40px; |
768 | background-color: darkorange; | 793 | // background-color: darkorange; |
794 | p{ | ||
795 | width: 100%; | ||
796 | height: 100%; | ||
797 | border:1px solid #E6E6E6 | ||
798 | } | ||
769 | } | 799 | } |
770 | } | 800 | } |
771 | div:last-child { | 801 | div:last-child { |
... | @@ -791,7 +821,8 @@ export default { | ... | @@ -791,7 +821,8 @@ export default { |
791 | display: inline-table; | 821 | display: inline-table; |
792 | .zdy-name { | 822 | .zdy-name { |
793 | bottom: 0; | 823 | bottom: 0; |
794 | background-color: blanchedalmond; | 824 | // background-color: blanchedalmond; |
825 | border:1px solid #E6E6E6 | ||
795 | } | 826 | } |
796 | } | 827 | } |
797 | .zdy-zdy:last-child { | 828 | .zdy-zdy:last-child { |
... | @@ -801,7 +832,8 @@ export default { | ... | @@ -801,7 +832,8 @@ export default { |
801 | .zdy-name { | 832 | .zdy-name { |
802 | width: calc; | 833 | width: calc; |
803 | height: 40px; | 834 | height: 40px; |
804 | background-color: rosybrown; | 835 | // background-color: rosybrown; |
836 | border:1px solid #E6E6E6 | ||
805 | } | 837 | } |
806 | } | 838 | } |
807 | .column-reverse { | 839 | .column-reverse { |
... | @@ -876,7 +908,8 @@ export default { | ... | @@ -876,7 +908,8 @@ export default { |
876 | .zrz { | 908 | .zrz { |
877 | height: 60px; | 909 | height: 60px; |
878 | line-height: 60px; | 910 | line-height: 60px; |
879 | background-color: darkgoldenrod; | 911 | background-color: #ffffff; |
912 | border:1px solid #E6E6E6; | ||
880 | position: relative; | 913 | position: relative; |
881 | bottom: 66px; | 914 | bottom: 66px; |
882 | text-align: center; | 915 | text-align: center; | ... | ... |
-
Please register or sign in to post a comment