保存业务的loading
Showing
8 changed files
with
42 additions
and
7 deletions
... | @@ -60,7 +60,7 @@ export default { | ... | @@ -60,7 +60,7 @@ export default { |
60 | position: absolute; | 60 | position: absolute; |
61 | top: 0; | 61 | top: 0; |
62 | left: 0; | 62 | left: 0; |
63 | z-index: 1; | 63 | z-index: 1000; |
64 | .content{ | 64 | .content{ |
65 | width: 240px; | 65 | width: 240px; |
66 | height: 160px; | 66 | height: 160px; | ... | ... |
... | @@ -495,8 +495,10 @@ | ... | @@ -495,8 +495,10 @@ |
495 | cancelButtonText: '取消', | 495 | cancelButtonText: '取消', |
496 | type: 'warning' | 496 | type: 'warning' |
497 | }).then(() => { | 497 | }).then(() => { |
498 | vm.loadingShow('业务办理中'); | ||
498 | fwsxbgbl(params) | 499 | fwsxbgbl(params) |
499 | .then((res) => { | 500 | .then((res) => { |
501 | vm.loadingHide(); | ||
500 | if (res.success) { | 502 | if (res.success) { |
501 | // this.$message({ | 503 | // this.$message({ |
502 | // message: res.message, | 504 | // message: res.message, |
... | @@ -538,6 +540,7 @@ | ... | @@ -538,6 +540,7 @@ |
538 | } | 540 | } |
539 | }) | 541 | }) |
540 | .catch((error) => { | 542 | .catch((error) => { |
543 | vm.loadingHide(); | ||
541 | this.$message({ | 544 | this.$message({ |
542 | message: res.message, | 545 | message: res.message, |
543 | type: "error", | 546 | type: "error", | ... | ... |
... | @@ -507,7 +507,9 @@ | ... | @@ -507,7 +507,9 @@ |
507 | 507 | ||
508 | this.$nextTick(()=> { | 508 | this.$nextTick(()=> { |
509 | if (flag && this.$refs.qlxzModule.getRulesResult()) { | 509 | if (flag && this.$refs.qlxzModule.getRulesResult()) { |
510 | vm.loadingShow('请求发送中'); | ||
510 | saveDzInfo(this.form).then((res)=>{ | 511 | saveDzInfo(this.form).then((res)=>{ |
512 | vm.loadingHide(); | ||
511 | if(res.code===200){ | 513 | if(res.code===200){ |
512 | this.$message.success("保存完成!") | 514 | this.$message.success("保存完成!") |
513 | }else { | 515 | }else { |
... | @@ -517,6 +519,10 @@ | ... | @@ -517,6 +519,10 @@ |
517 | }); | 519 | }); |
518 | } | 520 | } |
519 | }) | 521 | }) |
522 | .catch((error) => { | ||
523 | vm.loadingHide(); | ||
524 | console.log(error); | ||
525 | }); | ||
520 | }else { | 526 | }else { |
521 | this.$message({ | 527 | this.$message({ |
522 | // message: item.name+'不能为空', | 528 | // message: item.name+'不能为空', | ... | ... |
... | @@ -237,11 +237,17 @@ | ... | @@ -237,11 +237,17 @@ |
237 | this.bsm=this.$route.query.bsm; | 237 | this.bsm=this.$route.query.bsm; |
238 | this.form.bsm=this.bsm; | 238 | this.form.bsm=this.bsm; |
239 | this.form.jgsj=this.form.jgrq; | 239 | this.form.jgsj=this.form.jgrq; |
240 | vm.loadingShow('请求发送中'); | ||
240 | updateGzwjbxx(this.form).then((res)=>{ | 241 | updateGzwjbxx(this.form).then((res)=>{ |
242 | vm.loadingHide(); | ||
241 | if(res.code === 200){ | 243 | if(res.code === 200){ |
242 | this.$message.success("保存完成!"); | 244 | this.$message.success("保存完成!"); |
243 | } | 245 | } |
244 | }) | 246 | }) |
247 | .catch((error) => { | ||
248 | vm.loadingHide(); | ||
249 | console.log(error); | ||
250 | }); | ||
245 | } | 251 | } |
246 | }) | 252 | }) |
247 | 253 | ... | ... |
... | @@ -305,8 +305,7 @@ | ... | @@ -305,8 +305,7 @@ |
305 | newzdzdtzmbsm: this.zdhbhData.zdtzmbsm, | 305 | newzdzdtzmbsm: this.zdhbhData.zdtzmbsm, |
306 | oldzdbsms: oldBsm | 306 | oldzdbsms: oldBsm |
307 | } | 307 | } |
308 | console.log(data, '宗地合并数据') | 308 | vm.loadingShow('请求发送中'); |
309 | vm.loadingShow(); | ||
310 | ZdHb(data).then(res => { | 309 | ZdHb(data).then(res => { |
311 | vm.loadingHide(); | 310 | vm.loadingHide(); |
312 | if (res.success) { | 311 | if (res.success) { |
... | @@ -335,7 +334,7 @@ | ... | @@ -335,7 +334,7 @@ |
335 | newdzxmmc: this.$refs.dzhb.dzhbhData.xmmc, | 334 | newdzxmmc: this.$refs.dzhb.dzhbhData.xmmc, |
336 | zdbsm: this.$refs.dzhb.zdbsm | 335 | zdbsm: this.$refs.dzhb.zdbsm |
337 | } | 336 | } |
338 | vm.loadingShow(); | 337 | vm.loadingShow('请求发送中'); |
339 | DzHb(data).then(res => { | 338 | DzHb(data).then(res => { |
340 | vm.loadingHide(); | 339 | vm.loadingHide(); |
341 | if (res.success) { | 340 | if (res.success) { | ... | ... |
... | @@ -904,7 +904,9 @@ | ... | @@ -904,7 +904,9 @@ |
904 | this.form.qtjzmj=this.form.scqtjzmj; | 904 | this.form.qtjzmj=this.form.scqtjzmj; |
905 | this.form.ftxs=this.form.scftxs; | 905 | this.form.ftxs=this.form.scftxs; |
906 | } | 906 | } |
907 | vm.loadingShow('请求发送中'); | ||
907 | updateQjH(this.form).then((res)=>{ | 908 | updateQjH(this.form).then((res)=>{ |
909 | vm.loadingHide(); | ||
908 | if(res.code===200){ | 910 | if(res.code===200){ |
909 | this.$message.success("保存成功!") | 911 | this.$message.success("保存成功!") |
910 | console.log(this,"this") | 912 | console.log(this,"this") |
... | @@ -912,6 +914,10 @@ | ... | @@ -912,6 +914,10 @@ |
912 | this.$message.warning(res.message) | 914 | this.$message.warning(res.message) |
913 | } | 915 | } |
914 | }) | 916 | }) |
917 | .catch((error) => { | ||
918 | vm.loadingHide(); | ||
919 | console.log(error); | ||
920 | }); | ||
915 | }else { | 921 | }else { |
916 | this.$message({ | 922 | this.$message({ |
917 | // message: item.name+'不能为空', | 923 | // message: item.name+'不能为空', | ... | ... |
... | @@ -913,8 +913,9 @@ export default { | ... | @@ -913,8 +913,9 @@ export default { |
913 | "zdybsm": this.fghbChoosedList[0].zdybsm, | 913 | "zdybsm": this.fghbChoosedList[0].zdybsm, |
914 | "zrzbsm": this.fghbChoosedList[0].zrzbsm | 914 | "zrzbsm": this.fghbChoosedList[0].zrzbsm |
915 | } | 915 | } |
916 | // console.log(params,'params'); | 916 | vm.loadingShow('请求发送中'); |
917 | hhb(params).then((res) => { | 917 | hhb(params).then((res) => { |
918 | vm.loadingHide(); | ||
918 | if(res.code == 200){ | 919 | if(res.code == 200){ |
919 | Message.success('合并成功'); | 920 | Message.success('合并成功'); |
920 | // 清除选中户 | 921 | // 清除选中户 |
... | @@ -926,7 +927,10 @@ export default { | ... | @@ -926,7 +927,10 @@ export default { |
926 | Message.error(res.message); | 927 | Message.error(res.message); |
927 | } | 928 | } |
928 | }) | 929 | }) |
929 | .catch(() => {}); | 930 | .catch((error) => { |
931 | vm.loadingHide(); | ||
932 | console.log(error); | ||
933 | }); | ||
930 | }) | 934 | }) |
931 | .catch(() => {}); | 935 | .catch(() => {}); |
932 | }else{ | 936 | }else{ |
... | @@ -939,7 +943,9 @@ export default { | ... | @@ -939,7 +943,9 @@ export default { |
939 | }, | 943 | }, |
940 | //户分割保存 | 944 | //户分割保存 |
941 | savefgData(){ | 945 | savefgData(){ |
946 | vm.loadingShow('请求发送中'); | ||
942 | hfg(this.fgData).then((res) => { | 947 | hfg(this.fgData).then((res) => { |
948 | vm.loadingHide(); | ||
943 | if(res.code == 200){ | 949 | if(res.code == 200){ |
944 | Message.success('分割成功'); | 950 | Message.success('分割成功'); |
945 | // 清除选中户 | 951 | // 清除选中户 |
... | @@ -952,7 +958,10 @@ export default { | ... | @@ -952,7 +958,10 @@ export default { |
952 | Message.error(res.message); | 958 | Message.error(res.message); |
953 | } | 959 | } |
954 | }) | 960 | }) |
955 | .catch(() => {}); | 961 | .catch((error) => { |
962 | vm.loadingHide(); | ||
963 | console.log(error); | ||
964 | }); | ||
956 | }, | 965 | }, |
957 | //范围属性变更 | 966 | //范围属性变更 |
958 | handleFwsxbg(){ | 967 | handleFwsxbg(){ | ... | ... |
... | @@ -565,7 +565,9 @@ | ... | @@ -565,7 +565,9 @@ |
565 | type: "warning", | 565 | type: "warning", |
566 | }); | 566 | }); |
567 | }else{ | 567 | }else{ |
568 | vm.loadingShow('请求发送中'); | ||
568 | saveZrzInfo(this.form).then((res)=>{ | 569 | saveZrzInfo(this.form).then((res)=>{ |
570 | vm.loadingHide(); | ||
569 | if(res.code===200){ | 571 | if(res.code===200){ |
570 | this.$message.success("保存完成!") | 572 | this.$message.success("保存完成!") |
571 | this.getZrzDetailByBsm(this.$route.query.bsm) | 573 | this.getZrzDetailByBsm(this.$route.query.bsm) |
... | @@ -577,6 +579,10 @@ | ... | @@ -577,6 +579,10 @@ |
577 | } | 579 | } |
578 | this.loading=false; | 580 | this.loading=false; |
579 | }) | 581 | }) |
582 | .catch((error) => { | ||
583 | vm.loadingHide(); | ||
584 | console.log(error); | ||
585 | }); | ||
580 | this.loading=false; | 586 | this.loading=false; |
581 | this.saveGraphicAttributes(); } | 587 | this.saveGraphicAttributes(); } |
582 | }else{ | 588 | }else{ | ... | ... |
-
Please register or sign in to post a comment