Merge branch 'master' of http://yun.pashanhoo.com:9090/renchao/CadastralSystem
Showing
1 changed file
with
22 additions
and
36 deletions
... | @@ -647,44 +647,30 @@ export default { | ... | @@ -647,44 +647,30 @@ export default { |
647 | }, | 647 | }, |
648 | 648 | ||
649 | open(hasGenerateCount,unGenerateCount) { | 649 | open(hasGenerateCount,unGenerateCount) { |
650 | const h = this.$createElement; | 650 | |
651 | this.$msgbox({ | 651 | this.$confirm('未生成单元号有'+unGenerateCount+'户,已经生成单元号有'+hasGenerateCount+'户,是否覆盖全部重新生成?', '确认信息', { |
652 | title: '消息', | 652 | distinguishCancelAndClose: true, |
653 | message: h('p', null, [ | ||
654 | h('span', null, '未生成单元号有 '+unGenerateCount+'户,'), | ||
655 | h('span', null, '已经生成单元号有 '+hasGenerateCount+'户,'), | ||
656 | h('span', null, '是否覆盖全部重新生成?'), | ||
657 | ]), | ||
658 | showCancelButton: true, | ||
659 | confirmButtonText: '覆盖全部生成', | 653 | confirmButtonText: '覆盖全部生成', |
660 | cancelButtonText: '跳过已生成单元号户', | 654 | cancelButtonText: '跳过已生成单元号户' |
661 | beforeClose: (action, instance, done) => { | ||
662 | if (action === 'confirm') { | ||
663 | instance.confirmButtonLoading = true; | ||
664 | instance.confirmButtonText = '执行中...'; | ||
665 | setTimeout(() => { | ||
666 | done(); | ||
667 | setTimeout(() => { | ||
668 | batchGeneratorBdcdyh(this.$store.state.zrzh, this.pd[0].bsm,2).then( | ||
669 | (res) => { | ||
670 | if (res.code === 200) { | ||
671 | this.$message.success("生成完成!"); | ||
672 | } | ||
673 | }); | ||
674 | instance.confirmButtonLoading = false; | ||
675 | }, 300); | ||
676 | }, 3000); | ||
677 | } else { | ||
678 | batchGeneratorBdcdyh(this.$store.state.zrzh, this.pd[0].bsm,1).then( | ||
679 | (res) => { | ||
680 | if (res.code === 200) { | ||
681 | this.$message.success("生成完成!"); | ||
682 | } | ||
683 | }); | ||
684 | done(); | ||
685 | } | ||
686 | } | ||
687 | }) | 655 | }) |
656 | .then(() => { | ||
657 | batchGeneratorBdcdyh(this.$store.state.zrzh, this.pd[0].bsm,2).then( | ||
658 | (res) => { | ||
659 | if (res.code === 200) { | ||
660 | this.$message.success("生成完成!"); | ||
661 | } | ||
662 | }); | ||
663 | }) | ||
664 | .catch(action => { | ||
665 | if(action === 'cancel'){ | ||
666 | batchGeneratorBdcdyh(this.$store.state.zrzh, this.pd[0].bsm,1).then( | ||
667 | (res) => { | ||
668 | if (res.code === 200) { | ||
669 | this.$message.success("生成完成!"); | ||
670 | } | ||
671 | }); | ||
672 | } | ||
673 | }); | ||
688 | }, | 674 | }, |
689 | 675 | ||
690 | //获取各项单元状态统计数据 | 676 | //获取各项单元状态统计数据 | ... | ... |
-
Please register or sign in to post a comment