feat(fg,hb):分割合并
Showing
1 changed file
with
11 additions
and
8 deletions
... | @@ -530,7 +530,7 @@ | ... | @@ -530,7 +530,7 @@ |
530 | props: {}, | 530 | props: {}, |
531 | data() { | 531 | data() { |
532 | return { | 532 | return { |
533 | tabName:'zd', | 533 | tabName: 'zd', |
534 | isopenXz: false, | 534 | isopenXz: false, |
535 | centerDialogVisible: false, | 535 | centerDialogVisible: false, |
536 | selectIndex: 0,// 当前选中序号 | 536 | selectIndex: 0,// 当前选中序号 |
... | @@ -601,7 +601,7 @@ | ... | @@ -601,7 +601,7 @@ |
601 | value: "Z", | 601 | value: "Z", |
602 | } | 602 | } |
603 | ], | 603 | ], |
604 | Data: { | 604 | checkedData: { |
605 | xzqbsm: "", | 605 | xzqbsm: "", |
606 | djqbsm: "", | 606 | djqbsm: "", |
607 | djzqbsm: "", | 607 | djzqbsm: "", |
... | @@ -646,11 +646,11 @@ | ... | @@ -646,11 +646,11 @@ |
646 | }, | 646 | }, |
647 | getJbxx(id) { | 647 | getJbxx(id) { |
648 | getQjZdjbxxDetailById(id).then(res => { | 648 | getQjZdjbxxDetailById(id).then(res => { |
649 | this.Data = res.result | 649 | this.checkedData = res.result |
650 | // 用户bsm暂时传空 | 650 | // 用户bsm暂时传空 |
651 | this.Data.userbsm = '' | 651 | this.checkedData.userbsm = '' |
652 | // fwlist 暂时传空 | 652 | // fwlist 暂时传空 |
653 | this.Data.fwlist = [{zdbsm: '', ztype: ''}] | 653 | this.checkedData.fwlist = [{zdbsm: '', ztype: ''}] |
654 | }) | 654 | }) |
655 | }, | 655 | }, |
656 | getzdtzm() { | 656 | getzdtzm() { |
... | @@ -669,8 +669,10 @@ | ... | @@ -669,8 +669,10 @@ |
669 | changeXzq(id, index) { | 669 | changeXzq(id, index) { |
670 | this.djq = []; | 670 | this.djq = []; |
671 | this.djzq = []; | 671 | this.djzq = []; |
672 | if (index != undefined) { | ||
672 | this.fghData.newZdlist[index].djqbsm = '' | 673 | this.fghData.newZdlist[index].djqbsm = '' |
673 | this.fghData.newZdlist[index].djzqbsm = '' | 674 | this.fghData.newZdlist[index].djzqbsm = '' |
675 | } | ||
674 | getListByXzqbsm(id) | 676 | getListByXzqbsm(id) |
675 | .then((res) => { | 677 | .then((res) => { |
676 | if (res.result == null) { | 678 | if (res.result == null) { |
... | @@ -684,10 +686,11 @@ | ... | @@ -684,10 +686,11 @@ |
684 | }, | 686 | }, |
685 | changeDjq(item, index) { | 687 | changeDjq(item, index) { |
686 | this.djzq = []; | 688 | this.djzq = []; |
689 | if (index != undefined) { | ||
687 | this.fghData.newZdlist[index].djzqbsm = '' | 690 | this.fghData.newZdlist[index].djzqbsm = '' |
691 | } | ||
688 | if (item == null) { | 692 | if (item == null) { |
689 | } else { | 693 | } else { |
690 | console.log(item); | ||
691 | getListByPbsm(item) | 694 | getListByPbsm(item) |
692 | .then((res) => { | 695 | .then((res) => { |
693 | if (res.result == null) { | 696 | if (res.result == null) { |
... | @@ -716,7 +719,7 @@ | ... | @@ -716,7 +719,7 @@ |
716 | } | 719 | } |
717 | ] | 720 | ] |
718 | }); | 721 | }); |
719 | this.fghData.newZdlist[this.fghData.newZdlist.length - 1] = JSON.parse(JSON.stringify(this.Data)); | 722 | this.fghData.newZdlist[this.fghData.newZdlist.length - 1] = JSON.parse(JSON.stringify(this.checkedData)); |
720 | 723 | ||
721 | }, | 724 | }, |
722 | delRow(index) { | 725 | delRow(index) { |
... | @@ -745,7 +748,7 @@ | ... | @@ -745,7 +748,7 @@ |
745 | }, | 748 | }, |
746 | deep: true | 749 | deep: true |
747 | }, | 750 | }, |
748 | Data: { | 751 | checkedData: { |
749 | handler: function (item) { | 752 | handler: function (item) { |
750 | this.changeXzq(item.xzqbsm) | 753 | this.changeXzq(item.xzqbsm) |
751 | this.changeDjq(item.djqbsm) | 754 | this.changeDjq(item.djqbsm) | ... | ... |
-
Please register or sign in to post a comment