浏览代码

Merge branch 'superman' of http://git.shengws.com/zhangbj/xt_vue into superman

XMLWAN 4 年前
父节点
当前提交
45ea54729d
共有 1 个文件被更改,包括 119 次插入44 次删除
  1. 119 44
      src/xt_pages/upload/fast/Two.vue

+ 119 - 44
src/xt_pages/upload/fast/Two.vue 查看文件

@@ -761,23 +761,41 @@
761 761
                   }
762 762
                   break
763 763
                 case 2:
764
-                  if(response.data.data.inspections != null){
765
-                    if(response.data.data.inspections.length > 0){
766
-                      this.xzg = response.data.data.inspections[16].inspect_value
767
-                      this.ylg = response.data.data.inspections[11].inspect_value
768
-                      this.xl = response.data.data.inspections[18].inspect_value
769
-                      this.ipth = response.data.data.inspections[20].inspect_value
770
-                      this.akp = response.data.data.inspections[4].inspect_value
771 764
 
765
+                  if(response.data.data.inspections_one != null) {
766
+                    if(response.data.data.inspections_one.length > 0){
767
+                      this.akp = response.data.data.inspections_one[4].inspect_value
772 768
                     }
773 769
                   }else{
770
+                    this.akp = ''
771
+
772
+                  }
773
+
774
+                  if(response.data.data.inspections_two != null) {
775
+                    if(response.data.data.inspections_two.length > 0){
776
+                      this.xzg = response.data.data.inspections_two[7].inspect_value
777
+                      this.ylg = response.data.data.inspections_two[2].inspect_value
778
+                      this.xl = response.data.data.inspections_two[9].inspect_value
779
+
780
+                    }
781
+                  }else{
782
+
774 783
                     this.xzg =''
775 784
                     this.ylg =''
776 785
                     this.xl = ''
786
+
787
+                  }
788
+
789
+
790
+                  if(response.data.data.inspections_three != null) {
791
+                    if(response.data.data.inspections_three.length > 0){
792
+                      this.ipth = response.data.data.inspections_three[1].inspect_value
793
+                    }
794
+                  }else{
777 795
                     this.ipth = ''
778
-                    this.akp = ''
779 796
 
780 797
                   }
798
+
781 799
                   break
782 800
                 case 3:
783 801
                   if(response.data.data.inspections != null){
@@ -799,40 +817,42 @@
799 817
                   }
800 818
                   break
801 819
                 case 4:
802
-                  if(response.data.data.inspections != null){
803
-                    if(response.data.data.inspections.length > 0){
804
-                      this.ns = response.data.data.inspections[19].inspect_value
805
-                      this.jg = response.data.data.inspections[22].inspect_value
806
-                      this.xns = response.data.data.inspections[20].inspect_value
807
-                      this.xzdb = response.data.data.inspections[3].inspect_value
808
-                      this.xbdb = response.data.data.inspections[5].inspect_value
809
-                      this.alt = response.data.data.inspections[0].inspect_value
810
-                      this.zdhs = response.data.data.inspections[6].inspect_value
811
-                      this.gysz = response.data.data.inspections[24].inspect_value
812
-                      this.dmdzdb = response.data.data.inspections[27].inspect_value
813
-                      this.gmdzdb = response.data.data.inspections[26].inspect_value
814
-                      this.xt = response.data.data.inspections[29].inspect_value
815
-                      this.xj = response.data.data.inspections[13].inspect_value
816
-                      this.xn = response.data.data.inspections[14].inspect_value
817
-                      this.xc = response.data.data.inspections[15].inspect_value
818
-                      this.xm = response.data.data.inspections[9].inspect_value
819
-                      this.xchen = response.data.data.inspections[10].inspect_value
820
-                      this.xe = response.data.data.inspections[12].inspect_value
820
+
821
+                  if(response.data.data.inspections_one != null) {
822
+                    if(response.data.data.inspections_one.length > 0){
823
+
824
+                      this.xzdb = response.data.data.inspections_one[3].inspect_value
825
+                      this.xbdb = response.data.data.inspections_one[5].inspect_value
826
+                      this.alt = response.data.data.inspections_one[0].inspect_value
827
+                      this.zdhs =response.data.data.inspections_one[6].inspect_value
821 828
 
822 829
                     }
823 830
                   }else{
824
-
825
-                    this.ns = ''
826
-                    this.jg = ''
827
-                    this.xns =''
828 831
                     this.xzdb = ''
829 832
                     this.xbdb = ''
830 833
                     this.alt = ''
831
-                    this.zdhs =''
832
-                    this.gysz = ''
833
-                    this.dmdzdb =''
834
-                    this.gmdzdb = ''
835
-                    this.xt = ''
834
+                    this.zdhs = ''
835
+
836
+
837
+                  }
838
+
839
+
840
+
841
+
842
+
843
+                  if(response.data.data.inspections_two != null) {
844
+                    if(response.data.data.inspections_two.length > 0){
845
+                      this.xj = response.data.data.inspections_two[4].inspect_value
846
+                      this.xn = response.data.data.inspections_two[5].inspect_value
847
+                      this.xc = response.data.data.inspections_two[6].inspect_value
848
+                      this.xm = response.data.data.inspections_two[0].inspect_value
849
+                      this.xchen = response.data.data.inspections_two[1].inspect_value
850
+                      this.xe = response.data.data.inspections_two[3].inspect_value
851
+
852
+
853
+                    }
854
+                  }else{
855
+
836 856
                     this.xj = ''
837 857
                     this.xn = ''
838 858
                     this.xc = ''
@@ -842,23 +862,78 @@
842 862
 
843 863
 
844 864
                   }
865
+
866
+
867
+                  if(response.data.data.inspections_three != null) {
868
+                    if(response.data.data.inspections_three.length > 0){
869
+                      this.ns = response.data.data.inspections_three[0].inspect_value
870
+                      this.jg = response.data.data.inspections_three[3].inspect_value
871
+                      this.xns =response.data.data.inspections_three[1].inspect_value
872
+
873
+
874
+                    }
875
+                  }else{
876
+                    this.ns = ''
877
+                    this.jg = ''
878
+                    this.xns = ''
879
+
880
+                  }
881
+
882
+                  if(response.data.data.inspections_four != null) {
883
+                    if(response.data.data.inspections_four.length > 0){
884
+                      this.gysz = response.data.data.inspections_four[0].inspect_value
885
+                      this.dmdzdb = response.data.data.inspections_four[3].inspect_value
886
+                      this.gmdzdb =response.data.data.inspections_four[2].inspect_value
887
+
888
+
889
+                    }
890
+                  }else{
891
+                    this.gysz  = ''
892
+                    this.gmdzdb = ''
893
+                    this.dmdzdb = ''
894
+
895
+                  }
896
+
897
+
898
+
899
+                  if(response.data.data.inspections_five != null){
900
+                    if(response.data.data.inspections_five.length > 0){
901
+                      this.xt = response.data.data.inspections_five[0].inspect_value
902
+
903
+                    }
904
+                  }else{
905
+                    this.xt = ''
906
+
907
+
908
+
909
+                  }
910
+
911
+
845 912
                   break
846 913
                 case 5:
847
-                  if(response.data.data.inspections != null){
848
-                    if(response.data.data.inspections.length > 0){
849
-                      this.cfydb = response.data.data.inspections[5].inspect_value
850
-                      this.qbdb = response.data.data.inspections[6].inspect_value
851
-                      this.b2wdb = response.data.data.inspections[2].inspect_value
852
-
914
+                  if(response.data.data.inspections_one != null){
915
+                    if(response.data.data.inspections_one.length > 0){
916
+                      this.b2wdb = response.data.data.inspections_one[2].inspect_value
853 917
                     }
854 918
                   }else{
919
+                    this.b2wdb = ''
855 920
 
921
+                  }
922
+
923
+                  if(response.data.data.inspections_two != null){
924
+                    if(response.data.data.inspections_two.length > 0){
925
+                      this.cfydb = response.data.data.inspections_two[0].inspect_value
926
+                      this.qbdb = response.data.data.inspections_two[1].inspect_value
927
+
928
+                    }
929
+                  }else{
856 930
                     this.cfydb =''
857 931
                     this.qbdb = ''
858
-                    this.b2wdb = ''
932
+                  }
933
+
934
+
859 935
 
860 936
 
861
-                  }
862 937
                   break
863 938
                 case 6:
864 939
                   if(response.data.data.inspections != null){