Merge branch 'master' of http://yun.pashanhoo.com:9090/renchao/CadastralSystem
Showing
1 changed file
with
10 additions
and
24 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) => { | 655 | }) |
| 662 | if (action === 'confirm') { | 656 | .then(() => { |
| 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( | 657 | batchGeneratorBdcdyh(this.$store.state.zrzh, this.pd[0].bsm,2).then( |
| 669 | (res) => { | 658 | (res) => { |
| 670 | if (res.code === 200) { | 659 | if (res.code === 200) { |
| 671 | this.$message.success("生成完成!"); | 660 | this.$message.success("生成完成!"); |
| 672 | } | 661 | } |
| 673 | }); | 662 | }); |
| 674 | instance.confirmButtonLoading = false; | 663 | }) |
| 675 | }, 300); | 664 | .catch(action => { |
| 676 | }, 3000); | 665 | if(action === 'cancel'){ |
| 677 | } else { | ||
| 678 | batchGeneratorBdcdyh(this.$store.state.zrzh, this.pd[0].bsm,1).then( | 666 | batchGeneratorBdcdyh(this.$store.state.zrzh, this.pd[0].bsm,1).then( |
| 679 | (res) => { | 667 | (res) => { |
| 680 | if (res.code === 200) { | 668 | if (res.code === 200) { |
| 681 | this.$message.success("生成完成!"); | 669 | this.$message.success("生成完成!"); |
| 682 | } | 670 | } |
| 683 | }); | 671 | }); |
| 684 | done(); | ||
| 685 | } | ||
| 686 | } | 672 | } |
| 687 | }) | 673 | }); |
| 688 | }, | 674 | }, |
| 689 | 675 | ||
| 690 | //获取各项单元状态统计数据 | 676 | //获取各项单元状态统计数据 | ... | ... |
-
Please register or sign in to post a comment