Merge branch 'master' of http://yun.pashanhoo.com:9090/renchao/CadastralSystem
Showing
1 changed file
with
49 additions
and
22 deletions
... | @@ -159,6 +159,7 @@ | ... | @@ -159,6 +159,7 @@ |
159 | </div> | 159 | </div> |
160 | <div class="xz-sidebar"> | 160 | <div class="xz-sidebar"> |
161 | <el-tree :data="zrzData" :props="defaultProps" @node-click="handleNodeClick" | 161 | <el-tree :data="zrzData" :props="defaultProps" @node-click="handleNodeClick" |
162 | node-key="id" | ||
162 | :default-expand-all="true"></el-tree> | 163 | :default-expand-all="true"></el-tree> |
163 | </div> | 164 | </div> |
164 | </div> | 165 | </div> |
... | @@ -470,7 +471,7 @@ | ... | @@ -470,7 +471,7 @@ |
470 | :visible.sync="isopenXz" | 471 | :visible.sync="isopenXz" |
471 | :modal-append-to-body="false" | 472 | :modal-append-to-body="false" |
472 | width="50%" | 473 | width="50%" |
473 | center> | 474 | > |
474 | <div class="xz-container"> | 475 | <div class="xz-container"> |
475 | <div class="xz-main"> | 476 | <div class="xz-main"> |
476 | <table border="1"> | 477 | <table border="1"> |
... | @@ -547,38 +548,38 @@ | ... | @@ -547,38 +548,38 @@ |
547 | label: 'label' | 548 | label: 'label' |
548 | }, | 549 | }, |
549 | zrzData: [{ | 550 | zrzData: [{ |
551 | id: 1, | ||
550 | label: '一级 1', | 552 | label: '一级 1', |
551 | children: [{ | 553 | children: [{ |
554 | id: 4, | ||
552 | label: '二级 1-1', | 555 | label: '二级 1-1', |
553 | children: [{ | 556 | children: [{ |
557 | id: 9, | ||
554 | label: '三级 1-1-1' | 558 | label: '三级 1-1-1' |
559 | }, { | ||
560 | id: 10, | ||
561 | label: '三级 1-1-2' | ||
555 | }] | 562 | }] |
556 | }] | 563 | }] |
557 | }, { | 564 | }, { |
565 | id: 2, | ||
558 | label: '一级 2', | 566 | label: '一级 2', |
559 | children: [{ | 567 | children: [{ |
560 | label: '二级 2-1', | 568 | id: 5, |
561 | children: [{ | 569 | label: '二级 2-1' |
562 | label: '三级 2-1-1' | ||
563 | }] | ||
564 | }, { | 570 | }, { |
565 | label: '二级 2-2', | 571 | id: 6, |
566 | children: [{ | 572 | label: '二级 2-2' |
567 | label: '三级 2-2-1' | ||
568 | }] | ||
569 | }] | 573 | }] |
570 | }, { | 574 | }, { |
575 | id: 3, | ||
571 | label: '一级 3', | 576 | label: '一级 3', |
572 | children: [{ | 577 | children: [{ |
573 | label: '二级 3-1', | 578 | id: 7, |
574 | children: [{ | 579 | label: '二级 3-1' |
575 | label: '三级 3-1-1' | ||
576 | }] | ||
577 | }, { | 580 | }, { |
578 | label: '二级 3-2', | 581 | id: 8, |
579 | children: [{ | 582 | label: '二级 3-2' |
580 | label: '三级 3-2-1' | ||
581 | }] | ||
582 | }] | 583 | }] |
583 | }], | 584 | }], |
584 | ztypes: [ | 585 | ztypes: [ |
... | @@ -628,9 +629,34 @@ | ... | @@ -628,9 +629,34 @@ |
628 | this.getzdtzm(); | 629 | this.getzdtzm(); |
629 | }, | 630 | }, |
630 | methods: { | 631 | methods: { |
631 | handleNodeClick(data) { | 632 | handleNodeClick(node) { |
632 | console.log(data); | 633 | console.log(node, 'node'); |
634 | console.log(node.parent, 'node.parent') | ||
635 | console.log(node.children, 'node.children') | ||
636 | this.fghData.newZdlist[this.selectIndex].fwlist.push({ | ||
637 | zbsm: node.label, | ||
638 | ztype: '多幢' | ||
639 | } | ||
640 | ); | ||
641 | }, | ||
642 | /** | ||
643 | * 删除节点 | ||
644 | * | ||
645 | */ | ||
646 | delNode(node, data) { | ||
647 | |||
633 | }, | 648 | }, |
649 | /** | ||
650 | * 添加节点 | ||
651 | * | ||
652 | */ | ||
653 | addNode(data) { | ||
654 | |||
655 | }, | ||
656 | /** | ||
657 | * 选择幢信息 | ||
658 | * @param index 当前选中行 | ||
659 | */ | ||
634 | xzzrz(index) { | 660 | xzzrz(index) { |
635 | this.isopenXz = true | 661 | this.isopenXz = true |
636 | this.selectIndex = index | 662 | this.selectIndex = index |
... | @@ -724,7 +750,7 @@ | ... | @@ -724,7 +750,7 @@ |
724 | }); | 750 | }); |
725 | this.changeXzq(this.checkedData.xzqbsm) | 751 | this.changeXzq(this.checkedData.xzqbsm) |
726 | this.changeDjq(this.checkedData.djqbsm) | 752 | this.changeDjq(this.checkedData.djqbsm) |
727 | this.$set(this.fghData.newZdlist,this.fghData.newZdlist.length - 1, JSON.parse(JSON.stringify(this.checkedData))) | 753 | this.$set(this.fghData.newZdlist, this.fghData.newZdlist.length - 1, JSON.parse(JSON.stringify(this.checkedData))) |
728 | }, | 754 | }, |
729 | delRow(index) { | 755 | delRow(index) { |
730 | this.fghData.newZdlist.splice(index, 1) | 756 | this.fghData.newZdlist.splice(index, 1) |
... | @@ -763,9 +789,10 @@ | ... | @@ -763,9 +789,10 @@ |
763 | } | 789 | } |
764 | </script> | 790 | </script> |
765 | <style scoped lang="less"> | 791 | <style scoped lang="less"> |
766 | .v-model{ | 792 | .v-model { |
767 | z-index: 99!important; | 793 | z-index: 99 !important; |
768 | } | 794 | } |
795 | |||
769 | .main { | 796 | .main { |
770 | box-sizing: border-box; | 797 | box-sizing: border-box; |
771 | padding: 18px; | 798 | padding: 18px; | ... | ... |
-
Please register or sign in to post a comment