seimin 11 月之前
父节点
当前提交
ea67973d0d
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      pages/assign/assign.vue

+ 3 - 3
pages/assign/assign.vue

@@ -714,12 +714,12 @@
714 714
       let handlerOrder$ = handlerOrder();
715 715
       let requestList = [handlerOrder$];
716 716
       Promise.all(requestList).then(resList => {
717
-        uni.hideLoading();
718 717
         console.log(resList);
719 718
         if(resList[0].state == 200){
720 719
           dataInfo.incidentId = resList[0].data.id;
721 720
           handlerImgRef.value.upload();
722 721
         }else{
722
+          uni.hideLoading();
723 723
           uni.showToast({
724 724
             icon: 'none',
725 725
             title: resList[0].msg || '请求数据失败!'
@@ -731,12 +731,12 @@
731 731
       let handlerOrder$ = handlerOrder();
732 732
       let requestList = [handlerOrder$];
733 733
       Promise.all(requestList).then(resList => {
734
-        uni.hideLoading();
735 734
         console.log(resList);
736 735
         if(resList[0].state == 200){
737 736
           dataInfo.incidentId = resList[0].data.id;
738 737
           handlerImgSuccessNew();
739 738
         }else{
739
+          uni.hideLoading();
740 740
           uni.showToast({
741 741
             icon: 'none',
742 742
             title: resList[0].msg || '请求数据失败!'
@@ -808,13 +808,13 @@
808 808
       let assignOrder$ = assignOrder();
809 809
       let requestList = [assignOrder$];
810 810
       Promise.all(requestList).then(resList => {
811
-        uni.hideLoading();
812 811
         console.log(resList);
813 812
         if(resList[0].state == 200){
814 813
           dataInfo.incidentId = resList[0].data.id;
815 814
           // handlerImgRef.value.upload();
816 815
           handlerImgSuccessNew();
817 816
         }else{
817
+          uni.hideLoading();
818 818
           uni.showToast({
819 819
             icon: 'none',
820 820
             title: resList[0].msg || '请求数据失败!'