宗地分割判断项目名称必填
Showing
1 changed file
with
11 additions
and
2 deletions
... | @@ -603,11 +603,14 @@ | ... | @@ -603,11 +603,14 @@ |
603 | }, | 603 | }, |
604 | saveZd() { | 604 | saveZd() { |
605 | if(this.zdFghData.oldZdbsm === ''){ | 605 | if(this.zdFghData.oldZdbsm === ''){ |
606 | Message.info("请选择需要分割的宗地") | 606 | Message.warning("请选择需要分割的宗地") |
607 | return | 607 | return |
608 | } | 608 | } |
609 | if(this.tempBsmList.length === (this.zdZxx.dzList.length + this.zdZxx.zrzList.length)){ | 609 | if(this.tempBsmList.length === (this.zdZxx.dzList.length + this.zdZxx.zrzList.length)){ |
610 | if (this.zdFghData.newZdlist.every(i => i.xmmc != '')) { | ||
611 | vm.loadingShow('正在保存中'); | ||
610 | zdfg(this.zdFghData).then(res => { | 612 | zdfg(this.zdFghData).then(res => { |
613 | vm.loadingHide() | ||
611 | if (res.success) { | 614 | if (res.success) { |
612 | this.$store.state.zdbsms = res.result; | 615 | this.$store.state.zdbsms = res.result; |
613 | //更新目录树 | 616 | //更新目录树 |
... | @@ -622,8 +625,14 @@ | ... | @@ -622,8 +625,14 @@ |
622 | } else { | 625 | } else { |
623 | Message.error("保存失败") | 626 | Message.error("保存失败") |
624 | } | 627 | } |
628 | }).catch((err)=>{ | ||
629 | vm.loadingHide() | ||
630 | Message.error(err) | ||
625 | }) | 631 | }) |
626 | }else{ | 632 | }else{ |
633 | Message.warning("请完善分割后的宗地项目名称后重试") | ||
634 | } | ||
635 | }else{ | ||
627 | this.$message.warning("幢信息未选择完成,无法保存") | 636 | this.$message.warning("幢信息未选择完成,无法保存") |
628 | } | 637 | } |
629 | }, | 638 | }, |
... | @@ -1093,7 +1102,7 @@ | ... | @@ -1093,7 +1102,7 @@ |
1093 | width: calc(100% - 40px); | 1102 | width: calc(100% - 40px); |
1094 | /deep/.el-input__inner { | 1103 | /deep/.el-input__inner { |
1095 | margin: 0; | 1104 | margin: 0; |
1096 | height: 44px; | 1105 | height: 43px; |
1097 | outline: none; | 1106 | outline: none; |
1098 | border: none; | 1107 | border: none; |
1099 | color: #606764; | 1108 | color: #606764; | ... | ... |
-
Please register or sign in to post a comment