多幢分割跳转页面变化
Showing
1 changed file
with
20 additions
and
9 deletions
... | @@ -315,7 +315,7 @@ | ... | @@ -315,7 +315,7 @@ |
315 | 315 | ||
316 | export default { | 316 | export default { |
317 | name: "", | 317 | name: "", |
318 | inject: ['getTreeByS','getRightTree'], | 318 | inject: ['getTreeByS','getRightTree','getTreeByBsm'], |
319 | components: {zdQueryData,dzQueryData,hfghb}, | 319 | components: {zdQueryData,dzQueryData,hfghb}, |
320 | props: {}, | 320 | props: {}, |
321 | data() { | 321 | data() { |
... | @@ -646,14 +646,25 @@ | ... | @@ -646,14 +646,25 @@ |
646 | saveDzFg(this.dzFghData).then(res => { | 646 | saveDzFg(this.dzFghData).then(res => { |
647 | vm.loadingHide() | 647 | vm.loadingHide() |
648 | if (res.success) { | 648 | if (res.success) { |
649 | this.getRightTree(res.result,'0,1,2'); | 649 | if(res.result.zrz!==''&&res.result.zrz!=null){ |
650 | this.$router.push({ | 650 | this.getTreeByBsm(res.result.zrz,'zrz','0,1,2'); |
651 | path: '/zd', | 651 | this.$router.push({ |
652 | query: { | 652 | path: '/zrz', |
653 | bsm: res.result, | 653 | query: { |
654 | source: 3, //分割标识 | 654 | bsm: res.result.zrz, |
655 | } | 655 | source: 3, //分割标识 |
656 | }); | 656 | } |
657 | }); | ||
658 | }else if(res.result.dz!==''&&res.result.dz!=null){ | ||
659 | this.getTreeByBsm(res.result.dz,'dz','0,1,2'); | ||
660 | this.$router.push({ | ||
661 | path: '/dz', | ||
662 | query: { | ||
663 | bsm: res.result.dz, | ||
664 | source: 3, //分割标识 | ||
665 | } | ||
666 | }); | ||
667 | } | ||
657 | } else { | 668 | } else { |
658 | Message.error("保存失败") | 669 | Message.error("保存失败") |
659 | } | 670 | } | ... | ... |
-
Please register or sign in to post a comment